Documentation ¶
Index ¶
- type ClaimTrie
- func (ct *ClaimTrie) AddClaim(name []byte, op wire.OutPoint, id change.ClaimID, amt int64) error
- func (ct *ClaimTrie) AddSupport(name []byte, op wire.OutPoint, amt int64, id change.ClaimID) error
- func (ct *ClaimTrie) AppendBlock(temporary bool) error
- func (ct *ClaimTrie) Close()
- func (ct *ClaimTrie) FlushToDisk()
- func (ct *ClaimTrie) Height() int32
- func (ct *ClaimTrie) MerkleHash() *chainhash.Hash
- func (ct *ClaimTrie) NamesChangedInBlock(height int32) ([]string, error)
- func (ct *ClaimTrie) NodeAt(height int32, name []byte) (*node.Node, error)
- func (ct *ClaimTrie) ResetHeight(height int32) error
- func (ct *ClaimTrie) SpendClaim(name []byte, op wire.OutPoint, id change.ClaimID) error
- func (ct *ClaimTrie) SpendSupport(name []byte, op wire.OutPoint, id change.ClaimID) error
- func (ct *ClaimTrie) UpdateClaim(name []byte, op wire.OutPoint, amt int64, id change.ClaimID) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaimTrie ¶
type ClaimTrie struct {
// contains filtered or unexported fields
}
ClaimTrie implements a Merkle Trie supporting linear history of commits.
func (*ClaimTrie) AddSupport ¶
AddSupport adds a Support to the ClaimTrie.
func (*ClaimTrie) AppendBlock ¶
AppendBlock increases block by one.
func (*ClaimTrie) Close ¶
func (ct *ClaimTrie) Close()
Close persists states. Any calls to the ClaimTrie after Close() being called results undefined behaviour.
func (*ClaimTrie) FlushToDisk ¶
func (ct *ClaimTrie) FlushToDisk()
func (*ClaimTrie) MerkleHash ¶
MerkleHash returns the Merkle Hash of the claimTrie.
func (*ClaimTrie) NamesChangedInBlock ¶
func (*ClaimTrie) ResetHeight ¶
ResetHeight resets the ClaimTrie to a previous known height..
func (*ClaimTrie) SpendClaim ¶
SpendClaim spends a Claim in the ClaimTrie.
func (*ClaimTrie) SpendSupport ¶
SpendSupport spends a Support in the ClaimTrie.
Click to show internal directories.
Click to hide internal directories.