Skip to content

Node runs indefinitely and doesn't exit if initial peer is invalid/offline #1641

@0xMimir

Description

@0xMimir

To reproduce run:

cargo run -r --bin mina -- node -P /ip4/5.5.5.5/tcp/8302/p2p/12D3KooWAMKZM7ysxRka2RfQWxCXXFTopjZ1eZcwtSi4VPgcdont

Output is:

2025-11-14T13:14:00.303231Z  INFO mina_tree::proofs::verifiers: Verifier index is loaded time="1763126040303201859"
2025-11-14T13:14:00.311399Z  INFO mina_tree::proofs::verifiers: Verifier index is loaded time="1763126040311391277"
2025-11-14T13:14:00.312083Z  INFO Server::run{addr=0.0.0.0:3000}: warp::server: listening on http://0.0.0.0:3000
2025-11-14T13:14:01.628588Z  INFO mina_core::log::action: time="1763126041545270785" kind="TransitionFrontierGenesisInject" summary="Inject genesis block into the transition frontier"
2025-11-14T13:14:01.628614Z  INFO mina_core::log::action: time="1763126041545749519" kind="BlockProducerBestTipUpdate"
2025-11-14T13:14:01.629516Z  INFO mina_core::log::action: time="1763126041545763736" kind="TransactionPoolBestTipChanged"
2025-11-14T13:14:01.629520Z  INFO node::transaction_pool::transaction_pool_effects: time="1763126041629519731" kind="TransactionPoolEffectfulFetchAccounts" summary="fetching accounts for tx pool"
2025-11-14T13:14:01.634561Z  INFO mina_core::log::action: time="1763126041550780274" kind="TransactionPoolBestTipChangedWithAccounts"
2025-11-14T13:14:01.634592Z  INFO p2p::p2p_state: time="1763126041634585909" kind="P2pState new" summary="Current node's id: 2bMc7YopvkBZWiVh9sBUGd1tN1dLGqdTJrTQnH1zkfZw2kuRqJ1" peer_id_str="12D3KooWJd4bg1qQkdH4E4oxXG9Gj3pvLdNNhpwixPPNbEFJ5x5X"
2025-11-14T13:14:01.634620Z  INFO mina_core::log::action: time="1763126041551716163" kind="P2pInitializeInitialize" summary="Initializes p2p layer" chain_id=29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6
2025-11-14T13:14:01.636525Z  INFO mina_core::log::action: time="1763126041553652324" kind="P2pNetworkKademliaStartBootstrap" summary="Perform local node's Kademlia bootstrap" key=PeerId(2bMc7YopvkBZWiVh9sBUGd1tN1dLGqdTJrTQnH1zkfZw2kuRqJ1)
2025-11-14T13:14:21.748352Z  INFO mina_core::log::action: time="1763126061665460019" kind="P2pNetworkKademliaStartBootstrap" summary="Perform local node's Kademlia bootstrap" key=PeerId(2bMc7YopvkBZWiVh9sBUGd1tN1dLGqdTJrTQnH1zkfZw2kuRqJ1)
2025-11-14T13:14:41.860774Z  INFO mina_core::log::action: time="1763126081777882873" kind="P2pNetworkKademliaStartBootstrap" summary="Perform local node's Kademlia bootstrap" key=PeerId(2bMc7YopvkBZWiVh9sBUGd1tN1dLGqdTJrTQnH1zkfZw2kuRqJ1)
2025-11-14T13:15:01.974421Z  INFO mina_core::log::action: time="1763126101891530176" kind="P2pNetworkKademliaStartBootstrap" summary="Perform local node's Kademlia bootstrap" key=PeerId(2bMc7YopvkBZWiVh9sBUGd1tN1dLGqdTJrTQnH1zkfZw2kuRqJ1)

And the node continues to run forever or until it is killed, when it should detect if it can't connect to a network and exit

Metadata

Metadata

Assignees

Labels

rustPull requests that update Rust codesand

Type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions