You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
40e871d [miner] always assume we can create witness blocks (glozow)
Pull request description:
Given the low possibility of a reorg reverting the segwit soft fork, there is no longer a need to check whether segwit is active to see if it's okay to add to the block template (see also #23512, #21009, etc). `TestBlockValidity()` is also run on the block template at the end of `CreateNewBlock()`, so any invalid block would be caught there.
ACKs for top commit:
gruve-p:
ACK bitcoin/bitcoin@40e871d
jnewbery:
utACK 40e871d, although I disagree about changing the test for segwit transaction in mempool before activagtion, instead of just removing it: bitcoin/bitcoin#24421 (comment).
achow101:
ACK 40e871d
theStack:
Code-review ACK 40e871d
Tree-SHA512: bf4860bf2bed8339622d05228d11d60286edb0c32a9a3c434b8d154913c07ea56e50649f4af7009c2a1c6a58a81d2299ab43b41a6f16dee7d08cc89cc1603019
self.log.info("Verify unsigned p2sh witness txs without a redeem script are invalid")
209
207
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag-failed (Operation not valid with the current stack size)", p2sh_ids[NODE_2][P2WPKH][1], sign=False)
210
208
self.fail_accept(self.nodes[2], "mandatory-script-verify-flag-failed (Operation not valid with the current stack size)", p2sh_ids[NODE_2][P2WSH][1], sign=False)
211
209
212
-
self.generate(self.nodes[2], 4) # blocks 428-431
210
+
self.generate(self.nodes[0], 4) # blocks 428-431
213
211
214
-
self.log.info("Verify previous witness txs skipped for mining can now be mined")
212
+
self.log.info("Verify previous witness txs can now be mined")
0 commit comments