Skip to content

Commit 857d1e1

Browse files
author
MarcoFalke
committed
Merge #9977: QA: getblocktemplate_longpoll.py should always use >0 fee tx
655df06 QA: getblocktemplate_longpoll.py should always use >0 fee tx (Suhas Daftuar) Tree-SHA512: 016647ba1408f8aaa3fc954835542354d54bf2391c4252c1c505101edbbe1cf8dd6a07060930109d0341f86360b9391dfef439999a93a5bae68fc901dace0b71
2 parents cce056d + 655df06 commit 857d1e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qa/rpc-tests/getblocktemplate_longpoll.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def run_test(self):
6161
thr = LongpollThread(self.nodes[0])
6262
thr.start()
6363
# generate a random transaction and submit it
64-
(txid, txhex, fee) = random_transaction(self.nodes, Decimal("1.1"), Decimal("0.0"), Decimal("0.001"), 20)
64+
min_relay_fee = self.nodes[0].getnetworkinfo()["relayfee"]
65+
# min_relay_fee is fee per 1000 bytes, which should be more than enough.
66+
(txid, txhex, fee) = random_transaction(self.nodes, Decimal("1.1"), min_relay_fee, Decimal("0.001"), 20)
6567
# after one minute, every 10 seconds the mempool is probed, so in 80 seconds it should have returned
6668
thr.join(60 + 20)
6769
assert(not thr.is_alive())

0 commit comments

Comments
 (0)