Skip to content

Commit 412d5fe

Browse files
committed
QA: feature_segwit: Check that template "rules" includes "!segwit" as appropriate
1 parent 2abe8cc commit 412d5fe

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

test/functional/feature_segwit.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,7 @@ def run_test(self):
107107
assert tmpl['sigoplimit'] == 20000
108108
assert tmpl['transactions'][0]['hash'] == txid
109109
assert tmpl['transactions'][0]['sigops'] == 2
110-
tmpl = self.nodes[0].getblocktemplate({'rules': ['segwit']})
111-
assert tmpl['sizelimit'] == 1000000
112-
assert 'weightlimit' not in tmpl
113-
assert tmpl['sigoplimit'] == 20000
114-
assert tmpl['transactions'][0]['hash'] == txid
115-
assert tmpl['transactions'][0]['sigops'] == 2
110+
assert '!segwit' not in tmpl['rules']
116111
self.nodes[0].generate(1) # block 162
117112

118113
balance_presetup = self.nodes[0].getbalance()
@@ -212,6 +207,7 @@ def run_test(self):
212207
assert tmpl['sigoplimit'] == 80000
213208
assert tmpl['transactions'][0]['txid'] == txid
214209
assert tmpl['transactions'][0]['sigops'] == 8
210+
assert '!segwit' in tmpl['rules']
215211

216212
self.nodes[0].generate(1) # Mine a block to clear the gbt cache
217213

0 commit comments

Comments
 (0)