Skip to content

Commit df7895e

Browse files
committed
Updated replayer address and first block slot
1 parent ccb0f4a commit df7895e

File tree

7 files changed

+26
-6
lines changed

7 files changed

+26
-6
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ jobs:
523523
# to allow connection with replayer
524524
# TODO: remove when replayer supports identify
525525
KEEP_CONNECTION_WITH_UNKNOWN_STREAM: true
526-
REPLAYER_MULTIADDR: "/dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40110/p2p/12D3KooWPayQEdprqY2m3biReUUybA5LoULpJE7YWu6wetEKKELv"
526+
REPLAYER_MULTIADDR: "/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA"
527527
BPF_ALIAS: /coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
528528
strategy:
529529
matrix:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ website/static/api-docs/
1919
ledger/3.0.0mainnet
2020
ledger/berkeley-devnet
2121
mina-workdir
22-
.idea/
22+
.idea/

node/testing/src/scenarios/solo_node/bootstrap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub struct SoloNodeBootstrap;
2222
// This test will fail if we don't start with this as the initial time because
2323
// the time validation for the first block will reject it.
2424
fn first_block_slot_timestamp_nanos(config: &RustNodeTestingConfig) -> u64 {
25-
let first_block_global_slot = 46891; // Update if replay changes
25+
let first_block_global_slot = 279218; // Update if replay changes
2626
let protocol_constants = config.genesis.protocol_constants().unwrap();
2727
let genesis_timestamp_ms = protocol_constants.genesis_state_timestamp.0.as_u64();
2828
let milliseconds_per_slot = constraint_constants().block_window_duration_ms;

node/testing/tests/single_node.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,19 @@ scenario_test!(
2828
SoloNodeSyncRootSnarkedLedger
2929
);
3030

31+
// TO RUN locally:
32+
// export MINA_DISCOVERY_FILTER_ADDR=false
33+
// export KEEP_CONNECTION_WITH_UNKNOWN_STREAM=true
34+
// export REPLAYER_MULTIADDR=/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA
35+
// export BPF_ALIAS=/coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
36+
37+
38+
// cargo test --release \
39+
// --package=mina-node-testing
40+
// --package=cli -- \
41+
// --exact bootstrap_from_replayer
42+
// --nocapture
3143
scenario_test!(
32-
#[ignore = "investigate failure, see 1591"]
3344
bootstrap_from_replayer,
3445
SoloNodeBootstrap,
3546
SoloNodeBootstrap

p2p/src/p2p_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ impl P2pState {
7474
mina_core::log::info!(
7575
mina_core::log::system_time();
7676
kind = "P2pState new",
77-
summary = format!("Current node's id: {peer_id_str}"),
77+
summary = format!("Current node's id: {my_id}"),
7878
peer_id_str = peer_id_str,
7979
);
8080
}

test.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
export MINA_DISCOVERY_FILTER_ADDR=false
4+
export KEEP_CONNECTION_WITH_UNKNOWN_STREAM=true
5+
export REPLAYER_MULTIADDR=/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA
6+
export BPF_ALIAS=/coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
7+
8+
9+
cargo test --release --package=mina-node-testing --package=cli -- --exact bootstrap_from_replayer --nocapture

website/docs/developers/testing/scenario-tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ For network connectivity in testing environments, you may need to configure:
450450

451451
```bash
452452
# Enable connection to replayer service (used in CI)
453-
export REPLAYER_MULTIADDR="/dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40110/p2p/12D3KooWPayQEdprqY2m3biReUUybA5LoULpJE7YWu6wetEKKELv"
453+
export REPLAYER_MULTIADDR="/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA"
454454

455455
# Allow local address discovery
456456
export MINA_DISCOVERY_FILTER_ADDR=false

0 commit comments

Comments
 (0)