diff --git a/core/src/main/java/com/google/bitcoin/core/Script.java b/core/src/main/java/com/google/bitcoin/core/Script.java index c8c07a48..520e51ab 100644 --- a/core/src/main/java/com/google/bitcoin/core/Script.java +++ b/core/src/main/java/com/google/bitcoin/core/Script.java @@ -49,16 +49,15 @@ class ScriptChunk { } /** - * Instructions for redeeming a payment. + *
Instructions for redeeming a payment.
* *Bitcoin transactions don't specify what they do directly. Instead a * small binary stack language is used to define programs that when evaluated return whether the transaction * "accepts" or rejects the other transactions connected to it.
* - *bitcoinj does not evaluate/run scripts. The reason is that doing so requires the connected transactions, ie, all - * transactions, and as a lightweight/SPV client we don't store them all. Instead tx validity is decided by miners - * and we rely purely on the majority consensus to determine if the scripts are valid. This class therefore just lets - * you manipulate and parse them.
+ *In SPV mode, scripts are not run, because that would require all transactions to be available and lightweight + * clients don't have that data. In full mode, this class is used to run the interpreted language. It also has + * static methods for building scripts.
*/ public class Script { // Some constants used for decoding the scripts, copied from the reference client