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.
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 feature to TXM to detect and purge stuck transactions #12881
Add feature to TXM to detect and purge stuck transactions #12881
Changes from 1 commit
246b04d
d47d88f
8c713dc
05c5a11
360d9fa
0a04fff
d26473c
1541c5a
1d4113d
c71ac14
2e46dde
8185dc8
20bfb9d
82e3a5d
db5264e
0d5b318
25105a1
491f9e3
338ab26
dc17b98
468b73b
736eb89
b2902c6
6eb5dc5
a5663ee
0cea37b
a3cd9b7
02306fe
a13605b
c2deae5
a5ea4aa
1cfb5cc
335033a
a5ba3a0
7513d36
4b41b4b
cc5764d
b1faa07
d67d79b
c4062f5
54b9c7c
d244012
0915400
c95d261
db5e5d9
31d69ba
90ec4a3
d81da52
a33460b
c08504b
88826a7
e400a36
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
does it make sense to have
LoadPurgeBlockNumMap
in theNewStuckTxDetector
initialization?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 considered this to avoid another method the confirmer needs to call but this method requires a context. I wouldn't have anything to wire this up to during initialization and didn't want to introduce a context to the TXM builder method just to pass it down to the detector.
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.
You actually need to call this from startInternal(), which can be called multiple times during the lifetime of the Confirmer. So doing it in NewStuckTxDetector() will just be redundant. You still have to call it from here