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):
107
107
assert tmpl ['sigoplimit' ] == 20000
108
108
assert tmpl ['transactions' ][0 ]['hash' ] == txid
109
109
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' ]
116
111
self .nodes [0 ].generate (1 ) # block 162
117
112
118
113
balance_presetup = self .nodes [0 ].getbalance ()
@@ -212,6 +207,7 @@ def run_test(self):
212
207
assert tmpl ['sigoplimit' ] == 80000
213
208
assert tmpl ['transactions' ][0 ]['txid' ] == txid
214
209
assert tmpl ['transactions' ][0 ]['sigops' ] == 8
210
+ assert '!segwit' in tmpl ['rules' ]
215
211
216
212
self .nodes [0 ].generate (1 ) # Mine a block to clear the gbt cache
217
213
You can’t perform that action at this time.
0 commit comments