Skip to content
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 data poster replace-by-fee loop #2590

Merged
merged 2 commits into from
Aug 19, 2024
Merged

Conversation

PlasmaPower
Copy link
Collaborator

@PlasmaPower PlasmaPower commented Aug 19, 2024

There were a couple of issues here, but most notably the "Don't try to send more than 1 unsent transaction" case had a significant issue. If the data poster gets into a situation where there's multiple queued unsent txs, it'd only try to send one every 5 minutes, because the default nextCheck is 5 minutes in the future, and it'd only try to send one of them at once.

This PR fixes that by reloading the tx from the queue after attempting to send or replace it. Then, it determines if it can continue trying to send future txs or if it needs to retry because it failed to send the current one.

Fixes NIT-2737

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Aug 19, 2024
Copy link
Member

@Tristan-Wilson Tristan-Wilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshuacolvin0 joshuacolvin0 merged commit 751b4e4 into master Aug 19, 2024
14 checks passed
@joshuacolvin0 joshuacolvin0 deleted the fix-data-poster-rbf branch August 19, 2024 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants