C# Class BitSharper.StoredBlock

Afficher le fichier Open project: TangibleCryptography/BitSharper Class Usage Examples

Méthodes publiques

Méthode Description
Build ( Block block ) : StoredBlock

Creates a new StoredBlock, calculating the additional fields by adding to the values in this block.

Equals ( object other ) : bool
GetHashCode ( ) : int
GetPrev ( IBlockStore store ) : StoredBlock

Given a block store, looks up the previous block in this chain. Convenience method for doing store.get(this.getHeader().getPrevBlockHash()).

MoreWorkThan ( StoredBlock other ) : bool

Returns true if this objects chainWork is higher than the others.

StoredBlock ( Block header, BigInteger chainWork, uint height ) : System
ToString ( ) : string

Method Details

Build() public méthode

Creates a new StoredBlock, calculating the additional fields by adding to the values in this block.
public Build ( Block block ) : StoredBlock
block Block
Résultat StoredBlock

Equals() public méthode

public Equals ( object other ) : bool
other object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetPrev() public méthode

Given a block store, looks up the previous block in this chain. Convenience method for doing store.get(this.getHeader().getPrevBlockHash()).
public GetPrev ( IBlockStore store ) : StoredBlock
store IBlockStore
Résultat StoredBlock

MoreWorkThan() public méthode

Returns true if this objects chainWork is higher than the others.
public MoreWorkThan ( StoredBlock other ) : bool
other StoredBlock
Résultat bool

StoredBlock() public méthode

public StoredBlock ( Block header, BigInteger chainWork, uint height ) : System
header Block
chainWork Org.BouncyCastle.Math.BigInteger
height uint
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string