wallet/rpc: add maxfeerate parameter to testmempoolaccept

This commit is contained in:
Karl-Johan Alm
2019-02-14 17:07:29 +09:00
parent 6c0a6f73e3
commit 7abd2e697c
5 changed files with 32 additions and 11 deletions

View File

@ -113,7 +113,7 @@ class BIP65Test(BitcoinTestFramework):
# rejected from the mempool for exactly that reason.
assert_equal(
[{'txid': spendtx.hash, 'allowed': False, 'reject-reason': '64: non-mandatory-script-verify-flag (Negative locktime)'}],
self.nodes[0].testmempoolaccept(rawtxs=[spendtx.serialize().hex()], allowhighfees=True)
self.nodes[0].testmempoolaccept(rawtxs=[spendtx.serialize().hex()], maxfeerate=0)
)
# Now we verify that a block with this transaction is also invalid.