Class TransactionOutputChanges


  • public class TransactionOutputChanges
    extends java.lang.Object

    TransactionOutputChanges represents a delta to the set of unspent outputs. It used as a return value for AbstractBlockChain.connectTransactions(int, Block). It contains the full list of transaction outputs created and spent in a block. It DOES contain outputs created that were spent later in the block, as those are needed for BIP30 (no duplicate txid creation if the previous one was not fully spent prior to this block) verification.

    • Field Detail

      • txOutsCreated

        public final java.util.List<UTXO> txOutsCreated
      • txOutsSpent

        public final java.util.List<UTXO> txOutsSpent
    • Constructor Detail

      • TransactionOutputChanges

        public TransactionOutputChanges​(java.util.List<UTXO> txOutsCreated,
                                        java.util.List<UTXO> txOutsSpent)
      • TransactionOutputChanges

        public TransactionOutputChanges​(java.io.InputStream in)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • serializeToStream

        public void serializeToStream​(java.io.OutputStream bos)
                               throws java.io.IOException
        Throws:
        java.io.IOException