Alex Sharov
8335700331
Integration: compare to reference_db after all cycles, better cancelation, add to makefile ( #733 )
...
* cmp to reference db if --reference_chaindata provided
* graceful shutdown
* add ./cmd/integration to makefile
* add interruption support for different stages
* don't compare errors directly
2020-07-10 07:03:18 +01:00
ledgerwatch
810cf13bf8
Explicit incarnation map in the database for deleted contracts ( #578 )
...
* Explicit map of incarnations
* Fix linter
2020-05-26 13:27:21 +01:00
ledgerwatch
6d883b5350
Fix staged sync issue introduced by LRU caches ( #568 )
...
* readPlainAccount
* readPlainAccount
* Try to disable accountCache
* Try to not separate changeBatch
* The actual fix
?
* Move to fastcache, include incarnation
* Fix linter
* Fix linter
* Disable caches
* Fix linter
* Reenable all except storage cache
* Cosmetics
* Disable account cache
* Disable code size cache
* Fix code caching
* Apply the same fix to db_state_writer
2020-05-22 16:11:00 +01:00
ledgerwatch
8b97c5c620
Remove memory leak caused by accountCache, count batch size in bytes ( #565 )
...
* Lower cache sizes
* Add memory profiling over http
* No code cache
* Calculate db batch size in bytes
* Fixes
* Fixes
* Increase batch
* Fix linter
* Restore account caching, with copying
* Reintroduce code cache
* Add fixed overhead per key
* Print batch size
* Fix batch size
* Reduce batch size
* 50 Mb
* Fix linter
2020-05-21 21:55:39 +01:00
ledgerwatch
e2848ac666
Staged exec: RLU cache between StateReader and StateWriter, separate batches for state and changesets ( #542 )
...
* Add cpu profiling
* Splt state and change batches
* Log commits
* Remove
* Log memory
* Add lru caches for staged execution
* Fix
* Fix for nil account
* Fix linter
* Fix linter
* Increase state batch size
* Add memory profiling over http
* Reduce cache sizes
* Fix storage cache
* Fix
* Fix
* Fix
* Fix
* Cleanup
* Fix linter
* Reduce logging
* Reduce logging
2020-05-21 13:27:52 +01:00
Igor Mandrigin
fd77eaf86a
Staged Sync: Execution phase should use "plain state" ( #548 )
...
* introduce PlainStateReader with fallbacks
* no 10.000 changes in tests
* even less iterations
* remove even more iterations
* add `go run ./cmd/geth --syncmode staged --plainstate` flag
* fix serialization calls
* make a more sensible file default
doesn’t affect anything, because this flag is always overriden when parsing CLI. but still.
2020-05-15 08:52:45 +01:00
ledgerwatch
b4d2e57428
Introduce incarnationMap in both DbStateReader and DbStateWriter ( #534 )
...
* Add incarnationMap into db_state_reader
* Fix test
* Add incarnationMap back to the DbStateWriter
2020-05-08 05:52:55 +01:00
Andrew Ashikhmin
7b40cbb6fa
Incarnation should be read by StateReader, not StateWriter ( #506 )
...
* GetCurrentAccountIncarnation
* Incarnation should be read by StateReader, not StateWriter
* Use GetHistoricalAccountIncarnation in DbState
* RemoteReader ReadAccountIncarnation
* Handle the case where a contract has self-destructed, then Eth sent to it, then it got recreated again
2020-05-02 19:00:42 +01:00
ledgerwatch
e1cda82eb8
Fix canonical hashes in staged bodies sync ( #487 )
...
* Fix canonical hashes
Remove changes in hack.go
* incarnations and db_state_reader
* Fix compilation
* Fix linter
* Test fixes
2020-04-26 22:58:26 +01:00