class CRYCoin::Blockchain

Included Modules

Defined in:

cry_coin/blockchain.cr

Constant Summary

BLOCK_SIZE = 25

Constructors

Instance Method Summary

Instance methods inherited from module CRYCoin::Consensus

register_node(address : String) register_node, resolve resolve

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_transaction(transaction) #

[View source]
def chain : Array(CRYCoin::Block) #

[View source]
def mine #

[View source]
def nodes : Set(String) #

[View source]
def uncommitted_transactions : Array(CRYCoin::Block::Transaction) #

[View source]