Don't declare de facto const reference variables as non-const

This commit is contained in:
practicalswift
2020-12-06 16:11:39 +00:00
parent 1c65c075ee
commit 31b136e580
6 changed files with 8 additions and 8 deletions

View File

@@ -256,7 +256,7 @@ Result CommitTransaction(CWallet& wallet, const uint256& txid, CMutableTransacti
errors.push_back(Untranslated("Invalid or non-wallet transaction id"));
return Result::MISC_ERROR;
}
CWalletTx& oldWtx = it->second;
const CWalletTx& oldWtx = it->second;
// make sure the transaction still has no descendants and hasn't been mined in the meantime
Result result = PreconditionChecks(wallet, oldWtx, errors);