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(...)
Some of the functions can fail by throwing.
Found by manually inspecting the following candidate functions:
0$ git grep -E '(^((static|virtual|inline|friend)[^a-z])*[^a-z]*bool [^=]*\(|return true|return false)' -- "*.cpp" "*.h"