public class UTXOPool extends Object
| Constructor and Description |
|---|
UTXOPool()
Creates a new empty UTXOPool
|
UTXOPool(UTXOPool uPool)
Creates a new UTXOPool that is a copy of
uPool |
| Modifier and Type | Method and Description |
|---|---|
void |
addUTXO(UTXO utxo,
Transaction.Output txOut)
Adds a mapping from UTXO
utxo to transaction output @code{txOut} to the pool |
boolean |
contains(UTXO utxo) |
ArrayList<UTXO> |
getAllUTXO()
Returns an
ArrayList of all UTXOs in the pool |
Transaction.Output |
getTxOutput(UTXO ut) |
void |
removeUTXO(UTXO utxo)
Removes the UTXO
utxo from the pool |
public UTXOPool()
public UTXOPool(UTXOPool uPool)
uPoolpublic void addUTXO(UTXO utxo, Transaction.Output txOut)
utxo to transaction output @code{txOut} to the poolpublic void removeUTXO(UTXO utxo)
utxo from the poolpublic Transaction.Output getTxOutput(UTXO ut)
utxo, or null if utxo is
not in the pool.public boolean contains(UTXO utxo)
utxo is in the pool and false otherwise