erigon-pulse/core/rawdb
Martin Holst Swende c64c3100f0 core, eth, les: implement unclean-shutdown marker (#21893)
This PR implements unclean shutdown marker. Every time geth boots, it adds a timestamp to a list of timestamps in the database. This list is capped at 10. At a clean shutdown, the timestamp is removed again.
Thus, when geth exits unclean, the marker remains, and at boot up we show the most recent unclean shutdowns to the user, which makes it easier to diagnose root-causes to certain problems.

Co-authored-by: Nagy Salem <me@muhnagy.com>
# Conflicts:
#	core/rawdb/accessors_metadata.go
#	core/rawdb/database.go
#	core/rawdb/schema.go
#	eth/backend.go
#	les/client.go
2021-03-08 14:38:56 +01:00
..
accessors_account.go New Trie db layout - store trie structure info and multiple hashes per record (#1500) 2021-02-21 18:41:59 +00:00
accessors_chain_test.go Add validation of senders amount (#1539) 2021-03-04 16:34:49 +07:00
accessors_chain.go Add validation of senders amount (#1539) 2021-03-04 16:34:49 +07:00
accessors_indexes_test.go stop on error: headers stage (#1289) 2020-10-24 18:05:12 +01:00
accessors_indexes.go Store transactions individually (#1358) 2020-11-22 21:25:26 +00:00
accessors_metadata.go core, eth, les: implement unclean-shutdown marker (#21893) 2021-03-08 14:38:56 +01:00
interfaces.go Store transactions individually (#1358) 2020-11-22 21:25:26 +00:00