forked from cerc-io/plugeth
bc14d12fd7
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. |
||
---|---|---|
.. | ||
testdata | ||
accountcmd_test.go | ||
accountcmd.go | ||
attach_test.go | ||
chaincmd.go | ||
config.go | ||
consolecmd_test.go | ||
consolecmd.go | ||
dbcmd.go | ||
exportcmd_test.go | ||
genesis_test.go | ||
les_test.go | ||
main.go | ||
misccmd.go | ||
plugin_hooks.go | ||
run_test.go | ||
snapshot.go | ||
verkle.go | ||
version_check_test.go | ||
version_check.go |