nimbus-eth1/vendor
Jordan Hrycaj ba940a5ce7
Snap sync simplify object inheritance (#1098)
* Reorg SnapPeerBase descriptor, notably start/stop flags

details:
  Instead of using three boolean flags startedFetch, stopped, and
  stopThisState a single enum type is used with values SyncRunningOk,
  SyncStopRequest, and SyncStopped.

* Restricting snap to eth66 and later

why:
  Id-tracked request/response wire protocol can handle overlapped
  responses when requests are sent in row.

* Align function names with source code file names

why:
  Easier to reconcile when following the implemented logic.

* Update trace logging (want file locations)

why:
  The macros previously used hid the relevant file location (when
  `chroniclesLineNumbers` turned on.) It rather printed the file
  location of the template that was wrapping `trace`.

* Use KeyedQueue table instead of sequence

why:
  Quick access, easy configuration as LRU or FIFO with max entries
  (currently LRU.)

* Dissolve `SnapPeerEx` object extension into `SnapPeer`

why;
  It is logically cleaner and more obvious not to inherit from
  `SnapPeerBase` but to specify opaque field object references of the
  merged `SnapPeer` object. These can then be locally inherited.

* Dissolve `SnapSyncEx` object extension into `SnapSync`

why;
  It is logically cleaner and more obvious not to inherit from
  `SnapSyncEx` but to specify opaque field object references of
  the `SnapPeer` object. These can then be locally inherited.

  Also, in the re-factored code here the interface descriptor
  `SnapSyncCtx` inherited `SnapSyncEx` which was sub-optimal (OO
  inheritance makes it easier to work with call back functions.)
2022-05-23 17:53:19 +01:00
..
ethash@1322d860a8 update submodules to accomodate styleCheck 2022-04-14 08:39:50 +07:00
nim-bearssl@65b74302e0 update submodules to accomodate styleCheck 2022-04-14 08:39:50 +07:00
nim-blscurve@91253d684d Bump submodules (#887) 2021-11-18 12:06:53 +01:00
nim-bncurve@9677794afb update submodules to accomodate styleCheck 2022-04-14 08:39:50 +07:00
nim-chronicles@972f25d6c3 update submodules to accomodate styleCheck 2022-04-14 08:39:50 +07:00
nim-chronos@bb4c3298f5 Bump chronos and json-rpc and avoid http conn re-use for blockwalk (#1053) 2022-04-11 19:39:45 +02:00
nim-confutils@d06f6187dc bump nim-confutils 2022-05-10 16:04:21 +07:00
nim-eth@4463a28fd6 Bump nim-eth for max discv5 packet size (#1070) 2022-05-03 09:18:33 +02:00
nim-evmc@4b504ac784 bump nim-emvc with evmc revision 8.0.0 to 9.0.0 2021-06-29 07:34:45 +07:00
nim-faststreams@1b561a9e71 Bump submodules (#887) 2021-11-18 12:06:53 +01:00
nim-graphql@50e7e5b467 bump some submodules 2022-03-25 17:16:21 +07:00
nim-http-utils@40048e8b3e bump some submodules 2022-03-25 17:16:21 +07:00
nim-json-rpc@335f292a58 Bump chronos and json-rpc and avoid http conn re-use for blockwalk (#1053) 2022-04-11 19:39:45 +02:00
nim-json-serialization@3509706517 Proper Uint256 parser for JSON genesis (#1071) 2022-05-06 09:02:28 +01:00
nim-libbacktrace@2ea147a71c dist: precompiled binaries and Docker images (#1015) 2022-03-27 13:21:15 +02:00
nim-metrics@b4c6a51ee7 Bump submodules (#887) 2021-11-18 12:06:53 +01:00
nim-nat-traversal@11df74552d dist: precompiled binaries and Docker images (#1015) 2022-03-27 13:21:15 +02:00
nim-rocksdb@fb3f2c30b0 dist: precompiled binaries and Docker images (#1015) 2022-03-27 13:21:15 +02:00
nim-secp256k1@d790c42206 Bump submodules (#887) 2021-11-18 12:06:53 +01:00
nim-serialization@9631fbd1c8 Proper Uint256 parser for JSON genesis (#1071) 2022-05-06 09:02:28 +01:00
nim-snappy@827c9ba8ee snappy revamp 2022-04-05 12:03:01 +07:00
nim-sqlite3-abi@07039dd887 bump submodules 2021-01-20 11:50:07 +07:00
nim-ssz-serialization@cd500484e0 Bump nim-ssz-serialization and clean-up fromSszBytes raises (#948) 2022-01-31 21:57:34 +01:00
nim-stew@779ba052c8 Snap sync simplify object inheritance (#1098) 2022-05-23 17:53:19 +01:00
nim-stint@036c71d06a Bump submodules (#887) 2021-11-18 12:06:53 +01:00
nim-testutils@7e02e052a4 Bump submodules (#887) 2021-11-18 12:06:53 +01:00
nim-toml-serialization@4e15e00ed9 Bump submodules (#887) 2021-11-18 12:06:53 +01:00
nim-unittest2@f1d70dbb8c Bump unittest2 and testutils 2021-11-14 16:02:22 +07:00
nim-web3@91c998a0d4 bump nim-web3 2022-02-27 14:37:35 +07:00
nim-websock@4a7a058843 bump some submodules 2022-03-25 17:16:21 +07:00
nim-zlib@6bbc67d09e vendor: update nim-graphql, replace nim-miniz with nim-zlib, add nim-ws 2021-06-21 16:30:02 +07:00
nimbus-build-system@a8ab2dc39a dist: precompiled binaries and Docker images (#1015) 2022-03-27 13:21:15 +02:00
nimcrypto@a5742a9a21 Bump submodules (#887) 2021-11-18 12:06:53 +01:00
tempfile.nim@26e0239441 update submodules (#268) 2019-03-11 16:00:48 -06:00