HomePhabricator

Return void instead of bool for functions that cannot fail

Description

Return void instead of bool for functions that cannot fail

Summary:
Return void instead of bool for functions that cannot fail:

  • CBlockTreeDB::ReadReindexing(...)
  • CChainState::ResetBlockFailureFlags(...)
  • CTxMemPool::addUnchecked(...)
  • CWallet::CommitTransaction(...)
  • CWallet::LoadDestData(...)
  • CWallet::LoadKeyMetadata(...)
  • CWallet::LoadScriptMetadata(...)
  • CWallet::LoadToWallet(...)
  • CWallet::SetHDChain(...)
  • CWallet::SetHDSeed(...)
  • PendingWalletTx::commit(...)
  • RemoveLocal(...)
  • SetMinVersion(...)
  • StartHTTPServer(...)
  • StartRPC(...)
  • TorControlConnection::Disconnect(...)

Backport of Bitcoin Core PR13774
https://github.com/bitcoin/bitcoin/pull/13774

Test Plan:

make check-all

Reviewers: Fabien, #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, deadalnix, jasonbcox

Subscribers: jasonbcox

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

Details

Provenance
practicalswift <practicalswift@users.noreply.github.com>Authored on Jul 27 2018, 06:22
fpelliccioniCommitted on Oct 3 2019, 13:33
deadalnixPushed on Oct 3 2019, 15:47
Reviewer
Restricted Project
Differential Revision
D4179: Return void instead of bool for functions that cannot fail
Parents
rSTAGING1e49b73342dc: Relayout comment in sign.h
Branches
Unknown
Tags
Unknown