-
Notifications
You must be signed in to change notification settings - Fork 30
Allow EVM state to be flushed to disk every Nth block instead of every block #1532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
097dc40
experiment
pathornteng ea8a66b
fix unit tests
pathornteng de298e0
only save committed evmroot
pathornteng 5fda6e4
allow flush interval for evm state to be configured in loom.yaml
pathornteng 8c04bfc
fix unit test
pathornteng 9180eb1
fix unit test
pathornteng 4193068
save default root to evm.db
pathornteng a4863cf
address PR comment
pathornteng 2af31ad
move EVMStateDB from readonlystate to state
pathornteng 28376ff
refactor
pathornteng 393c94e
clean up
pathornteng 15a2264
update tg test
pathornteng 0ca6a89
revert change
pathornteng 7f92b44
only save default root once
pathornteng 749052c
remove legacy evm dump commands and clean up
pathornteng fc265e7
Merge branch 'master' into in-memory-evmstate
pathornteng 88aafca
fix unit tests
pathornteng 8853c38
fix a unit test
pathornteng 2861d52
add evmstore to pluginvm
pathornteng ccc4ffd
merge master
pathornteng 8198833
simplify test
pathornteng 56cfef7
Merge branch 'master' into in-memory-evmstate
pathornteng 8a6be85
merge master
pathornteng 1b7540c
simplify commit EVM root logic
pathornteng 0b70a21
address PR comment
pathornteng 3bfac5b
fix unit test
pathornteng e6ab7ca
address PR comment
pathornteng 89f3fff
commit evm state in application commit
pathornteng b422604
refactor
pathornteng c03f7fa
revert tg branch
pathornteng 5e3a4ab
fix unit test
pathornteng 95f91e1
fix broken tests
pathornteng 2e268ef
add dposv2-genesis
pathornteng 82c887d
reset logs after each tx
pathornteng 51c7eeb
remove unused code
pathornteng 792072e
reset state after commit
pathornteng 1dc0463
merge master
pathornteng 24de625
commit state every tx
pathornteng fca3e54
fix condition
pathornteng 8cf511c
Merge branch 'master' into in-memory-evmstate
pathornteng dd7f2d0
address PR comment
pathornteng 1ec9fa0
address PR comment
pathornteng 8bb11f0
use clone version of evm state for checktx
pathornteng 6e87a27
merge master
pathornteng 00475d4
finalise state after each tx
pathornteng 43068fe
finalize state if tx succeeds
pathornteng cbebc15
revert finalise
pathornteng e47e0ce
revert snapshot if tx fails
pathornteng 5abbc76
address PR comment
pathornteng 3d6d1c8
copying state instead of reverting
pathornteng c4679f3
address PR comments
pathornteng bb65d19
fix unit tests
pathornteng ed9b1bb
fix truffle test
pathornteng 9f8b531
address PR comments
pathornteng 5603a9d
merge master
pathornteng 7c64432
commit missing file
pathornteng cc2b16c
fix linter error
pathornteng 388b818
address PR comment
pathornteng e022db9
Simplify
enlight e2c471a
Tweaks
enlight b4a243e
make evmstore thread-safe by removing its cache
pathornteng 5c51fc6
fix unit test
pathornteng e7d93a1
add snapshot truffle test
pathornteng 8576560
use level db batch in ethdb
pathornteng 16cca33
use cache for logbatch
pathornteng ea2d726
fix wrong import repo
pathornteng eeeab35
address PR comments
pathornteng ed6c72d
Remove LoomEthDB.logContext
enlight b259464
Tweak the LoomEthDB batch a little bit
enlight 548e35c
Increase delay before mapping accounts on Linux
enlight b53718b
Revert irrelevant changes
enlight 9fe103f
Cleanup LogBatch and remove unused sortKeys func
enlight 4952caa
Add a few comments
enlight 7b0a764
Bump default number of cached EVM state roots to 500
enlight d6702e7
Don't reuse the cachingDB instance between EVMState instances
enlight d818dd9
Eliminate PruningIAVLStore
enlight d4824ff
Ensure that EVM & app state are in sync in Application.ReadOnlyState()
enlight 7335869
Remove bogus implementation of MockStore.GetSnapshotAt
enlight c65d47f
Verify state roots in EVMState.GetSnapshot()
enlight 6ecf12f
Remove unused Application.EvmStore field
enlight 23f109e
Revert some modifications to the MultiWriterAppStore tests
enlight 45224fc
Hack VersionedCachingStore to get the e2e tests passing
enlight e996c14
Check that EVMState isn't nil in Application.Commit()
enlight 8b8a3cb
Check that EVMState isn't nil in Application.CheckTx()
enlight b41cb2a
address PR comments and make evm state snapshot panic if it calls Com…
pathornteng ad002bb
Add EvmStore.FlushInterval setting to loom.yml
enlight b1d871b
Switch back to go-ethereum/loomchain branch
enlight 412d987
Add back a lost comment
enlight c69f3c2
Merge branch 'master' into in-memory-evmstate
enlight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.