C# Class BitSharper.StoredBlock

Exibir arquivo Open project: TangibleCryptography/BitSharper Class Usage Examples

Public Methods

Method 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 method

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

Equals() public method

public Equals ( object other ) : bool
other object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

GetPrev() public method

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
return StoredBlock

MoreWorkThan() public method

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

StoredBlock() public method

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

ToString() public method

public ToString ( ) : string
return string