Documentation ¶
Index ¶
- Constants
- type Block
- type BlockNode
- type BlocksMMRTree
- type Tree
- func (t *Tree) AddBlock(hash chainhash.Hash, difficulty uint64, height int32)
- func (t *Tree) Block(height int32) *BlockNode
- func (t *Tree) Current() *BlockNode
- func (t *Tree) CurrentRoot() chainhash.Hash
- func (t *Tree) LookupNodeByRoot(hash chainhash.Hash) *BlockNode
- func (t *Tree) Parent(height int32) *BlockNode
- func (t *Tree) RmBlock(hash chainhash.Hash, height int32)
- func (t *Tree) RootForHeight(height int32) chainhash.Hash
- type Value
Constants ¶
View Source
const ValueSize = 40
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlocksMMRTree ¶
type BlocksMMRTree interface { Current() *BlockNode Parent(height int32) *BlockNode Block(height int32) *BlockNode CurrentRoot() chainhash.Hash RootForHeight(height int32) chainhash.Hash LookupNodeByRoot(chainhash.Hash) *BlockNode AddBlock(hash chainhash.Hash, difficulty uint64, height int32) RmBlock(hash chainhash.Hash, height int32) }
Click to show internal directories.
Click to hide internal directories.