C# 클래스 BitSharper.StoredBlock

파일 보기 프로젝트 열기: TangibleCryptography/BitSharper 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Build() 공개 메소드

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

Equals() 공개 메소드

public Equals ( object other ) : bool
other object
리턴 bool

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GetPrev() 공개 메소드

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
리턴 StoredBlock

MoreWorkThan() 공개 메소드

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

StoredBlock() 공개 메소드

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

ToString() 공개 메소드

public ToString ( ) : string
리턴 string