class Block
- Block
- Reference
- Object
Defined in:
sequin.crConstructors
Instance Method Summary
- #block_hash : String
- #block_hash=(block_hash : String)
- #calculate_hash
- #has_valid_transactions
- #mine_block(difficulty : Int32)
- #previous_block_hash : String
- #previous_block_hash=(previous_block_hash : String)
- #transactions : Array(Transaction)
- #transactions=(transactions : Array(Transaction))
Constructor Detail
def self.new(timestamp : String, transactions : Array(Transaction), previous_block_hash : String = "")
#