-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add rpc url to nwaku, persist rln tree in docker and ci
- Loading branch information
1 parent
3d92f19
commit 72e5a71
Showing
8 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { SEPOLIA_RPC_URL } from "./constants.js"; | ||
import { ServiceNode } from "./lib/service_node.js"; | ||
|
||
async function syncRlnTree() { | ||
const nwaku = new ServiceNode("rln_tree"); | ||
await nwaku.start({ | ||
store: false, | ||
lightpush: false, | ||
relay: false, | ||
filter: false, | ||
rest: true, | ||
clusterId: 1, | ||
rlnRelayEthClientAddress: SEPOLIA_RPC_URL | ||
}); | ||
let healthy = false; | ||
while (!healthy) { | ||
healthy = await nwaku.healthy(); | ||
} | ||
} | ||
|
||
syncRlnTree() | ||
.then(() => { | ||
console.log("Synced RLN tree"); | ||
process.exit(0); | ||
}) | ||
.catch((err) => { | ||
console.error(`Error syncing RLN tree: ${err}`); | ||
process.exit(1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters