stampchain-io / btc_stamps

Bitcoin Stamps Indexer
https://stampchain.io
GNU Affero General Public License v3.0
14 stars 5 forks source link

Critical Release for P2WSH prior to block 865000 #429

Closed reinamora137 closed 1 month ago

reinamora137 commented 1 month ago

…version] (#428)

Prioritize P2WSH over MSIG in mixed transactions. in a scenario where there are two types of data, the p2wsh will be prioritized to be processed regardless of the order. even if the p2wsh_data does not have a valid src-20 string. in such a case the entire transaction would be invalid.

vout 1 - Multlisig - with valid pubkey data vout 2 - multisig - with valid pubkey data vout 3 - p2wsh with valid p2wsh_data vout 4 - p2wsh with valid p2wsh data

vs

vout 1 - p2wsh with valid p2wsh_data vout 2 - p2wsh with valid p2wsh data vout 3 - Multlisig - with valid pubkey data vout 4 - multisig - with valid pubkey data