nimbus-eth1/tests
Jordan Hrycaj 90dd86be9a
Fc module can update base also when on parent arc (#2911)
* Re-org internal descriptor `CanonicalDesc` as `PivotArc`

why:
  Despite its name, `CanonicalDesc` contained a cursor arc (or leg) from
  the base tree with a designated block (or Header) on its arc members
  (aka blocks.) The type is used more generally than only for s block on
  the canonical cursor.

  Also, the `PivotArc` provides some more fields for caching intermediate
  data. This simplifies managing extra arguments for some functions.

* Remove cruft

details:
  No need to find cursor arc if it is given as function argument.

* Rename prototype variables `head: PivotArc` to `pvarc`

why:
  Better reading

* Function and code massage, adjust names

details:
  Avoid the syllable `canonical` in function names that do not strictly
  apply to the canonical chain. So renaming
  * findCanonicalHead() => findCursorArc()
  * canonicalChain() => findHeader()
  * trimCanonicalChain() => trimCursorArc()

* Combine `updateBase()` function-args into single `PivotArgs` object

why:
  Will generalise action for more complex scenarios in future.

* update `calculateNewBase()` return code type => `PivotArc`

why:
  So it can directly be used as argument into `updateBase()`

* Update `calculateNewBase()` for target on parent arc

* Update unit tests
2024-12-05 13:01:57 +07:00
..
bootstrap config: fix new config based on input from jamie and zahary 2021-09-18 17:34:51 +07:00
customgenesis Revert "Adopt latest changes to requests hash computation" (#2892) 2024-11-29 16:13:08 +07:00
db Added support for namespaces to RocksDb kvstore. (#2066) 2024-03-12 11:04:46 +08:00
engine_api Revert "Adopt latest changes to requests hash computation" (#2892) 2024-11-29 16:13:08 +07:00
fixtures Fix EIP-2537: Precompile for BLS12-381 curve operations (#2603) 2024-09-10 06:56:08 +00:00
graphql Workaround for 0 gas price estimation (#2180) 2024-05-28 13:36:38 +07:00
invalid_keystore Fix keystore loader bug (#2774) 2024-10-24 04:07:06 +00:00
keystore implement more eth rpc and keystore management 2020-07-23 14:54:32 +07:00
replay Cleanup db/core_apps error handling (#2838) 2024-11-07 08:24:21 +07:00
test_aristo Pre-allocate vids for branches (#2882) 2024-12-04 11:42:04 +01:00
test_coredb Cleanup db/core_apps error handling (#2838) 2024-11-07 08:24:21 +07:00
test_forked_chain Fc module can update base also when on parent arc (#2911) 2024-12-05 13:01:57 +07:00
test_jwt_auth Enable JWT authentication for websockets (#1039) 2022-04-06 15:11:13 +01:00
test_txpool Bump nim-eth and nimbus-eth2 (#2741) 2024-10-16 13:51:38 +07:00
all_tests.nim Port p2p to server API (#2769) 2024-11-02 10:30:45 +01:00
all_tests_macro.nim Cache code and invalid jump destination tables (fixes #2268) (#2404) 2024-06-21 09:44:10 +02:00
asynctest.nim Core db and aristo updates for destructor and tx logic (#1894) 2023-11-16 19:35:03 +00:00
macro_assembler.nim Speed up evm stack (#2881) 2024-11-30 10:07:10 +01:00
nim.cfg import: read from era files (#2254) 2024-05-31 09:13:56 +02:00
persistBlockTestGen.nim Use eth/common transaction signature utilities (#2696) 2024-10-04 16:34:31 +02:00
test_allowed_to_fail.nim ForkedChain implementation (#2405) 2024-06-26 07:27:48 +07:00
test_aristo.nim Small deserialization speedup (#2852) 2024-11-20 16:04:32 +01:00
test_block_fixture.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
test_blockchain_json.nim Simplify state root api (#2864) 2024-11-22 14:15:35 +01:00
test_config.nim Bump nim-eth, nim-web3, nimbus-eth2 (#2344) 2024-06-14 14:31:08 +07:00
test_configuration.nim Move rlp block import into it's own subcommand (#2904) 2024-12-04 20:36:07 +07:00
test_coredb.nim Cleanup (#2565) 2024-08-15 12:31:07 +00:00
test_coredb.nim.cfg Store keys together with node data (#2849) 2024-11-20 09:56:27 +01:00
test_difficulty.nim switch to Nim v2.0.12 (#2817) 2024-11-01 19:06:26 +00:00
test_engine_api.nim Cleanup db/core_apps error handling (#2838) 2024-11-07 08:24:21 +07:00
test_evm_support.nim Speed up evm stack (#2881) 2024-11-30 10:07:10 +01:00
test_filters.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
test_forked_chain.nim Fc module can update base also when on parent arc (#2911) 2024-12-05 13:01:57 +07:00
test_forkid.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
test_generalstate_json.nim Remove trie_defs imports (#2872) 2024-11-25 16:37:57 +01:00
test_genesis.nim Revert "Adopt latest changes to requests hash computation" (#2892) 2024-11-29 16:13:08 +07:00
test_getproof_json.nim Remove trie_defs imports (#2872) 2024-11-25 16:37:57 +01:00
test_graphql.nim move db init to init (#2552) 2024-08-08 07:45:30 +02:00
test_helpers.nim switch to Nim v2.0.12 (#2817) 2024-11-01 19:06:26 +00:00
test_jwt_auth.nim replace deprecated types (#2704) 2024-10-16 08:34:12 +07:00
test_ledger.nim Cleanup db/core_apps error handling (#2838) 2024-11-07 08:24:21 +07:00
test_multi_keys.nim Cleanup stateless and block witness code. (#2295) 2024-06-08 15:05:00 +07:00
test_op_arith.nim Fix styles and reduce compiler warnings (#2086) 2024-03-20 14:35:38 +07:00
test_op_bit.nim Fix styles and reduce compiler warnings (#2086) 2024-03-20 14:35:38 +07:00
test_op_custom.nim Fix styles and reduce compiler warnings (#2086) 2024-03-20 14:35:38 +07:00
test_op_env.nim post-merge nrpc fix (#2685) 2024-10-03 11:42:24 +00:00
test_op_memory.nim switch to Nim v2.0.12 (#2817) 2024-11-01 19:06:26 +00:00
test_op_misc.nim Fix styles and reduce compiler warnings (#2086) 2024-03-20 14:35:38 +07:00
test_persistblock_json.nim Consolidate block type for block processing (#2325) 2024-06-09 16:32:20 +02:00
test_precompiles.nim Bump nim-eth and nimbus-eth2 (#2741) 2024-10-16 13:51:38 +07:00
test_rpc.nim Engine API: Route more wiring from CoreDb to ForkedChain (#2844) 2024-11-07 03:43:25 +00:00
test_tools_build.nim Remove `hunter` (#2697) 2024-10-06 10:11:44 +00:00
test_tracer_json.nim Store keys together with node data (#2849) 2024-11-20 09:56:27 +01:00
test_transaction_json.nim Unify tx validation (#2777) 2024-10-26 09:19:48 +02:00
test_txpool.nim Bump nim-eth and nimbus-eth2 (#2741) 2024-10-16 13:51:38 +07:00
test_txpool2.nim Cleanup db/core_apps error handling (#2838) 2024-11-07 08:24:21 +07:00
tracerTestGen.nim Remove EVM indirect imports and unused EVM errors (#2370) 2024-06-17 09:56:39 +02:00