Documentation ¶
Index ¶
- type AkhNode
- func (node *AkhNode) Announce(block *Block) (err error)
- func (node *AkhNode) GetPrivate() crypto.PrivKey
- func (node *AkhNode) Pay(peerIdStr string, amount uint64) error
- func (node *AkhNode) Produce() (block *Block, err error)
- func (node *AkhNode) Receive(bd BlockData, peerId peer.ID)
- func (node *AkhNode) ReceiveTransaction(t Transaction)
- func (node *AkhNode) ReceiveVote(v Vote)
- func (node *AkhNode) Vote(peerIdStr string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AkhNode ¶
type AkhNode struct { Host p2p.AkhHost Genesis *Block Head *Block sync.Mutex // contains filtered or unexported fields }
func NewAkhNode ¶
func (*AkhNode) GetPrivate ¶
func (node *AkhNode) GetPrivate() crypto.PrivKey
func (*AkhNode) Receive ¶
func (node *AkhNode) Receive(bd BlockData, peerId peer.ID)
TODO think of reaction to invalid block TODO retransmit valid block
func (*AkhNode) ReceiveTransaction ¶
func (node *AkhNode) ReceiveTransaction(t Transaction)
func (*AkhNode) ReceiveVote ¶
func (node *AkhNode) ReceiveVote(v Vote)
Click to show internal directories.
Click to hide internal directories.