cometbft / cometbft

CometBFT (fork of Tendermint Core): A distributed, Byzantine fault-tolerant, deterministic state machine replication engine
https://docs.cometbft.com
Apache License 2.0
617 stars 436 forks source link

node cannot sync if network has no snapshots #3878

Open charithabandi opened 2 weeks ago

charithabandi commented 2 weeks ago

Currently, If node has statesync enabled and if there are no snapshots in the network, the node just hangs there in the discovery phase.

Can the behavior be changed to switch to blocksync mode if snapshots are not discovered after an extended period of time(configurable)?

melekes commented 2 weeks ago

Sounds reasonable to me 👍

cason commented 1 week ago

Can the behavior be changed to switch to blocksync mode if snapshots are not discovered after an extended period of time(configurable)?

Yes, this is a good to have. But notice that this will only work if there is a valid initial state.

melekes commented 2 days ago

@charithabandi, what would be a good default value for an extended period of time(configurable)?