aboutsummaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2017-03-14 10:13:03 +0100
committerMarcoFalke <[email protected]>2017-03-14 10:13:23 +0100
commit857d1e171e051b254a617f27b39f6a551054cee2 (patch)
tree68ff616bc782c018063b4c548f0b015d346b653d /qa
parentMerge #9984: devtools: Make github-merge compute SHA512 from git, instead of ... (diff)
parentQA: getblocktemplate_longpoll.py should always use >0 fee tx (diff)
downloaddiscoin-857d1e171e051b254a617f27b39f6a551054cee2.tar.xz
discoin-857d1e171e051b254a617f27b39f6a551054cee2.zip
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
Diffstat (limited to 'qa')
-rwxr-xr-xqa/rpc-tests/getblocktemplate_longpoll.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/qa/rpc-tests/getblocktemplate_longpoll.py b/qa/rpc-tests/getblocktemplate_longpoll.py
index dc17bbd7b..bbe1dda5f 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())