Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented May 29, 2022

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
Copy link
Contributor

@kristapsk kristapsk left a comment

Choose a reason for hiding this comment

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

cr ACK 1f653dc

Copy link
Member

@furszy furszy left a comment

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.

Copy link
Contributor

@shaavan shaavan left a comment

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!

Copy link
Contributor

@w0xlt w0xlt left a comment

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