-
Notifications
You must be signed in to change notification settings - Fork 465
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
Fix dispose block.AccountChanges ArrayPoolList #8051
base: master
Are you sure you want to change the base?
Conversation
Is Disposed here in TxPool; so this would mean it was disposed before the txPool could use it nethermind/src/Nethermind/Nethermind.TxPool/TxPool.cs Lines 226 to 238 in b0c5165
However; OnHeadChange isn't always fired to the txpool for every block 🤔 |
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 you try to write unit tests that reproduce it? Of course, if possible
I think this the TxPool would use it before my code disposes it. I added just after the The call stack would look something like this So the change should just dispose if this is never called |
I'll have a look into it, happens for me just from starting the node on chiado |
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.
block.AccountChanges?.Dispose(); | ||
processedBlock?.AccountChanges?.Dispose(); |
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.
I think this is used in TxPool
so cannot be disposed here
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.
see my above comment, I think that's before
BlockAddedToMain is fired on every block |
Can you add a test for it? :) |
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Documentation
Requires documentation update
Requires explanation in Release Notes
Remarks
Fixes the following error observed on chiado node: