Forge v0.3.0 Forge.Mpt View Source
Encapsulate the Merkle Patricia Tree implementation to make it more robust for our use cases
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
get_app_hash(trie)
View Source
get_app_hash(MerklePatriciaTree.Trie.t()) :: non_neg_integer()
Link to this function
get_app_hash(trie, block)
View Source
get_app_hash(MerklePatriciaTree.Trie.t(), non_neg_integer()) :: non_neg_integer()
Link to this function
get_last_block(trie)
View Source
get_last_block(MerklePatriciaTree.Trie.t()) :: non_neg_integer()
Link to this function
put(trie, k, v)
View Source
put(MerklePatriciaTree.Trie.t(), any(), any()) :: MerklePatriciaTree.Trie.t()
Link to this function
update_block(trie, height)
View Source
update_block(MerklePatriciaTree.Trie.t(), non_neg_integer()) :: :ok