erigon-pulse/core/state
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
..
contracts post-rebase fixups 2020-05-20 15:26:22 +03:00
change_set_writer.go Use uint256.Int rather than common.Hash for storage values to reduce memory allocation in opSload & opSstore (#575) 2020-05-25 12:12:25 +01:00
database_test.go Fix RestAPI for tx_retrace and make it work for local boltdb (#584) 2020-05-27 17:24:34 +01:00
database_writer.go Add "execute blocks" stage to the staged sync. (#486) 2020-04-26 17:02:38 +01:00
database.go Mgr schedule iterator (#566) 2020-05-28 12:33:05 +01:00
db_state_reader.go Explicit incarnation map in the database for deleted contracts (#578) 2020-05-26 13:27:21 +01:00
db_state_writer.go Explicit incarnation map in the database for deleted contracts (#578) 2020-05-26 13:27:21 +01:00
dump.go Fix RestAPI for tx_retrace and make it work for local boltdb (#584) 2020-05-27 17:24:34 +01:00
helper.go Don't store RLPs in valueNodes (except tests). 2019-11-13 20:08:20 +01:00
history_test.go Fix RestAPI for tx_retrace and make it work for local boltdb (#584) 2020-05-27 17:24:34 +01:00
intermediate_hashes.go Mgr schedule iterator (#566) 2020-05-28 12:33:05 +01:00
intra_block_state_test.go Fix RestAPI for tx_retrace and make it work for local boltdb (#584) 2020-05-27 17:24:34 +01:00
intra_block_state.go Use uint256 for account balance (#580) 2020-05-26 17:53:50 +01:00
journal.go Use uint256 for account balance (#580) 2020-05-26 17:53:50 +01:00
plain_state_reader.go Explicit incarnation map in the database for deleted contracts (#578) 2020-05-26 13:27:21 +01:00
plain_state_writer.go Explicit incarnation map in the database for deleted contracts (#578) 2020-05-26 13:27:21 +01:00
readonly.go Fix RestAPI for tx_retrace and make it work for local boltdb (#584) 2020-05-27 17:24:34 +01:00
state_object_test.go build: use golangci-lint (#20295) 2019-12-03 13:38:59 +01:00
state_object.go Use uint256 for account balance (#580) 2020-05-26 17:53:50 +01:00
state_test.go Fix RestAPI for tx_retrace and make it work for local boltdb (#584) 2020-05-27 17:24:34 +01:00
stateless.go Use uint256.Int rather than common.Hash for storage values to reduce memory allocation in opSload & opSstore (#575) 2020-05-25 12:12:25 +01:00