hashgraph / hedera-services

Crypto, token, consensus, file, and smart contract services for the Hedera public ledger
Apache License 2.0
281 stars 125 forks source link

Don't save states during PCES replay #6874

Closed cody-littley closed 8 months ago

cody-littley commented 1 year ago

If we cross a state saving boundary during PCES replay, don't bother saving the state.

A node replaying from the PCES is quite likely to be under high load, and quite likely in danger of falling behind and needing to reconnect. If the node crashes again, it can always replay from the stream again, and so we are in no danger of losing data by not saving the state snapshot.

poulok commented 11 months ago

@cody-littley can this be closed?