ava-labs / avalanchego

Go implementation of an Avalanche node.
https://avax.network
BSD 3-Clause "New" or "Revised" License
2.12k stars 669 forks source link

Unexpected `failed to connect to bootstrap nodes` warning #3109

Closed StephenButtolph closed 3 months ago

StephenButtolph commented 3 months ago

Avalanchego will incorrectly report that the beacon nodes are unreachable when running a node with reduced performance.

https://github.com/ava-labs/avalanchego/blob/41e46d1178116eb7421fe2adbf2eaa7ef97b0f8b/node/node.go#L622-L625

This issue is able to be replicated consistently on nodes with high performance by extending the time to initialize the platformvm.

For example, modifying https://github.com/ava-labs/avalanchego/blob/41e46d1178116eb7421fe2adbf2eaa7ef97b0f8b/vms/platformvm/vm.go#L108. To:

+   time.Sleep(time.Minute)
+
    chainCtx.Log.Verbo("initializing platform chain")