C# Class BitSharp.Core.Domain.ChainedHeader

Show file Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
ChainedHeader ( BlockHeader blockHeader, int height, System.Numerics.BigInteger totalWork, DateTimeOffset dateSeen ) : BitSharp.Common
CreateForGenesisBlock ( BlockHeader genesisBlockHeader ) : ChainedHeader
CreateFromPrev ( ChainedHeader prevChainedHeader, BlockHeader blockHeader, DateTimeOffset dateSeen ) : ChainedHeader
Equals ( object obj ) : bool
GetHashCode ( ) : int
operator ( ) : bool

Method Details

ChainedHeader() public method

public ChainedHeader ( BlockHeader blockHeader, int height, System.Numerics.BigInteger totalWork, DateTimeOffset dateSeen ) : BitSharp.Common
blockHeader BlockHeader
height int
totalWork System.Numerics.BigInteger
dateSeen DateTimeOffset
return BitSharp.Common

CreateForGenesisBlock() public static method

public static CreateForGenesisBlock ( BlockHeader genesisBlockHeader ) : ChainedHeader
genesisBlockHeader BlockHeader
return ChainedHeader

CreateFromPrev() public static method

public static CreateFromPrev ( ChainedHeader prevChainedHeader, BlockHeader blockHeader, DateTimeOffset dateSeen ) : ChainedHeader
prevChainedHeader ChainedHeader
blockHeader BlockHeader
dateSeen DateTimeOffset
return ChainedHeader

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

operator() public static method

public static operator ( ) : bool
return bool