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: exit early if no requests during presign request creation #1215

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

djordon
Copy link
Collaborator

@djordon djordon commented Jan 14, 2025

Description

Closes #1214

Changes

  • Return early in TxCoordinatorEventLoop::construct_and_send_bitcoin_presign_request if there are no transactions to handle.

Testing Information

I did not add a test because it would take quite a while to setup. Perhaps I should create a ticket to add a test at some later date.

Checklist:

  • I have performed a self-review of my code

@djordon djordon added the bug Something isn't working label Jan 14, 2025
@djordon djordon self-assigned this Jan 14, 2025
@djordon djordon changed the title fix: exit early when no requests during presign request creation fix: exit early if no requests during presign request creation Jan 14, 2025
@djordon
Copy link
Collaborator Author

djordon commented Jan 14, 2025

I created #1217 for adding a test for this change.

Copy link
Member

@cylewitruk cylewitruk left a comment

Choose a reason for hiding this comment

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

lgtm 👍

@djordon djordon merged commit 8c1ad1b into main Jan 14, 2025
4 checks passed
@djordon djordon deleted the fix-empty-txs-presign-check branch January 14, 2025 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Do not create a BitcoinPreSignRequest with no requests
2 participants