From c337970ca87082844a269b6661839e6eb80090f1 Mon Sep 17 00:00:00 2001 From: Andreas Schildbach Date: Mon, 5 Mar 2018 21:52:21 +0100 Subject: [PATCH] Script.ScriptType: Rename PUB_KEY value to P2PK. --- core/src/main/java/org/bitcoinj/script/Script.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/bitcoinj/script/Script.java b/core/src/main/java/org/bitcoinj/script/Script.java index aba229e1..616c6b36 100644 --- a/core/src/main/java/org/bitcoinj/script/Script.java +++ b/core/src/main/java/org/bitcoinj/script/Script.java @@ -59,7 +59,7 @@ public class Script { // Do NOT change the ordering of the following definitions because their ordinals are stored in databases. NO_TYPE, P2PKH, // pay to pubkey hash (aka pay to address) - PUB_KEY, // pay to pubkey + P2PK, // pay to pubkey P2SH, // pay to script hash P2WPKH, // pay to witness pubkey hash P2WSH, // pay to witness script hash @@ -1608,7 +1608,7 @@ public class Script { if (ScriptPattern.isPayToPubKeyHash(this)) { type = ScriptType.P2PKH; } else if (ScriptPattern.isPayToPubKey(this)) { - type = ScriptType.PUB_KEY; + type = ScriptType.P2PK; } else if (ScriptPattern.isPayToScriptHash(this)) { type = ScriptType.P2SH; }