helium / blockchain-core

Apache License 2.0
214 stars 85 forks source link

don't sync forever when halted #1456

Closed evanmcc closed 1 year ago

evanmcc commented 1 year ago

The current behavior for invalid txns is to clear the snapshot cache and retry syncing. This is incredibly expensive, and should only be tried once, as trying repeatedly is unlikely to result in any progress. This PR adds some sadly global state for this so that we don't keep retrying, but halt after a single try and pause syncing until action is taken.