Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-3.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-4.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-5.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-6.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-7.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/guardian-8.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ poll_secs = 15
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
rpcs = ["${GUARDIAN_RPC_RAND}"] # BR-4/BR-601: a second Rand node, not this host's (docs/guardian-hosts.md, "Providers")
rpc_quorum = 2
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
4 changes: 2 additions & 2 deletions daemons/mainnet/relayer.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ poll_secs = 15

[rand]
rpc = "http://127.0.0.1:8545" # the bridged Rand chain's node, once it is cut
chain_id = 21 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a" # chain 21 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
chain_id = 22 # part of every PQ co-signature and governance message (spec/PQ-COSIGNATURE.md §9)
genesis_hash = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0" # chain 22 (spec/PQ-COSIGNATURE.md); with chain_id, checked against the node at start and on every poll (BR-1005) — a cut changes BOTH lines
emitter = "c02df6ba70c2457a7406780da97492a6acb57dc40751e6279f003a570559d15f"

[[evm]]
Expand Down
8 changes: 5 additions & 3 deletions daemons/tests/audit_v14.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ mod br1005 {

/// Chain 21's genesis hash, as the repository records it (AGENTS.md, spec/PQ-COSIGNATURE.md).
const CHAIN21: &str = "ca76c2766ed6090ac6ba5dad86b724dd5d2b80c0edfaed287cd8b129e663ca9a";
const CHAIN22: &str = "29d67542941f2eb6f2c1bb68c759926f5d814c9e2c7a934292806a2d98b7e9c0";
const OTHER: &str = "1111111111111111111111111111111111111111111111111111111111111111";

fn cfg(url: &str, chain_id: Option<u64>, genesis: Option<&str>) -> RandConfig {
Expand Down Expand Up @@ -620,9 +621,10 @@ mod br1005 {
}
}

/// The mainnet configs in the repository carry chain 21 and its recorded genesis hash.
/// The mainnet configs in the repository carry the live chain (22, cut 2026-11-21) and its
/// recorded genesis hash.
#[test]
fn br1005_the_mainnet_configs_name_chain_21_and_its_genesis_hash() {
fn br1005_the_mainnet_configs_name_chain_22_and_its_genesis_hash() {
let dir = std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("mainnet");
let mut seen = 0;
for entry in std::fs::read_dir(&dir).unwrap() {
Expand All @@ -632,7 +634,7 @@ mod br1005 {
}
let config = bridge_daemons::config::Config::load(&path).unwrap();
let (chain_id, genesis) = config.rand.chain_binding().unwrap_or_else(|e| panic!("{}: {e:#}", path.display()));
assert_eq!((chain_id, hex::encode(genesis).as_str()), (21, CHAIN21), "{}", path.display());
assert_eq!((chain_id, hex::encode(genesis).as_str()), (22, CHAIN22), "{}", path.display());
seen += 1;
}
assert_eq!(seen, 9, "eight guardians and the relayer");
Expand Down
Loading