Replace OP_EVAL (BIP 12) with Pay-to-script-hash (BIP 16).
This commit is contained in:
@@ -255,7 +255,7 @@ public:
|
||||
// base58-encoded bitcoin addresses
|
||||
// Public-key-hash-addresses have version 0 (or 192 testnet)
|
||||
// The data vector contains RIPEMD160(SHA256(pubkey)), where pubkey is the serialized public key
|
||||
// Script-hash-addresses (OP_EVAL) have version 5 (or 196 testnet)
|
||||
// Script-hash-addresses have version 5 (or 196 testnet)
|
||||
// The data vector contains RIPEMD160(SHA256(cscript)), where cscript is the serialized redemption script
|
||||
class CBitcoinAddress : public CBase58Data
|
||||
{
|
||||
@@ -296,7 +296,7 @@ public:
|
||||
fExpectTestNet = false;
|
||||
break;
|
||||
case SCRIPT_ADDRESS:
|
||||
nExpectedSize = 20; // OP_EVAL, hash of CScript
|
||||
nExpectedSize = 20; // Hash of CScript
|
||||
fExpectTestNet = false;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user