erigon-pulse/eth
ledgerwatch 5ea590c18e
State cache switching writes to reads during commit (#1368)
* State cache init

* More code

* Fix lint

* More tests

* More tests

* More tests

* Fix test

* Transformations

* remove writeQueue, before fixing the tests

* Fix tests

* Add more tests, incarnation to the code items

* Fix lint

* Fix lint

* Remove shards prototype, add incarnation to the state reader code

* Clean up and replace cache in call_traces stage

* fix flaky test

* Save changes

* Readers to use addrHash, writes - addresses

* Fix lint

* Fix lint

* More accurate tracking of size

* Optimise for smaller write batches

* Attempt to integrate state cache into Execution stage

* cacheSize to default flags

* Print correct cache sizes and batch sizes

* cacheSize in the integration

* Fix tests

* Fix lint

* Remove print

* Fix exec stage

* Fix test

* Refresh sequence on write

* No double increment

* heap.Remove

* Try to fix alignment

* Refactoring, adding hashItems

* More changes

* Fix compile errors

* Fix lint

* Wrapping cached reader

* Wrap writer into cached writer

* Turn state cache off by default

* Fix plain state writer

* Fix for code/storage mixup

* Fix tests

* Fix clique test

* Better fix for the tests

* Add test and fix some more

* Fix compile error|

* More functions

* Fixes

* Fix for the tests

* sepatate DeletedFlag and AbsentFlag

* Minor fixes

* Test refactoring

* More changes

* Fix some tests

* More test fixes

* More test fixes

* Fix lint

* Move blockchain_test to be able to use stagedsync

* More fixes

* Fixes and cleanup

* Fix tests in turbo/stages

* Fix lint

* Fix lint

* Intemediate

* Fix tests

* Intemediate

* More fixes

* Compilation fixes

* More fixes

* Fix compile errors

* More test fixes

* More fixes

* More test fixes

* Fix compile error

* Fixes

* Fix

* Fix

* More fixes

* Fixes

* More fixes and cleanup

* Further fix

* Check gas used and bloom with header

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2020-12-08 09:44:29 +00:00
..
downloader State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
fetcher Jump tables data race (#1245) 2020-10-20 22:23:56 +01:00
filters Store receipts separately - one record per tx (#1271) 2020-10-25 08:38:55 +00:00
gasprice State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
stagedsync State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
tracers Replacing auto generated assets.go (#1197) 2020-10-07 08:48:21 +01:00
api_backend.go Store receipts separately - one record per tx (#1271) 2020-10-25 08:38:55 +00:00
api_test.go move ./trie to ./turbo/trie (#1114) 2020-09-14 11:33:39 +01:00
api_tracer.go all: implement EIP-2929 (gas cost increases for state access opcodes) + yolo-v2 (#21509) 2020-12-03 17:37:38 +01:00
api.go eth/api: fix potential nil deref in AccountRange (#21710) 2020-12-03 17:37:38 +01:00
backend.go State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
bloombits.go [WIP] CallTraces index (#1157) 2020-10-12 09:39:04 +01:00
config.go State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
debug.go Call bufio.Flash() in tester (#407) 2020-03-26 21:52:05 +00:00
discovery.go cmd/devp2p: add eth protocol test suite (#21598) 2020-10-06 14:12:09 +02:00
firehose.go move ./trie to ./turbo/trie (#1114) 2020-09-14 11:33:39 +01:00
gen_config.go cmd, core, eth, light, trie: dump clean cache periodically (#20391) 2020-08-12 12:01:13 +02:00
handler_test.go State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
handler.go State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
helper_test.go State cache switching writes to reads during commit (#1368) 2020-12-08 09:44:29 +00:00
peer.go Headers poc 3 - intermediate changes (#1093) 2020-09-11 07:35:51 +01:00
protocol_test.go Jump tables data race (#1245) 2020-10-20 22:23:56 +01:00
protocol.go Headers poc 3 - intermediate changes (#1093) 2020-09-11 07:35:51 +01:00
sync_test.go remove eth/63, add tests for eth/65 (#823) 2020-07-30 11:16:55 +01:00
sync.go Prevent block_fetcher from accessing the database (#1200) 2020-10-07 18:58:09 +01:00