Versions in this module Expand all Collapse all v0 v0.2.0 Mar 13, 2019 v0.1.0 Jul 23, 2018 Changes in this version + var ProtocolID = protocol.ID("/indigo/node/coin/v1.0.0") + type Coin struct + func NewCoin(b *pb.Block, txp state.TxPool, e engine.Engine, s state.State, c chain.Chain, ...) *Coin + func (c *Coin) AddTransaction(tx *pb.Transaction) error + func (c *Coin) AddValidTransaction(tx *pb.Transaction) error + func (c *Coin) AppendBlock(ctx context.Context, block *pb.Block) error + func (c *Coin) GetAccount(peerID []byte) (*pb.Account, error) + func (c *Coin) GetAccountTransactions(peerID []byte) ([]*pb.Transaction, error) + func (c *Coin) GetBlockchain(blockNumber uint64, hash []byte, count uint32) ([]*pb.Block, error) + func (c *Coin) GetTransactionPool(count uint32) (uint64, []*pb.Transaction, error) + func (c *Coin) PublishTransaction(tx *pb.Transaction) error + func (c *Coin) Run(ctx context.Context) error + func (c *Coin) StartBlockGossip(ctx context.Context) error + func (c *Coin) StartMining(ctx context.Context) error + func (c *Coin) StartTxGossip(ctx context.Context) error + func (c *Coin) StreamHandler(ctx context.Context, stream inet.Stream) + type Protocol interface + AddTransaction func(tx *pb.Transaction) error + AppendBlock func(block *pb.Block) error + StartMining func(ctx context.Context) error