diff options
| author | Gregory Maxwell <[email protected]> | 2016-04-20 19:38:19 +0000 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2016-05-16 04:10:06 +0000 |
| commit | d87b198b7334317952ca6a1377e25b5c859a1767 (patch) | |
| tree | 29d9f99f470ad78cd2da6ce4673a6837642336ab /src/rpc/rawtransaction.cpp | |
| parent | Merge #8046: [Qt][OSX] Fix Cmd-Q / Menu Quit shutdown on OSX (diff) | |
| download | discoin-d87b198b7334317952ca6a1377e25b5c859a1767.tar.xz discoin-d87b198b7334317952ca6a1377e25b5c859a1767.zip | |
Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool.
Diffstat (limited to 'src/rpc/rawtransaction.cpp')
| -rw-r--r-- | src/rpc/rawtransaction.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index de8cd68f6..bec7ebe55 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -819,12 +819,11 @@ UniValue sendrawtransaction(const UniValue& params, bool fHelp) const CCoins* existingCoins = view.AccessCoins(hashTx); bool fHaveMempool = mempool.exists(hashTx); bool fHaveChain = existingCoins && existingCoins->nHeight < 1000000000; - CFeeRate txFeeRate = CFeeRate(0); if (!fHaveMempool && !fHaveChain) { // push to local node and sync with wallets CValidationState state; bool fMissingInputs; - if (!AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, &txFeeRate, false, nMaxRawTxFee)) { + if (!AcceptToMemoryPool(mempool, state, tx, false, &fMissingInputs, false, nMaxRawTxFee)) { if (state.IsInvalid()) { throw JSONRPCError(RPC_TRANSACTION_REJECTED, strprintf("%i: %s", state.GetRejectCode(), state.GetRejectReason())); } else { @@ -837,7 +836,7 @@ UniValue sendrawtransaction(const UniValue& params, bool fHelp) } else if (fHaveChain) { throw JSONRPCError(RPC_TRANSACTION_ALREADY_IN_CHAIN, "transaction already in block chain"); } - RelayTransaction(tx, txFeeRate); + RelayTransaction(tx); return hashTx.GetHex(); } |