Post
Topic
Board Development & Technical Discussion
Merits 1 from 1 user
Re: Can I/Miners spend an output with anyone-can-spend public script?
by
ETFbitcoin
on 12/01/2020, 20:11:52 UTC
⭐ Merited by darosior (1)
Does this mean that by default anyone-can-spend scripts are disabled and cannot be used?

AFAIK it's the opposite.

Since segwit is a soft fork, what would happen if a miner treats some of the segwit outputs as anyone-can-spend scripts (as pre-seg scripts) and spend them in a new block?

Most Bitcoin full nodes (whether it's run by miner, exchange or regular user) would reject such block because there's no valid redeem script or the UTXO is invalid.