cerc-io / ipld-eth-state-snapshot

Read-only mirror of https://git.vdb.to/cerc-io/ipld-eth-state-snapshot (Tool for inserting the entire state and storage tries into PG-IPFS)
https://git.vdb.to/cerc-io/ipld-eth-state-snapshot
GNU Affero General Public License v3.0
8 stars 4 forks source link

Service state recovery #22

Closed roysc closed 2 years ago

roysc commented 2 years ago

Implements https://github.com/vulcanize/ipld-eth-state-snapshot/issues/17

Also includes corrections for edge cases, cleans up the logic some, and expands tests. Depends on https://github.com/vulcanize/go-eth-state-node-iterator/pull/10, will update go.mod after that is merged.

roysc commented 2 years ago

I've added signal handlers so the recovery file is dumped on SIGINT - I'm guessing we'll want that. Should we also handle SIGTERM, SIGKILL?

i-norden commented 2 years ago

Nice @roysc thanks, yeah I think we should handle SIGTERM. SIGKILL is so forceful that I think it's fair to expect it to quit without dumping.