mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 07:12:17 +00:00
Update Script javadoc.
This commit is contained in:
parent
273548c863
commit
2f0d4cdbd8
@ -49,16 +49,15 @@ class ScriptChunk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instructions for redeeming a payment.
|
* <p>Instructions for redeeming a payment.</p>
|
||||||
*
|
*
|
||||||
* <p>Bitcoin transactions don't specify what they do directly. Instead <a href="https://en.bitcoin.it/wiki/Script">a
|
* <p>Bitcoin transactions don't specify what they do directly. Instead <a href="https://en.bitcoin.it/wiki/Script">a
|
||||||
* small binary stack language</a> is used to define programs that when evaluated return whether the transaction
|
* small binary stack language</a> is used to define programs that when evaluated return whether the transaction
|
||||||
* "accepts" or rejects the other transactions connected to it.</p>
|
* "accepts" or rejects the other transactions connected to it.</p>
|
||||||
*
|
*
|
||||||
* <p>bitcoinj does not evaluate/run scripts. The reason is that doing so requires the connected transactions, ie, all
|
* <p>In SPV mode, scripts are not run, because that would require all transactions to be available and lightweight
|
||||||
* transactions, and as a lightweight/SPV client we don't store them all. Instead tx validity is decided by miners
|
* clients don't have that data. In full mode, this class is used to run the interpreted language. It also has
|
||||||
* and we rely purely on the majority consensus to determine if the scripts are valid. This class therefore just lets
|
* static methods for building scripts.</p>
|
||||||
* you manipulate and parse them.</p>
|
|
||||||
*/
|
*/
|
||||||
public class Script {
|
public class Script {
|
||||||
// Some constants used for decoding the scripts, copied from the reference client
|
// Some constants used for decoding the scripts, copied from the reference client
|
||||||
|
Loading…
Reference in New Issue
Block a user