I’m running both a leader and follower node on the same machine. From what I’ve gathered here and in the Telegram chat, this setup should allow for local peering. My leader node, however, gets a timeout, regardless of whether the follower is already running.
E (20:11:45) nc: Failed outgoing connection to None: Failed to negotiate transport protocol(s): [(/ip4/127.0.0.1/udp/3006/quic-v1: : Handshake with the remote timed out.: Handshake with the remote timed out.: Handshake with the remote timed out.)]
This error is logged in the leader right after “No known peers.”:
D (20:11:28) nockchain: peer_multiaddrs: [/ip4/127.0.0.1/udp/3006/quic-v1]
D (20:11:28) nockchain_bitcoin_sync: Starting bitcoin_watcher_driver with node_type: Leader
D (20:11:28) nockchain_bitcoin_sync: No Bitcoin RPC connection provided, using test genesis
block
D (20:11:28) nockchain_bitcoin_sync: Creating test genesis block for leader node
I (20:11:28) kernel no longer in init phase, can't do init command
I (20:11:28) candidate block timestamp updated: 0x8000000d36c6faf0
I (20:11:28) libp2p_swarm: local_peer_id=12D3KooWLcggQmprwLYYpB3PjihGEYbGe3GWEA6Ciy94gyM6yi
tn
D (20:11:29) nockchain_bitcoin_sync: test genesis block template sent successfully
I (20:11:29) nockchain_bitcoin_sync: Bitcoin watcher driver initialization complete signal sent
D (20:11:29) nockchain_bitcoin_sync: bitcoin_watcher_driver completed successfully
I (20:11:29) driver_init: driver 'bitcoin_watcher' initialized
I (20:11:45) nc: Failed to bootstrap: No known peers.
E (20:11:45) nc: Failed outgoing connection to None: Failed to negotiate transport protocol(s): [(/ip4/127.0.0.1/udp/3006/quic-v1: : Handshake with the remote timed out.: Handshake with the remote timed out.: Handshake with the remote timed out.)]
I (20:11:45) driver_init: driver 'libp2p' initialized
I (20:11:45) driver_init: all drivers initialized, born poke sent
I (20:11:45) nc: SEvent: Listening on /ip4/127.0.0.1/udp/3005/quic-v1
I (20:11:45) nc: SEvent: Listening on /ip4/*REDACTED*/udp/3005/quic-v1
I (20:11:45) kernel no longer in init phase, can't do init command
D (20:11:45) driver_init: born poke acknowledged
W (20:11:45) behaviour: Failed to trigger bootstrap: No known peers.
E (20:12:00) nc: Failed outgoing connection to None: Failed to negotiate transport protocol(s): [(/ip4/127.0.0.1/udp/3006/quic-v1: : Handshake with the remote timed out.: Handshake with the remote timed out.: Handshake with the remote timed out.)]
I (20:13:48) candidate block timestamp updated: 0x8000000d36c6fb7c
I (20:16:08) candidate block timestamp updated: 0x8000000d36c6fc08
I (20:18:28) candidate block timestamp updated: 0x8000000d36c6fc94
I (20:20:48) candidate block timestamp updated: 0x8000000d36c6fd20
While the follower node is patiently waiting for the genesis block:
I (20:12:52) received btc block hash, waiting to hear nockchain genesis block!
I (20:12:52) libp2p_swarm: local_peer_id=12D3KooWSaRtj4e9b3YqcCAipSnEBm65yJ7sVs1wEhiCRnUiUFwY
D (20:12:52) nockchain_bitcoin_sync: btc-data command for fake genesis block sent successfully
I (20:12:52) nockchain_bitcoin_sync: Bitcoin watcher driver initialization complete signal sent
D (20:12:52) nockchain_bitcoin_sync: bitcoin_watcher_driver completed successfully
I (20:12:52) driver_init: driver 'bitcoin_watcher' initialized
I (20:12:52) kernel is in init phase, can't do non-init command
I (20:13:08) driver_init: driver 'libp2p' initialized
I (20:13:08) driver_init: all drivers initialized, born poke sent
I (20:13:08) nc: Failed to bootstrap: No known peers.
I (20:13:08) Requesting genesis block
I (20:13:08) nc: SEvent: Listening on /ip4/127.0.0.1/udp/3006/quic-v1
I (20:13:08) nc: SEvent: Listening on /ip4/*REDACTED*/udp/3006/quic-v1
D (20:13:08) driver_init: born poke acknowledged