mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-01-31 15:22:16 +00:00
Explain why a transaction output value is kept as a long rather than Coin.
This commit is contained in:
parent
e192f9030c
commit
e9c777c9a6
@ -42,9 +42,11 @@ public class TransactionOutput extends ChildMessage implements Serializable {
|
||||
private static final Logger log = LoggerFactory.getLogger(TransactionOutput.class);
|
||||
private static final long serialVersionUID = -590332479859256824L;
|
||||
|
||||
// A transaction output has some value and a script used for authenticating that the redeemer is allowed to spend
|
||||
// this output.
|
||||
// The output's value is kept as a native type in order to save class instances.
|
||||
private long value;
|
||||
|
||||
// A transaction output has a script used for authenticating that the redeemer is allowed to spend
|
||||
// this output.
|
||||
private byte[] scriptBytes;
|
||||
|
||||
// The script bytes are parsed and turned into a Script on demand.
|
||||
|
Loading…
Reference in New Issue
Block a user