diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-01-17 05:27:56 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-05-20 10:38:21 +0800 |
commit | 0d87a5b4e2153a00e33474b56b48f0814c231697 (patch) | |
tree | e68e1603753038655de8cd31d06a57ef233cda3e /test | |
parent | bde6a5a676e4de7c5133f61784a3239bb4a28f2e (diff) | |
download | bitcoin-0d87a5b4e2153a00e33474b56b48f0814c231697.tar.xz |
QA: feature_segwit: Check that template "rules" includes "!segwit" as appropriate
Github-Pull: #17946
Rebased-From : 412d5fe8791c417bf46fc55a5bb8d59be98a33db
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/feature_segwit.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/functional/feature_segwit.py b/test/functional/feature_segwit.py index c69c7f90e8..6d72cfc81b 100755 --- a/test/functional/feature_segwit.py +++ b/test/functional/feature_segwit.py @@ -107,12 +107,7 @@ class SegWitTest(BitcoinTestFramework): assert tmpl['sigoplimit'] == 20000 assert tmpl['transactions'][0]['hash'] == txid assert tmpl['transactions'][0]['sigops'] == 2 - tmpl = self.nodes[0].getblocktemplate({'rules': ['segwit']}) - assert tmpl['sizelimit'] == 1000000 - assert 'weightlimit' not in tmpl - assert tmpl['sigoplimit'] == 20000 - assert tmpl['transactions'][0]['hash'] == txid - assert tmpl['transactions'][0]['sigops'] == 2 + assert '!segwit' not in tmpl['rules'] self.nodes[0].generate(1) # block 162 balance_presetup = self.nodes[0].getbalance() @@ -212,6 +207,7 @@ class SegWitTest(BitcoinTestFramework): assert tmpl['sigoplimit'] == 80000 assert tmpl['transactions'][0]['txid'] == txid assert tmpl['transactions'][0]['sigops'] == 8 + assert '!segwit' in tmpl['rules'] self.nodes[0].generate(1) # Mine a block to clear the gbt cache |