-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: bin/cancel-all-pending-txs.js #1
Conversation
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
@juliangruber ready for your review. I managed to cancel the oldest TX. The second run failed with "transaction execution reverted", but it still cancelled the transaction 🤔
The third run failed with the same error, but cancelled the transaction anyways. It makes me wonder what to do about this. Should I not wait for TX confirmations and cancel all of them in one go? Or maybe in batches of 10 TX? |
Example of an accepted TX: Example of rejected TX:
|
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
An error we are not handling yet, I don't know what to do when this happens. Do you perhaps know, @juliangruber ?
|
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
Signed-off-by: Miroslav Bajtoš <[email protected]>
value: 0, | ||
nonce, | ||
gasLimit: Math.ceil(gasUsed * 1.1), | ||
maxFeePerGas: gasFeeCap, |
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.
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'll fix that in a follow-up PR.
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.
If we don't wait for confirmations it will be hard to tell whether the script succeeded, and why. I think we need to see the errors in the logs, when there are some |
Idk though why this happens |
I have seen this in logs before, but don't understand it yet either |
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.
Are you able to completely clear up the mempool with this script?
Signed-off-by: Miroslav Bajtoš <[email protected]>
Yes, the mempool was cleared. |
WIP