nimbus-eth1/nimbus/utils
Jordan Hrycaj c123e1eb93
Updated account scheduler (#1124)
* Using `IntervalSet` type data for `LeafRange`

* Updated log ticker

* Update to `eth67`

details:
  Disabled by default, use `ENABLE_LEGACY_ETH66=0` to enable
  No support for `Get/NodeData` dialogue via eth, anymore

* Dissolved fetch/common.nim

details;
  the log/ticker part becomes ticker.nim
  the interval range management is merged into fetch.nim

* Updated account scheduler

why:
  The previous scheduler fetched each account once (for different state
  roots.) The updated scheduler re-calibrates after a change of the state
  root and potentially (until told otherwise) fetches all possible
  accounts.

* Fix `high(P)` fringe cases in `IntervalSet` handling

why:
  The `high(P)` value for a point type `P` cannot be represented with
  half open intervals `[a,b)` for a,b points of `P`. So this single value
  needs extra treatment which was slightly wrong.

* Updated docu/comments

also:
  rebased

* Update scheduler

details:
  Change the `pivot` management when creating new accounts lists. It is
  strictly increasing (and wrapping around) depending on last updated
  accounts list.
2022-06-16 09:58:50 +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
interval_set.nim Updated account scheduler (#1124) 2022-06-16 09:58:50 +01:00
lru_cache.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07:00
pow.nim first step into styleCheck fixes 2022-04-14 08:39:50 +07: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