C# Class BitSharp.Esent.EsentBlockTxesStorage

Inheritance: IBlockTxesStorage
Afficher le fichier Open project: pmlyon/BitSharp

Private Properties

Свойство Type Description
AddBlockIndex int
AddTransaction void
CreateDatabase void
CreateOrOpenDatabase void
DeleteBlockIndex void
DeleteDatabase void
OpenDatabase void
ReadBlockTransactions IEnumerator
TryGetBlockIndex bool

Méthodes publiques

Méthode Description
ContainsBlock ( UInt256 blockHash ) : bool
Defragment ( ) : void
DeleteElements ( IEnumerable blockTxIndices ) : void
Dispose ( ) : void
EsentBlockTxesStorage ( string baseDirectory, int index = null ) : BitSharp.Common
Flush ( ) : void
PruneElements ( IEnumerable blockTxIndices ) : void
TryAddBlockTransactions ( UInt256 blockHash, IEnumerable blockTxes ) : bool
TryGetTransaction ( UInt256 blockHash, int txIndex, BlockTx &transaction ) : bool
TryReadBlockTransactions ( UInt256 blockHash, IEnumerator &blockTxes ) : bool
TryReadBlockTxNodes ( UInt256 blockHash, IEnumerator &blockTxNodes ) : bool
TryRemoveBlockTransactions ( UInt256 blockHash ) : bool

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode Description
AddBlockIndex ( BitSharp.Esent.EsentBlockTxesCursor cursor, UInt256 blockHash ) : int
AddTransaction ( int blockIndex, int txIndex, UInt256 txHash, byte txBytes, BitSharp.Esent.EsentBlockTxesCursor cursor ) : void
CreateDatabase ( ) : void
CreateOrOpenDatabase ( ) : void
DeleteBlockIndex ( BitSharp.Esent.EsentBlockTxesCursor cursor, UInt256 blockHash ) : void
DeleteDatabase ( ) : void
OpenDatabase ( ) : void
ReadBlockTransactions ( UInt256 blockHash, bool requireTx ) : IEnumerator
TryGetBlockIndex ( BitSharp.Esent.EsentBlockTxesCursor cursor, UInt256 blockHash, int &blockIndex ) : bool

Method Details

ContainsBlock() public méthode

public ContainsBlock ( UInt256 blockHash ) : bool
blockHash UInt256
Résultat bool

Defragment() public méthode

public Defragment ( ) : void
Résultat void

DeleteElements() public méthode

public DeleteElements ( IEnumerable blockTxIndices ) : void
blockTxIndices IEnumerable
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

EsentBlockTxesStorage() public méthode

public EsentBlockTxesStorage ( string baseDirectory, int index = null ) : BitSharp.Common
baseDirectory string
index int
Résultat BitSharp.Common

Flush() public méthode

public Flush ( ) : void
Résultat void

PruneElements() public méthode

public PruneElements ( IEnumerable blockTxIndices ) : void
blockTxIndices IEnumerable
Résultat void

TryAddBlockTransactions() public méthode

public TryAddBlockTransactions ( UInt256 blockHash, IEnumerable blockTxes ) : bool
blockHash UInt256
blockTxes IEnumerable
Résultat bool

TryGetTransaction() public méthode

public TryGetTransaction ( UInt256 blockHash, int txIndex, BlockTx &transaction ) : bool
blockHash UInt256
txIndex int
transaction BitSharp.Core.Domain.BlockTx
Résultat bool

TryReadBlockTransactions() public méthode

public TryReadBlockTransactions ( UInt256 blockHash, IEnumerator &blockTxes ) : bool
blockHash UInt256
blockTxes IEnumerator
Résultat bool

TryReadBlockTxNodes() public méthode

public TryReadBlockTxNodes ( UInt256 blockHash, IEnumerator &blockTxNodes ) : bool
blockHash UInt256
blockTxNodes IEnumerator
Résultat bool

TryRemoveBlockTransactions() public méthode

public TryRemoveBlockTransactions ( UInt256 blockHash ) : bool
blockHash UInt256
Résultat bool