delay around bootstrapping

This commit is contained in:
gammazero 2026-01-07 13:59:38 -10:00
parent 760ae8dba6
commit 482743b6cc

View File

@ -270,11 +270,13 @@ func main() {
bootstrapPeers := []peer.AddrInfo{nodeA.Peerstore.PeerInfo(nodeA.Identity)}
time.Sleep(5 * time.Second)
fmt.Println("Bootstrapping nodeB to nodeA")
if err := nodeB.Bootstrap(bootstrap.BootstrapConfigWithPeers(bootstrapPeers)); err != nil {
panic(fmt.Errorf("failed to bootstrap nodeB: %s", err))
}
fmt.Println("Done bootstrapping nodeB")
time.Sleep(5 * time.Second)
exampleCIDStr := peerCidFile.RootCid().String()