Skip to content

wallet, refactor: Make WalletModel::sendCoins() return void#608

Merged
hebasto merged 1 commit into
bitcoin-core:masterfrom
hebasto:220529-sendcoins
Jun 12, 2022
Merged

wallet, refactor: Make WalletModel::sendCoins() return void#608
hebasto merged 1 commit into
bitcoin-core:masterfrom
hebasto:220529-sendcoins

Conversation

@hebasto

@hebasto hebasto commented May 29, 2022

Copy link
Copy Markdown
Member

Currently, the WalletModel::sendCoins() function always returns the same value.

Also dead and noop (calling processSendCoinsReturn(OK)) code has been removed.

The other return statements have been removed from the WalletModel::sendCoins() function in bitcoin/bitcoin#17154 and bitcoin/bitcoin#17165.

Currently, the `WalletModel::sendCoins()` function always returns the
same value.

Also dead and noop code has been removed.
@hebasto hebasto changed the title qt, wallet, refactor: Make WalletModel::sendCoins() return void wallet, refactor: Make WalletModel::sendCoins() return void May 29, 2022

@kristapsk kristapsk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cr ACK 1f653dc

@furszy furszy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code review ACK 1f653dc

Reviewing this found bitcoin/bitcoin#25239, so thanks for the push into the right direction hehe.

@shaavan shaavan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review ACK 1f653dc

  • It is an excellent cleanup, which eliminates a redundant return value and the need to check it under a conditional statement later.

Nice catch, @hebasto!

@w0xlt w0xlt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review ACK 1f653dc

@hebasto
hebasto merged commit 9ef180a into bitcoin-core:master Jun 12, 2022
@hebasto
hebasto deleted the 220529-sendcoins branch June 12, 2022 11:35
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 13, 2022
…Coins()` return `void`

1f653dc qt, wallet, refactor: Make `WalletModel::sendCoins()` return `void` (Hennadii Stepanov)

Pull request description:

  Currently, the `WalletModel::sendCoins()` function always returns the same value.

  Also dead and noop (calling `processSendCoinsReturn(OK)`) code has been removed.

  The other `return` statements have been removed from the `WalletModel::sendCoins()` function in bitcoin#17154 and bitcoin#17165.

ACKs for top commit:
  kristapsk:
    cr ACK 1f653dc
  furszy:
    Code review ACK 1f653dc
  shaavan:
    Code Review ACK 1f653dc
  w0xlt:
    Code Review ACK bitcoin-core/gui@1f653dc

Tree-SHA512: 2b59495a7fc10b4de30fcc63fc3af92d50406e16031112eb72494736dce193ac1fbac0802623496cf81edcd16766e1647d9c4f3a607b3eb84cc50e273b999c04
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants