-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updated the docker examples to generate consensus keys and use …
…gossipnet (#2476) Tested on a hetzner instance. --------- Co-authored-by: Bruno França <[email protected]>
- Loading branch information
1 parent
413856f
commit beca173
Showing
6 changed files
with
95 additions
and
98 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
5 changes: 5 additions & 0 deletions
5
docs/guides/external-node/docker-compose-examples/configs/generate_secrets.sh
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,5 @@ | ||
#!/bin/bash | ||
|
||
if [ ! -s $1 ]; then | ||
/usr/bin/zksync_external_node generate-secrets > $1 | ||
fi |
10 changes: 10 additions & 0 deletions
10
docs/guides/external-node/docker-compose-examples/configs/mainnet_consensus_config.yaml
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,10 @@ | ||
server_addr: '0.0.0.0:3054' | ||
public_addr: '127.0.0.1:3054' | ||
max_payload_size: 5000000 | ||
gossip_dynamic_inbound_limit: 100 | ||
gossip_static_outbound: | ||
# preconfigured ENs owned by Matterlabs that you can connect to | ||
- key: 'node:public:ed25519:68d29127ab03408bf5c838553b19c32bdb3aaaae9bf293e5e078c3a0d265822a' | ||
addr: 'external-node-consensus-mainnet.zksync.dev:3054' | ||
- key: 'node:public:ed25519:b521e1bb173d04bc83d46b859d1296378e94a40427a6beb9e7fdd17cbd934c11' | ||
addr: 'external-node-moby-consensus-mainnet.zksync.dev:3054' |
10 changes: 10 additions & 0 deletions
10
docs/guides/external-node/docker-compose-examples/configs/testnet_consensus_config.yaml
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,10 @@ | ||
server_addr: '0.0.0.0:3054' | ||
public_addr: '127.0.0.1:3054' | ||
max_payload_size: 5000000 | ||
gossip_dynamic_inbound_limit: 100 | ||
gossip_static_outbound: | ||
# preconfigured ENs owned by Matterlabs that you can connect to | ||
- key: 'node:public:ed25519:4a94067664e7b8d0927ab1443491dab71a1d0c63f861099e1852f2b6d0831c3e' | ||
addr: 'external-node-consensus-sepolia.zksync.dev:3054' | ||
- key: 'node:public:ed25519:cfbbebc74127099680584f07a051a2573e2dd7463abdd000d31aaa44a7985045' | ||
addr: 'external-node-moby-consensus-sepolia.zksync.dev:3054' |
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