-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vm] Block Pruning (Default to Only Keeping Last 768 Blocks) (#436)
* remove all block storage expectations * controller compiles * remove unnecessary cache config * limit block history to 256 * integration passing * default to no tx store * fix vm tests * fix lint * tokenvm integration fixed * handle genesis block fetch * only store txs during test (tokenvm) * update README * add debugging code * update invariant * add caches to store last X blocks * e2e tests passing * restore version * remove unnecessary config * fix VM test * add check to prevent runaway block production * add more TODOs * add quick restart test * refactor tx backfill logic * load blocks from disk on init * fix off-by-one issue * var rename * nits * remove unused var * fix test * fix lint * fix TODO on vm * ensure block is marked as accepted * change log level * add deleted blocks metrics * add more pebble metrics * compact disk blocks periodically * ensure all deletion does not happen at the same time * fix lint * update allocation amount * update tokenvm to allow unlimited usage * use new genesis alloc * fix startAmount
- Loading branch information
1 parent
0662c62
commit fa48f6e
Showing
22 changed files
with
626 additions
and
324 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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.