C# Class HashrateCalculator.Bitcoin

Datei anzeigen Open project: GarageGames/Bitcoin Class Usage Examples

Public Properties

Property Type Description
mCurrentHeight uint
mHistoryTime ulong
mIgnoreSigLen bool
mScryptBlockHash bool
mWantsTransactionData bool

Public Methods

Method Description
AddNode ( string nodeAddr, ushort nodePort = 8333, uint version = 70001, uint networkID = 0xD9B4BEF9 ) : void
Bitcoin ( ) : System
Destroy ( ) : void
FindBlock ( string hash ) : Block
GetBlocks ( ) : HashrateCalculator.Block[]
HandleBlockPacket ( NodeConnection node, byte payload ) : void
HandleHeadersPacket ( NodeConnection node, byte payload ) : void
HandleInvPacket ( NodeConnection node, byte payload ) : void
IsConnected ( ) : bool
Load ( BinaryReader br ) : void
PullHeaders ( ) : void
RemoveOldBlocks ( ) : void
Save ( BinaryWriter bw ) : void
VersionRecieved ( NodeConnection node ) : void

Method Details

AddNode() public method

public AddNode ( string nodeAddr, ushort nodePort = 8333, uint version = 70001, uint networkID = 0xD9B4BEF9 ) : void
nodeAddr string
nodePort ushort
version uint
networkID uint
return void

Bitcoin() public method

public Bitcoin ( ) : System
return System

Destroy() public method

public Destroy ( ) : void
return void

FindBlock() public method

public FindBlock ( string hash ) : Block
hash string
return Block

GetBlocks() public method

public GetBlocks ( ) : HashrateCalculator.Block[]
return HashrateCalculator.Block[]

HandleBlockPacket() public method

public HandleBlockPacket ( NodeConnection node, byte payload ) : void
node NodeConnection
payload byte
return void

HandleHeadersPacket() public method

public HandleHeadersPacket ( NodeConnection node, byte payload ) : void
node NodeConnection
payload byte
return void

HandleInvPacket() public method

public HandleInvPacket ( NodeConnection node, byte payload ) : void
node NodeConnection
payload byte
return void

IsConnected() public method

public IsConnected ( ) : bool
return bool

Load() public method

public Load ( BinaryReader br ) : void
br System.IO.BinaryReader
return void

PullHeaders() public method

public PullHeaders ( ) : void
return void

RemoveOldBlocks() public method

public RemoveOldBlocks ( ) : void
return void

Save() public method

public Save ( BinaryWriter bw ) : void
bw System.IO.BinaryWriter
return void

VersionRecieved() public method

public VersionRecieved ( NodeConnection node ) : void
node NodeConnection
return void

Property Details

mCurrentHeight public_oe property

public uint mCurrentHeight
return uint

mHistoryTime public_oe property

public ulong mHistoryTime
return ulong

mIgnoreSigLen public_oe property

public bool mIgnoreSigLen
return bool

mScryptBlockHash public_oe property

public bool mScryptBlockHash
return bool

mWantsTransactionData public_oe property

public bool mWantsTransactionData
return bool