go-ethereum/internal
Sina Mahmoodi 711afbc7fd
core,eth: add `debug_setTrieFlushInterval` to change trie flush frequency (#24785)
This PR makes it possible to modify the flush interval time via RPC. On one extreme, `0s`, it would act as an archive node. If set to `1h`, means that after one hour of effective block processing time, the trie would be flushed. If one block takes 200ms, this means that a flush would occur every `5*3600=18000`  blocks -- however, if the memory size of the cached states grows too large, it will flush sooner. 

Essentially, this makes it possible to configure the node to be more or less "archive:ish", and without restarting the node while reconfiguring it.
2022-12-09 07:40:17 -05:00
..
build build: add static linking support (#25492) 2022-08-10 10:30:59 +02:00
cmdtest build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
debug internal/debug: add --log.file option (#26149) 2022-11-11 11:33:18 +01:00
ethapi eth/filters: send rpctransactions in pending-subscription (#26126) 2022-11-14 14:48:01 +01:00
flags internal/flags: fix issue with stringslice migration (#25830) 2022-09-29 20:16:36 +02:00
guide rpc, internal/guide: speed up tests a bit (#26193) 2022-11-17 15:30:53 +01:00
jsre core: eth: rpc: implement safe rpc block (#25165) 2022-07-25 18:42:05 +03:00
shutdowncheck eth, les: update unclean shutdown markers regularly (#24077) 2021-12-17 15:18:51 +01:00
syncx core: improve shutdown synchronization in BlockChain (#22853) 2021-10-07 15:47:50 +02:00
testlog internal/testlog: print file+line number of log call in test log (#20528) 2020-01-08 17:11:51 +02:00
utesting all: replace uses of ioutil with io and os (#24869) 2022-05-16 11:59:35 +02:00
version all: fix spelling mistakes (#25961) 2022-10-11 09:37:00 +02:00
web3ext core,eth: add `debug_setTrieFlushInterval` to change trie flush frequency (#24785) 2022-12-09 07:40:17 -05:00