struct Ledger::Block::Pow

Defined in:

cocol/node/ledger/block.cr

Constant Summary

MIN_NBITS = "20000100"

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from struct Ledger::Block::Abstract

calc_hash calc_hash, coinbase : Coinbase coinbase, hash : String hash, hash_seed : BlockHashSeed hash_seed, height : UInt64 height, previous_hash : String previous_hash, timestamp : Int64 timestamp, transactions : Array(Transaction) transactions

Constructor methods inherited from struct Ledger::Block::Abstract

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(hash, timestamp, height, nonce, nbits, previous_hash, transactions, coinbase) #

[View source]
def self.new(height, transactions, previous_hash, nbits, coinbase) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Class Method Detail

def self.min_target #

[View source]

Instance Method Detail

def calc_hash #

[View source]
def hash_seed : BlockHashSeed #

[View source]
def nbits : String #

[View source]
def nonce : UInt64 #

[View source]