plugeth/cmd/geth
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
..
testdata deps: update minisign (#28066) 2023-09-07 04:18:46 -04:00
accountcmd_test.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00
accountcmd.go cmd/geth: make account commands not require datadir lock (#27084) 2023-04-27 06:57:29 -04:00
attach_test.go cmd/geth: atomic types used (#27756) 2023-07-24 13:22:54 +03:00
chaincmd.go cmd, core: resolve scheme from a read-write database (#28313) 2023-10-11 11:27:44 +03:00
config.go cmd, eth: switch the dev synctarget to hash from block (#28209) 2023-09-29 22:11:15 +03:00
consolecmd_test.go rpc, internal/cmdtest: increase timeout in tests (#27083) 2023-05-22 08:13:03 -04:00
consolecmd.go node: remove unused error return from Attach (#27450) 2023-06-14 08:24:47 -04:00
dbcmd.go cmd/geth: ensure db is closed before exit (#28150) 2023-09-25 18:28:20 +02:00
exportcmd_test.go cmd/utils: enable snapshot generation in import-mode (#25990) 2022-10-19 08:20:39 +02:00
genesis_test.go cmd/geth: fix failing test (#28322) 2023-10-12 09:54:00 +02:00
les_test.go cmd/geth: atomic types used (#27756) 2023-07-24 13:22:54 +03:00
main.go Use the statedb database to get Tries 2023-12-06 16:10:17 -06:00
misccmd.go all: remove ethash pow, only retain shims needed for consensus and tests (#27178) 2023-05-03 12:58:39 +03:00
plugin_hooks.go Use the statedb database to get Tries 2023-12-06 16:10:17 -06:00
run_test.go all: use T.TempDir to create temporary test directories (#24633) 2022-04-08 15:44:55 +02:00
snapshot.go cmd/geth: ensure db is closed before exit (#28150) 2023-09-25 18:28:20 +02:00
verkle.go cmd/geth: ensure db is closed before exit (#28150) 2023-09-25 18:28:20 +02:00
version_check_test.go deps: update minisign (#28066) 2023-09-07 04:18:46 -04:00
version_check.go cmd: migrate to urfave/cli/v2 (#24751) 2022-06-27 18:22:36 +02:00