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