C# Класс BitSharper.StoredBlock

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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