File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments