From 59e195324643e8f3a18396b529e3350e550fdecc Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Tue, 26 Mar 2019 15:48:31 +0100 Subject: core, ethdb, trie: mode dirty data to clean cache on flush (#19307) This PR is a more advanced form of the dirty-to-clean cacher (#18995), where we reuse previous database write batches as datasets to uncache, saving a dirty-trie-iteration and a dirty-trie-rlp-reencoding per block. --- core/state/statedb.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/state') diff --git a/core/state/statedb.go b/core/state/statedb.go index 0673de543..a299cdb64 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -53,6 +53,10 @@ func (n *proofList) Put(key []byte, value []byte) error { return nil } +func (n *proofList) Delete(key []byte) error { + panic("not supported") +} + // StateDBs within the ethereum protocol are used to store anything // within the merkle trie. StateDBs take care of caching and storing // nested states. It's the general query interface to retrieve: -- cgit v1.2.3