-
Notifications
You must be signed in to change notification settings - Fork 829
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
Add logic to remove a small number of tx hashes each block #2048
base: main
Are you sure you want to change the base?
Conversation
@@ -298,6 +298,9 @@ | |||
// EndBlock executes all ABCI EndBlock logic respective to the evm module. It | |||
// returns no validator updates. | |||
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate { | |||
// TODO: remove after all TxHashes have been removed | |||
am.keeper.RemoveFirstNTxHashes(ctx, keeper.DefaultTxHashesToRemove) |
Check warning
Code scanning / CodeQL
Panic in BeginBock or EndBlock consensus methods Warning
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2048 +/- ##
==========================================
+ Coverage 61.28% 61.49% +0.21%
==========================================
Files 264 265 +1
Lines 24566 24581 +15
==========================================
+ Hits 15056 15117 +61
+ Misses 8384 8335 -49
- Partials 1126 1129 +3
|
@@ -298,6 +298,9 @@ func (am AppModule) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock) { | |||
// EndBlock executes all ABCI EndBlock logic respective to the evm module. It | |||
// returns no validator updates. | |||
func (am AppModule) EndBlock(ctx sdk.Context, req abci.RequestEndBlock) []abci.ValidatorUpdate { | |||
// TODO: remove after all TxHashes have been removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we do this every 10 blocks? just so we spread it out and it doesn't look like block times are just degrading?
fe92e36
to
98a3e70
Compare
98a3e70
to
b4d5dff
Compare
Describe your changes and provide context
Remove 100 tx hashes every block until all tx hashes are deleted.
Testing performed to validate your change
unit test