Improve CFeeBumper interface, add comments, make use of std::move

This commit is contained in:
Jonas Schnelli
2017-03-30 09:26:21 +02:00
parent 0df22ed6fd
commit 5f59d3ecb7
3 changed files with 18 additions and 3 deletions

View File

@@ -2895,7 +2895,7 @@ UniValue bumpfee(const JSONRPCRequest& request)
}
// sign bumped transaction
if (!pwallet->SignTransaction(*feeBump.getBumpedTxRef())) {
if (!feeBump.signTransaction(pwallet)) {
throw JSONRPCError(RPC_WALLET_ERROR, "Can't sign transaction.");
}
// commit the bumped transaction