|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.bitcoin.core.StoredTransactionOutput
public class StoredTransactionOutput
A StoredTransactionOutput message contains the information necessary to check a spending transaction. It avoids having to store the entire parentTransaction just to get the hash and index. Its only really useful for MemoryFullPrunedBlockStore, and should probably be moved there
| Constructor Summary | |
|---|---|
StoredTransactionOutput(InputStream in)
|
|
StoredTransactionOutput(Sha256Hash hash,
long index,
BigInteger value,
int height,
boolean isCoinbase,
byte[] scriptBytes)
Creates a stored transaction output |
|
StoredTransactionOutput(Sha256Hash hash,
TransactionOutput out,
int height,
boolean isCoinbase)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Sha256Hash |
getHash()
The hash of the transaction which holds this output |
int |
getHeight()
Gets the height of the block that created this output (or -1 if this output was not created by a coinbase) |
long |
getIndex()
The index of this output in the transaction which holds it |
byte[] |
getScriptBytes()
The backing script bytes which can be turned into a Script object. |
BigInteger |
getValue()
The value which this Transaction output holds |
int |
hashCode()
|
void |
serializeToStream(OutputStream bos)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StoredTransactionOutput(Sha256Hash hash,
long index,
BigInteger value,
int height,
boolean isCoinbase,
byte[] scriptBytes)
hash - the hash of the containing transactionindex - the outpointvalue - the value availableheight - the height this output was created inscriptBytes -
public StoredTransactionOutput(Sha256Hash hash,
TransactionOutput out,
int height,
boolean isCoinbase)
public StoredTransactionOutput(InputStream in)
throws IOException
IOException| Method Detail |
|---|
public BigInteger getValue()
public byte[] getScriptBytes()
public Sha256Hash getHash()
public long getIndex()
public int getHeight()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
public void serializeToStream(OutputStream bos)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||