Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyHash = gethcommon.Hash{}
EmptyHash is useful for comparisons to check if hash has been set
Functions ¶
func LCA ¶
func LCA(newCanonical *types.Block, oldCanonical *types.Block, resolver storage.BlockResolver) (*common.ChainFork, error)
LCA - returns the latest common ancestor of the 2 blocks or an error if no common ancestor is found it also returns the blocks that became canonincal, and the once that are now the fork
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.