Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ jobs:
# to allow connection with replayer
# TODO: remove when replayer supports identify
KEEP_CONNECTION_WITH_UNKNOWN_STREAM: true
REPLAYER_MULTIADDR: "/dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40110/p2p/12D3KooWPayQEdprqY2m3biReUUybA5LoULpJE7YWu6wetEKKELv"
REPLAYER_MULTIADDR: "/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWJH6WribJQVBeJkMKMD4NnhodyfiJaxwPrPFVozp4rw6e"
BPF_ALIAS: /coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ website/static/api-docs/
ledger/3.0.0mainnet
ledger/berkeley-devnet
mina-workdir
.idea/
.idea/
3 changes: 2 additions & 1 deletion node/testing/src/scenarios/solo_node/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct SoloNodeBootstrap;
// This test will fail if we don't start with this as the initial time because
// the time validation for the first block will reject it.
fn first_block_slot_timestamp_nanos(config: &RustNodeTestingConfig) -> u64 {
let first_block_global_slot = 46891; // Update if replay changes
let first_block_global_slot = 290000; // Update if replay changes
let protocol_constants = config.genesis.protocol_constants().unwrap();
let genesis_timestamp_ms = protocol_constants.genesis_state_timestamp.0.as_u64();
let milliseconds_per_slot = constraint_constants().block_window_duration_ms;
Expand All @@ -38,6 +38,7 @@ fn first_block_slot_timestamp_nanos(config: &RustNodeTestingConfig) -> u64 {

impl SoloNodeBootstrap {
pub async fn run(self, mut runner: ClusterRunner<'_>) {
std::env::set_var("MINA_DISCOVERY_FILTER_ADDR", "true");
use self::TransitionFrontierSyncState::*;

const TIMEOUT: Duration = Duration::from_secs(60 * 40);
Expand Down
13 changes: 12 additions & 1 deletion node/testing/tests/single_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,19 @@ scenario_test!(
SoloNodeSyncRootSnarkedLedger
);

// To run locally:
// ```bash
// export MINA_DISCOVERY_FILTER_ADDR=false
// export KEEP_CONNECTION_WITH_UNKNOWN_STREAM=true
// export REPLAYER_MULTIADDR=/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWJH6WribJQVBeJkMKMD4NnhodyfiJaxwPrPFVozp4rw6e
// export BPF_ALIAS=/coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
// cargo test --release \
// --package=mina-node-testing
// --package=cli -- \
// --exact bootstrap_from_replayer
// --nocapture
// ```
scenario_test!(
#[ignore = "investigate failure, see 1591"]
bootstrap_from_replayer,
SoloNodeBootstrap,
SoloNodeBootstrap
Expand Down
2 changes: 1 addition & 1 deletion p2p/src/p2p_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl P2pState {
mina_core::log::info!(
mina_core::log::system_time();
kind = "P2pState new",
summary = format!("Current node's id: {peer_id_str}"),
summary = format!("Current node's id: {my_id}"),
peer_id_str = peer_id_str,
);
}
Expand Down
13 changes: 13 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

export MINA_DISCOVERY_FILTER_ADDR=true
export KEEP_CONNECTION_WITH_UNKNOWN_STREAM=true
export REPLAYER_MULTIADDR=/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWJH6WribJQVBeJkMKMD4NnhodyfiJaxwPrPFVozp4rw6e
# export REPLAYER_MULTIADDR=/ip4/127.0.0.1/tcp/8302/p2p/12D3KooWK1LuZj1EXYKdzkuTb9W5NpBPXRajajt6r1dHXQUHeEDV
export BPF_ALIAS=/coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0

# # /dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA


cargo test --release --package=mina-node-testing --package=cli -- --exact bootstrap_from_replayer --nocapture

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWJH6WribJQVBeJkMKMD4NnhodyfiJaxwPrPFVozp4rw6e
2 changes: 1 addition & 1 deletion website/docs/developers/testing/scenario-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ For network connectivity in testing environments, you may need to configure:

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

# Allow local address discovery
export MINA_DISCOVERY_FILTER_ADDR=false
Expand Down
10 changes: 9 additions & 1 deletion website/docs/node-operators/infrastructure/replayer-nodes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: o1Labs replayer nodes for debugging and verification
sidebar_position: 7
---

import CodeBlock from "@theme/CodeBlock";
import ReplayerNodesList from "!!raw-loader!../../developers/scripts/infrastructure/replayer-nodes.txt";

# Replayer Nodes

This section is still a work in progress. It will cover nodes running with
Expand All @@ -15,4 +18,9 @@ replaying node execution, see the
[Replayer documentation](/docs/developers/testing/replayer) in the developers
testing section.

Track progress: [Issue #1619](https://github.com/o1-labs/mina-rust/issues/1619)
<CodeBlock
language="text"
title="website/docs/developers/scripts/infrastructure/replayer-nodes.txt"
>
{ReplayerNodesList}
</CodeBlock>
Loading