Update WIF_SCRIPT_TYPES to make p2wpkh default
The change swaps the values of p2wpkh and p2pkh in WIF_SCRIPT_TYPES to reflect that p2wpkh (bech32) is now the default script type for Palladium. This maintains backward compatibility while aligning with current protocol standards.
This commit is contained in:
@@ -602,9 +602,10 @@ def DecodeBase58Check(psz: Union[bytes, str]) -> bytes:
|
||||
# backwards compat
|
||||
# extended WIF for segwit (used in 3.0.x; but still used internally)
|
||||
# the keys in this dict should be a superset of what Imported Wallets can import
|
||||
# Note: p2wpkh (bech32) is default (0) for Palladium
|
||||
WIF_SCRIPT_TYPES = {
|
||||
'p2pkh': 0,
|
||||
'p2wpkh': 1,
|
||||
'p2wpkh': 0,
|
||||
'p2pkh': 1,
|
||||
'p2wpkh-p2sh': 2,
|
||||
'p2sh': 5,
|
||||
'p2wsh': 6,
|
||||
|
||||
Reference in New Issue
Block a user