HomePhabricator

[backport#17154 2/3][wallet] Remove return value from CommitTransaction()

Description

[backport#17154 2/3][wallet] Remove return value from CommitTransaction()

Summary:
CommitTransaction returns a bool to indicate success, but since commit
b3a74100b8 it only returns true, even if the transaction was not
successfully broadcast. This commit changes CommitTransaction() to return
void.

All dead code in if (!CommitTransaction()) branches has been removed.

https://github.com/bitcoin/bitcoin/pull/17154/commits/d1734f9a3b138ab046f38ee44a09bc3847bf938a


Depends on D7112

Partial backport of Core PR17154

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D7113

Details

Provenance
John Newbery <john@johnnewbery.com>Authored on Apr 3 2019, 21:55
majcostaCommitted on Aug 5 2020, 05:08
majcostaPushed on Aug 5 2020, 05:08
Reviewer
Restricted Project
Differential Revision
D7113: [backport#17154 2/3][wallet] Remove return value from CommitTransaction()
Parents
rABC973e07b9f458: [backport#17154 1/3][wallet] Add doxygen comment to CWallet::CommitTransaction()
Branches
Unknown
Tags
Unknown