mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-08-02 00:31:24 +00:00
Script.ScriptType: Rename PUB_KEY value to P2PK.
This commit is contained in:
@@ -59,7 +59,7 @@ public class Script {
|
|||||||
// Do NOT change the ordering of the following definitions because their ordinals are stored in databases.
|
// Do NOT change the ordering of the following definitions because their ordinals are stored in databases.
|
||||||
NO_TYPE,
|
NO_TYPE,
|
||||||
P2PKH, // pay to pubkey hash (aka pay to address)
|
P2PKH, // pay to pubkey hash (aka pay to address)
|
||||||
PUB_KEY, // pay to pubkey
|
P2PK, // pay to pubkey
|
||||||
P2SH, // pay to script hash
|
P2SH, // pay to script hash
|
||||||
P2WPKH, // pay to witness pubkey hash
|
P2WPKH, // pay to witness pubkey hash
|
||||||
P2WSH, // pay to witness script hash
|
P2WSH, // pay to witness script hash
|
||||||
@@ -1608,7 +1608,7 @@ public class Script {
|
|||||||
if (ScriptPattern.isPayToPubKeyHash(this)) {
|
if (ScriptPattern.isPayToPubKeyHash(this)) {
|
||||||
type = ScriptType.P2PKH;
|
type = ScriptType.P2PKH;
|
||||||
} else if (ScriptPattern.isPayToPubKey(this)) {
|
} else if (ScriptPattern.isPayToPubKey(this)) {
|
||||||
type = ScriptType.PUB_KEY;
|
type = ScriptType.P2PK;
|
||||||
} else if (ScriptPattern.isPayToScriptHash(this)) {
|
} else if (ScriptPattern.isPayToScriptHash(this)) {
|
||||||
type = ScriptType.P2SH;
|
type = ScriptType.P2SH;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user