• Sina Mahmoodi's avatar
    core,eth: add `debug_setTrieFlushInterval` to change trie flush frequency (#24785) · 711afbc7
    Sina Mahmoodi authored
    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.  
    711afbc7
Name
Last commit
Last update
..
catalyst Loading commit data...
downloader Loading commit data...
ethconfig Loading commit data...
fetcher Loading commit data...
filters Loading commit data...
gasprice Loading commit data...
protocols Loading commit data...
tracers Loading commit data...
api.go Loading commit data...
api_backend.go Loading commit data...
api_test.go Loading commit data...
backend.go Loading commit data...
bloombits.go Loading commit data...
handler.go Loading commit data...
handler_eth.go Loading commit data...
handler_eth_test.go Loading commit data...
handler_snap.go Loading commit data...
handler_test.go Loading commit data...
peer.go Loading commit data...
peerset.go Loading commit data...
state_accessor.go Loading commit data...
sync.go Loading commit data...
sync_test.go Loading commit data...