C# Class BitSharp.Core.Domain.ChainState

Inheritance: IChainState
Show file Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
ChainState ( BitSharp.Core.Domain.Chain chain, IStorageManager storageManager ) : BitSharp.Common
ContainsBlockSpentTxes ( int blockIndex ) : bool
ContainsBlockUnmintedTxes ( UInt256 blockHash ) : bool
ContainsHeader ( UInt256 blockHash ) : bool
ContainsUnspentTx ( UInt256 txHash ) : bool
ContainsUnspentTxOutput ( BitSharp.Core.Domain.TxOutputKey txOutputKey ) : bool
Dispose ( ) : void
ReadUnspentTransactions ( ) : IEnumerable
TryGetBlockSpentTxes ( int blockIndex, BlockSpentTxes &spentTxes ) : bool
TryGetBlockUnmintedTxes ( UInt256 blockHash, IImmutableList &unmintedTxes ) : bool
TryGetHeader ( UInt256 blockHash, ChainedHeader &header ) : bool
TryGetUnspentTx ( UInt256 txHash, UnspentTx &unspentTx ) : bool
TryGetUnspentTxOutput ( BitSharp.Core.Domain.TxOutputKey txOutputKey, TxOutput &txOutput ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

ChainState() public method

public ChainState ( BitSharp.Core.Domain.Chain chain, IStorageManager storageManager ) : BitSharp.Common
chain BitSharp.Core.Domain.Chain
storageManager IStorageManager
return BitSharp.Common

ContainsBlockSpentTxes() public method

public ContainsBlockSpentTxes ( int blockIndex ) : bool
blockIndex int
return bool

ContainsBlockUnmintedTxes() public method

public ContainsBlockUnmintedTxes ( UInt256 blockHash ) : bool
blockHash UInt256
return bool

ContainsHeader() public method

public ContainsHeader ( UInt256 blockHash ) : bool
blockHash UInt256
return bool

ContainsUnspentTx() public method

public ContainsUnspentTx ( UInt256 txHash ) : bool
txHash UInt256
return bool

ContainsUnspentTxOutput() public method

public ContainsUnspentTxOutput ( BitSharp.Core.Domain.TxOutputKey txOutputKey ) : bool
txOutputKey BitSharp.Core.Domain.TxOutputKey
return bool

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

ReadUnspentTransactions() public method

public ReadUnspentTransactions ( ) : IEnumerable
return IEnumerable

TryGetBlockSpentTxes() public method

public TryGetBlockSpentTxes ( int blockIndex, BlockSpentTxes &spentTxes ) : bool
blockIndex int
spentTxes BlockSpentTxes
return bool

TryGetBlockUnmintedTxes() public method

public TryGetBlockUnmintedTxes ( UInt256 blockHash, IImmutableList &unmintedTxes ) : bool
blockHash UInt256
unmintedTxes IImmutableList
return bool

TryGetHeader() public method

public TryGetHeader ( UInt256 blockHash, ChainedHeader &header ) : bool
blockHash UInt256
header ChainedHeader
return bool

TryGetUnspentTx() public method

public TryGetUnspentTx ( UInt256 txHash, UnspentTx &unspentTx ) : bool
txHash UInt256
unspentTx UnspentTx
return bool

TryGetUnspentTxOutput() public method

public TryGetUnspentTxOutput ( BitSharp.Core.Domain.TxOutputKey txOutputKey, TxOutput &txOutput ) : bool
txOutputKey BitSharp.Core.Domain.TxOutputKey
txOutput TxOutput
return bool