perlin-network / wavelet

Write once, run forever. Deploy robust, scalable, decentralized WebAssembly applications on Wavelet.
https://wavelet.perlin.net
MIT License
259 stars 41 forks source link

Non stoppable case in state sync. #423

Closed a-urth closed 4 years ago

a-urth commented 4 years ago

If there will be not enough peers in this loop https://github.com/perlin-network/wavelet/blob/master/sync.go#L199

There is no way node will recover from which is fine, but if you'll try to stop this now it won't stop and will just spam with error messages. since there are not enough peers and closed sync channel results into no timeout and sync will not be closed, so only sigterm will stop this process