C# Class BitSharper.Store.MemoryBlockStore

Keeps StoredBlocks in memory. Used primarily for unit testing.
Inheritance: IBlockStore
Afficher le fichier Open project: TangibleCryptography/BitSharper Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void
Get ( Sha256Hash hash ) : StoredBlock
GetChainHead ( ) : StoredBlock
MemoryBlockStore ( NetworkParameters @params ) : System.Collections.Generic
Put ( StoredBlock block ) : void
SetChainHead ( StoredBlock chainHead ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Get() public méthode

public Get ( Sha256Hash hash ) : StoredBlock
hash Sha256Hash
Résultat StoredBlock

GetChainHead() public méthode

public GetChainHead ( ) : StoredBlock
Résultat StoredBlock

MemoryBlockStore() public méthode

public MemoryBlockStore ( NetworkParameters @params ) : System.Collections.Generic
@params NetworkParameters
Résultat System.Collections.Generic

Put() public méthode

public Put ( StoredBlock block ) : void
block StoredBlock
Résultat void

SetChainHead() public méthode

public SetChainHead ( StoredBlock chainHead ) : void
chainHead StoredBlock
Résultat void