erigon-pulse/common/dbutils
Alex Sharov daa359c363
Mgr schedule iterator (#566)
* db based version of PrefixByCumulativeWitnessSize

* db based version of PrefixByCumulativeWitnessSize

* retain all in Trie by default

* fix WitnessLen logic in calcTrie roots

* Rename IntermediateTrieWitnessLenBucket to IntermediateWitnessLenBucket

* handle corner cases in WL

* Use correct incarnation for IH bucket

* use name WitnessSize

* save progress towards db-only witness estimation

* results from trie and from db are still different

* less recursion

* correct incarnation in CumulativeSearch

* reuse results from previous Tick, separate concepts of parent and startKey

* experiment: if not including trie structure to WitnessSize will reduce cumulative error

* tool to generate all IH and tool to calculate assessment of cumulative error

* tool to generate all IH

* Calculate totalWitnessSize based on DB data - then schedule will not overrun state during MGR cycle

* better stats

* Calculate totalWitnessSize based on DB data - then schedule will not overrun state during MGR cycle

* Calculate totalWitnessSize based on DB data - then schedule will not overrun state during MGR cycle

* calculate ticks size distribution

* estimate cumulative error

* fix linter

* resetIH from scratch if needed

* cleanup

* fix test

* fix test
2020-05-28 12:33:05 +01:00
..
bucket.go Mgr schedule iterator (#566) 2020-05-28 12:33:05 +01:00
composite_keys_test.go Staged Sync: Execution phase should use "plain state" (#548) 2020-05-15 08:52:45 +01:00
composite_keys.go Mgr schedule iterator (#566) 2020-05-28 12:33:05 +01:00
helper.go Mgr schedule iterator (#566) 2020-05-28 12:33:05 +01:00
history_index_test.go Index bits to mark creation of accounts or storage items (#483) 2020-04-25 15:50:32 +01:00
history_index.go Stages 6 and 7 for generating history indices (#569) 2020-05-23 10:19:56 +01:00
suffix_type.go geth 1.9.13 (#469) 2020-04-19 18:31:47 +01:00