Commit Graph

8 Commits

Author SHA1 Message Date
philip-morlier
2e29160068 Merge remote-tracking branch 'origin/bugfix/trie-plugin-cleanup-dev' into merge/geth-v1.13.11 2024-01-24 14:39:09 -08:00
philip-morlier
8722e19c77 Type casting and function signature alterations needed to comply with plugeth-utils 2024-01-24 11:13:39 -08:00
Austin Roberts
bc14d12fd7 Use the statedb database to get Tries
The old approach of getting state tries involved instantiating a
new state database and using it to instantiate a trie. What we didn't
realize was that state database needed to have Close() called on it,
which we didn't offer a way for plugins to do, resulting in memory
leaking.

This approach reuses the primary trie database associated with the
blockchain object, albeit a bit indirectly. This will allow access
to recent tries that are stored in memory, where previously only
tries that had been committed to disk were accessible.
2023-12-06 16:10:17 -06:00
philip-morlier
51c041850b Manual touches to plugeth code to accommodate geth v1.13.0 2023-09-13 12:57:48 -07:00
philip-morlier
829b8c4821 Expose state trie to plugins
Also merged changes in support geth v1.11.6. Updated to plugeth-utils v1.1.0.
2023-05-05 14:14:15 -07:00
philip-morlier
5470afdeb8 State Trie exposed to plugins
The StateTrie interface is exposed via triewrapper.go and then implemented via two methods appended to the backend object.
2023-04-07 10:46:16 -07:00
philip-morlier
f92264d342 further work on state trie wrapper 2023-04-06 22:49:14 -07:00
philip-morlier
aee14ebee9 Initial commit of work to expose state trie 2023-04-06 18:09:53 -07:00