diff options
author | Suhas Daftuar <sdaftuar@gmail.com> | 2017-03-11 13:04:38 -0500 |
---|---|---|
committer | Suhas Daftuar <sdaftuar@gmail.com> | 2017-03-11 13:04:38 -0500 |
commit | 655df06fb67b558325d0301b7c543ea04bf2899b (patch) | |
tree | 1b408df4f5c1a415477ccf942bd0cd5cc9ef4942 /qa | |
parent | 21833f9456f6ad5bc06321ad6d9590f42ce0195c (diff) | |
download | bitcoin-655df06fb67b558325d0301b7c543ea04bf2899b.tar.xz |
QA: getblocktemplate_longpoll.py should always use >0 fee tx
Diffstat (limited to 'qa')
-rwxr-xr-x | qa/rpc-tests/getblocktemplate_longpoll.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/rpc-tests/getblocktemplate_longpoll.py b/qa/rpc-tests/getblocktemplate_longpoll.py index dc17bbd7b3..bbe1dda5f7 100755 --- a/qa/rpc-tests/getblocktemplate_longpoll.py +++ b/qa/rpc-tests/getblocktemplate_longpoll.py @@ -61,7 +61,9 @@ class GetBlockTemplateLPTest(BitcoinTestFramework): thr = LongpollThread(self.nodes[0]) thr.start() # generate a random transaction and submit it - (txid, txhex, fee) = random_transaction(self.nodes, Decimal("1.1"), Decimal("0.0"), Decimal("0.001"), 20) + min_relay_fee = self.nodes[0].getnetworkinfo()["relayfee"] + # min_relay_fee is fee per 1000 bytes, which should be more than enough. + (txid, txhex, fee) = random_transaction(self.nodes, Decimal("1.1"), min_relay_fee, Decimal("0.001"), 20) # after one minute, every 10 seconds the mempool is probed, so in 80 seconds it should have returned thr.join(60 + 20) assert(not thr.is_alive()) |