From f563de2946e4033b2619cebc08e615047c014357 Mon Sep 17 00:00:00 2001 From: Philip Morlier Date: Sat, 19 Oct 2024 13:46:57 -0700 Subject: [PATCH] Added utility function to core/state/xplugeth_hooks --- core/state/xplugeth_hooks.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/state/xplugeth_hooks.go b/core/state/xplugeth_hooks.go index 5b58a140d..1044d233a 100644 --- a/core/state/xplugeth_hooks.go +++ b/core/state/xplugeth_hooks.go @@ -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 }