Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SliceData ¶
type SliceData struct {
// contains filtered or unexported fields
}
SliceData has all the juicy bits you need about computing an ethereum slice.
type SliceMetadataToFile ¶
type SliceProcessor ¶
type SliceProcessor struct {
// contains filtered or unexported fields
}
SliceProcessor wraps the goque stack, enabling the adding of specific methods for dealing with the state trie.
func NewSliceProcessor ¶
func NewSliceProcessor(dbPath string, blockNumber uint64, filedir string) *SliceProcessor
NewSliceProcessor initializes the traversal stack, and finds the canonical block header, returning the TrieStack wrapper for further instructions
func (*SliceProcessor) GetHeatMap ¶
func (sp *SliceProcessor) GetHeatMap(mode string)
GetHeatMap just takes the stored data and agregates it into a json file, for visualization purposes
func (*SliceProcessor) SliceTheTrie ¶
func (sp *SliceProcessor) SliceTheTrie()
SliceTheTrie is the main loop of this program. One of its optimizations is that the program will try to see whether the slice has been computer before and stored in the DB so we spend O(1) on get it again.
type SliceProcessorConfig ¶
SliceProcessorConfig contains tweakable properties