mimblewimble / grin

Minimal implementation of the Mimblewimble protocol.
https://grin.mw/
Apache License 2.0
5.04k stars 991 forks source link

[PIBD_IMPL] PIBD Stats + Retry on validation errors #3694

Closed yeastplume closed 2 years ago

yeastplume commented 2 years ago

Adds sync stats for use in TUI, and resets the chain body to genesis and restarts if an error is detected during validation. Note this does not yet cover all error conditions and it's still very possible for the pibd process to stall. However, I have been able to successfully sync a node to testnet after these changes.