From 28d0743dd691208e14af0c6a2b44e5c1eb42e696 Mon Sep 17 00:00:00 2001 From: Oscar Guindzberg Date: Mon, 17 Nov 2014 16:57:57 -0300 Subject: [PATCH] Update Script.getPubKeyHash() javadoc --- core/src/main/java/org/bitcoinj/script/Script.java | 10 ++++++++-- 1 file changed, 8 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 9136a712..5d05dd44 100644 --- a/core/src/main/java/org/bitcoinj/script/Script.java +++ b/core/src/main/java/org/bitcoinj/script/Script.java @@ -244,9 +244,15 @@ public class Script { /** * If a program matches the standard template DUP HASH160 EQUALVERIFY CHECKSIG - * then this function retrieves the third element, otherwise it throws a ScriptException.

+ * then this function retrieves the third element. + * In this case, this is useful for fetching the destination address of a transaction. + * + * If a program matches the standard template HASH160