Skip to content

Borrow instead of moving transaction when broadcasting#452

Merged
notmandatory merged 1 commit intobitcoindevkit:masterfrom
klochowicz:borrow-transaction-for-broadcasting
Oct 27, 2021
Merged

Borrow instead of moving transaction when broadcasting#452
notmandatory merged 1 commit intobitcoindevkit:masterfrom
klochowicz:borrow-transaction-for-broadcasting

Conversation

@klochowicz
Copy link
Copy Markdown
Contributor

@klochowicz klochowicz commented Oct 20, 2021

Description

Cleanup - don't need to move transaction when broadcasting

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

Bugfixes:

  • This pull request breaks the existing API

I guess it breaks the API, albeit in a really trivial way (clippy should suggest using a borrow)

@klochowicz klochowicz force-pushed the borrow-transaction-for-broadcasting branch from 1f87367 to 535f600 Compare October 20, 2021 22:47
Copy link
Copy Markdown
Contributor

@rajarshimaitra rajarshimaitra left a comment

Choose a reason for hiding this comment

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

Concept ACK. It seems unnecessary to move the tx while the internal broadcast is using reference itself.

Copy link
Copy Markdown
Collaborator

@LLFourn LLFourn left a comment

Choose a reason for hiding this comment

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

ACK

@klochowicz klochowicz force-pushed the borrow-transaction-for-broadcasting branch from 535f600 to c0695f8 Compare October 25, 2021 05:53
@afilini
Copy link
Copy Markdown
Member

afilini commented Oct 26, 2021

Concept ACK, this needs to be rebased on top of #454 to fix the CI and then we can merge it

There's no need to take ownership of the transaction for a broadcast.
@klochowicz klochowicz force-pushed the borrow-transaction-for-broadcasting branch from c0695f8 to 3d8efbf Compare October 27, 2021 11:31
@klochowicz
Copy link
Copy Markdown
Contributor Author

Concept ACK, this needs to be rebased on top of #454 to fix the CI and then we can merge it

rebased! hopefully the tests will pass this time.

Copy link
Copy Markdown
Member

@notmandatory notmandatory left a comment

Choose a reason for hiding this comment

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

ACK 3d8efbf

Thanks, nice fix.

@notmandatory notmandatory merged commit 3d8efbf into bitcoindevkit:master Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants