struct Ledger::Block::Pow
- Ledger::Block::Pow
- Ledger::Block::Abstract
- Struct
- Value
- Object
Defined in:
cocol/node/ledger/block.crConstant Summary
-
MIN_NBITS =
"20000100"
Constructors
- .new(hash, timestamp, height, nonce, nbits, previous_hash, transactions, coinbase)
- .new(height, transactions, previous_hash, nbits, coinbase)
- .new(pull : JSON::PullParser)
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)
#