Skip to content

Commit 1accfbc

Browse files
committed
Output values for "min relay fee not met" error
1 parent 0a8b7b4 commit 1accfbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ static bool AcceptToMemoryPoolWorker(const CChainParams& chainparams, CTxMemPool
720720

721721
// No transactions are allowed below minRelayTxFee except from disconnected blocks
722722
if (!bypass_limits && nModifiedFees < ::minRelayTxFee.GetFee(nSize)) {
723-
return state.DoS(0, false, REJECT_INSUFFICIENTFEE, "min relay fee not met");
723+
return state.DoS(0, false, REJECT_INSUFFICIENTFEE, "min relay fee not met", false, strprintf("%d < %d", nModifiedFees, ::minRelayTxFee.GetFee(nSize)));
724724
}
725725

726726
if (nAbsurdFee && nFees > nAbsurdFee)

test/functional/mining_prioritisetransaction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def run_test(self):
120120
tx_id = self.nodes[0].decoderawtransaction(tx_hex)["txid"]
121121

122122
# This will raise an exception due to min relay fee not being met
123-
assert_raises_rpc_error(-26, "min relay fee not met (code 66)", self.nodes[0].sendrawtransaction, tx_hex)
123+
assert_raises_rpc_error(-26, "min relay fee not met, 0 < 134 (code 66)", self.nodes[0].sendrawtransaction, tx_hex)
124124
assert(tx_id not in self.nodes[0].getrawmempool())
125125

126126
# This is a less than 1000-byte transaction, so just set the fee

0 commit comments

Comments
 (0)