Skip to content

Commit

Permalink
Added utility function to core/state/xplugeth_hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-morlier committed Oct 19, 2024
1 parent d8fc46b commit f563de2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/state/xplugeth_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ type pluginSnapshot struct {
root common.Hash
}

// This function is being brought over from foundation to enable our producer plugin to work agnostically across networks.
func (s *StateDB) GetTrie() Trie {
return s.trie
}

func (s *pluginSnapshot) Root() common.Hash {
return s.root
}
Expand Down

0 comments on commit f563de2

Please sign in to comment.