diff --git a/src/rpc/rawtransaction_util.h b/src/rpc/rawtransaction_util.h --- a/src/rpc/rawtransaction_util.h +++ b/src/rpc/rawtransaction_util.h @@ -21,14 +21,13 @@ * * @param mtx The transaction to-be-signed * @param keystore Temporary keystore containing signing keys - * @param coins Map of unspent outputs - coins in mempool and current - * chain UTXO set, may be extended by previous txns outputs after call + * @param coins Map of unspent outputs * @param hashType The signature hash type * @param result JSON object where signed transaction results accumulate */ void SignTransaction(CMutableTransaction &mtx, const SigningProvider *keystore, - std::map &coins, const UniValue &hashType, - UniValue &result); + const std::map &coins, + const UniValue &hashType, UniValue &result); /** * Parse a prevtxs UniValue array and get the map of coins from it diff --git a/src/rpc/rawtransaction_util.cpp b/src/rpc/rawtransaction_util.cpp --- a/src/rpc/rawtransaction_util.cpp +++ b/src/rpc/rawtransaction_util.cpp @@ -255,8 +255,8 @@ } void SignTransaction(CMutableTransaction &mtx, const SigningProvider *keystore, - std::map &coins, const UniValue &hashType, - UniValue &result) { + const std::map &coins, + const UniValue &hashType, UniValue &result) { SigHashType sigHashType = ParseSighashString(hashType); if (!sigHashType.hasForkId()) { throw JSONRPCError(RPC_INVALID_PARAMETER,