class EdCrystalCoin::Blockchain

Included Modules

Defined in:

ed_crystal_coin/blockchain.cr

Constant Summary

BLOCK_SIZE = 25

Constructors

Instance Method Summary

Instance methods inherited from module EdCrystalCoin::Consensus

register_node(address : String) register_node, resolve resolve

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new #

[View source]

Instance Method Detail

def add_transaction(transaction) #

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

[View source]
def mine #

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

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

[View source]