rpc: include verbose reject-details field in testmempoolaccept response
This commit is contained in:
6 files changed
+36
-13
No files matched your search
@@ -100,13 +100,15 @@ class MempoolWtxidTest(BitcoinTestFramework):
|
||||
"txid": child_one_txid,
|
||||
"wtxid": child_one_wtxid,
|
||||
"allowed": False,
|
||||
"reject-reason": "txn-already-in-mempool"
|
||||
"reject-reason": "txn-already-in-mempool",
|
||||
"reject-details": "txn-already-in-mempool"
|
||||
}])
|
||||
assert_equal(node.testmempoolaccept([child_two.serialize().hex()])[0], {
|
||||
"txid": child_two_txid,
|
||||
"wtxid": child_two_wtxid,
|
||||
"allowed": False,
|
||||
"reject-reason": "txn-same-nonwitness-data-in-mempool"
|
||||
"reject-reason": "txn-same-nonwitness-data-in-mempool",
|
||||
"reject-details": "txn-same-nonwitness-data-in-mempool"
|
||||
})
|
||||
|
||||
# sendrawtransaction will not throw but quits early when the exact same transaction is already in mempool
|
||||
|
||||
Reference in new issue
Block a user