nimbus-eth1/nimbus/utils
Jordan Hrycaj 73b628491d
Clique snapshots reorg (#1169)
* Add persistent snapshot size logging

why:
  Suspecting too much space used

snapshot statistic:
  [..]
  blockNumber=2214912 nSnaps=2236 snapsTotal=1.14m
  blockNumber=2215936 nSnaps=2237 snapsTotal=1.14m
  [..]
  Persisting blocks fromBlock=2216449 toBlock=2216640
  36458496	datadir-nimbus-goerlish/data/nimbus/

* Replace legacy `lru_cache` by `keyed_queue`

why:
  `keyed_queue` generalises `lru_cache`

snapshot statistic:
  [..]
  blockNumber=2234368 nSnaps=2259 snapsTotal=1.15m
  blockNumber=2235392 nSnaps=2260 snapsTotal=1.15m
  [..]
  Persisting blocks fromBlock=2235649 toBlock=2235840
  37627288	datadir-nimbus-goerlish/data/nimbus/

* Increase persistent snapshot storage interval by 300%

snapshot statistic:
      [..]
      blockNumber=2232320 nSnaps=620 snapsTotal=0.30m
      blockNumber=2236416 nSnaps=621 snapsTotal=0.30m
      [..]
      Persisting blocks fromBlock=2237185 toBlock=2237376
      37627288	datadir-nimbus-goerlish/data/nimbus/

* Cull legacy debugging environment for clique

why:
  Chronicles provides a better choice (when properly set up)
2022-07-21 19:16:28 +01:00
..
keyed_queue update ec_recover 2022-01-22 08:26:57 +02:00
pow first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
tx_pool handle PoA block difficulty during block creation 2022-06-15 07:55:00 +07:00
difficulty.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
ec_recover.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
header.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
pow.nim Bump nim-eth and nim-bearssl and accompanying fixes (#1150) 2022-07-04 09:38:02 +02:00
prettify.nim Clique snapshots reorg (#1169) 2022-07-21 19:16:28 +01:00
tx_pool.nim handle PoA block difficulty during block creation 2022-06-15 07:55:00 +07:00
utils_defs.nim update ec_recover 2022-01-22 08:26:57 +02:00