-
Notifications
You must be signed in to change notification settings - Fork 123
feat: add replaced_by_tx_id to replaced mempool transactions #2271
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
Conversation
Vercel deployment URL: https://stacks-blockchain-1ht0fcc46-hirosystems.vercel.app 🚀 |
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
@@ -2129,8 +2207,8 @@ describe('mempool tests', () => { | |||
}); | |||
}); | |||
|
|||
test('prunes transactions with nonces that were already confirmed', async () => { | |||
// Initial block | |||
test('prunes and restores replaced-by-fee transactions', async () => { |
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.
@zone117x this is the main test of the new functionality
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.
The code looks great, nice tests 💯
The new sql query is in the block ingestion path -- have we tested its performance?
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.
Nice test 👍
@zone117x thanks, I've tested locally but the next step will be to deploy this PR to dev and then staging to perform some load tests |
This PR performs multiple checks to make sure we trace transactions that are replaced by fee correctly:
replaced_by_tx_id
key to dropped mempool transaction responses that will include another transaction ID if this represents an RBF operation.new_tx_id
field from Stacks core when included on dropped mempool messagesReplaces #2141
Fixes #1813