nimbus-eth2/tests
Jacek Sieka 49729e1ef3
prevent concurrent `storeBlock` calls (fixes #5285) (#5295)
When a block is introduced to the system both via REST and gossip at the
same time, we will call `storeBlock` from two locations leading to a
dupliace check race condition as we wait for the EL.

This issue may manifest in particular when using an external block
builder that itself publishes the block onto the gossip network.

* refactor enqueue flow
* simplify calling `addBlock`
* complete request manager verifier future for blobless blocks
* re-verify parent conditions before adding block

among other things, it might have gone stale or finalized between one
call and the other
2023-08-17 15:12:37 +02:00
..
consensus_spec automated consensus spec URL updating to v1.4.0-beta.1 (#5280) 2023-08-09 03:58:47 +00:00
fuzzing test fixture cleanups (#2976) 2021-10-12 13:36:52 +02:00
helpers fix ExecutionPayload(Header) JSON serialization (#3679) 2022-06-01 14:57:28 +02:00
media Add a JWT file that must be present on the file system for the test suite to succeed 2023-03-17 17:49:39 +02:00
mocking Rename eth1/ -> el/ and eth1_monitor.nim -> el_monitor.nim (#4944) 2023-05-15 05:05:12 +00:00
simulation fix false positive getopt failure with multiple getopt matches in searched path (#4797) 2023-04-08 00:18:29 +00:00
slashing_protection use ZERO_HASH for default(Eth2Digest)/Eth2Digest() in func calls (#3770) 2022-06-18 04:57:37 +00:00
all_tests.nim New stricter beacon-node URL parsing 2023-05-19 02:02:20 +03:00
nim.cfg adjust log level to reduce ci log spam (#5232) 2023-08-03 23:09:08 +00:00
test_action_tracker.nim opt-out support for v1.4.0 attestation stability subnets (#5128) 2023-06-30 05:23:15 +00:00
test_attestation_pool.nim async batch verification (+40% sig verification throughput) (#5176) 2023-08-03 11:36:45 +03:00
test_beacon_chain_db.nim rename `EIP4844` > `Deneb` in `test_beacon_chain_db` (#4721) 2023-03-11 02:49:17 +01:00
test_beacon_time.nim dependent slot helpers 2023-05-16 11:04:25 +02:00
test_block_dag.nim generalize `commonAncestor` function to `BlockId` (#5192) 2023-07-18 17:37:53 +02:00
test_block_processor.nim prevent concurrent `storeBlock` calls (fixes #5285) (#5295) 2023-08-17 15:12:37 +02:00
test_block_quarantine.nim Fetch by-root request directly from quarantine (#5167) 2023-07-11 18:22:02 +02:00
test_blockchain_dag.nim async batch verification (+40% sig verification throughput) (#5176) 2023-08-03 11:36:45 +03:00
test_conf.nim remove Nim 1.2-compatible `push raise`s and update copyright notice years (#4528) 2023-01-20 14:14:37 +00:00
test_datatypes.nim remove false OnBlockAdded dependency on phase0 HashedBeaconState (#2661) 2021-06-21 08:35:24 +00:00
test_deposit_snapshots.nim Support for obtaining deposit snapshots during trustedNodeSync (#4303) 2022-12-07 12:24:51 +02:00
test_discovery.nim reduce `nim-eth` dependencies just for RNG (#5099) 2023-06-19 22:43:50 +00:00
test_el_conf.nim avoid Nim 2.0 issue when loading config (#5202) 2023-07-19 20:26:30 +02:00
test_el_manager.nim Rename "data gas" to "blob gas" (#5216) 2023-08-02 22:07:57 +00:00
test_engine_authentication.nim remove unused imports in tests/ (#3713) 2022-06-07 17:05:06 +00:00
test_eth2_ssz_serialization.nim use isZeroMemory for Eth2Digest comparisons (#3386) 2022-02-14 05:26:19 +00:00
test_exit_pool.nim don't clear validator change subpools after creating each block (#4704) 2023-03-09 18:19:36 +02:00
test_forks.nim test forks.nim capella and deneb block/state ssz serialization (#4772) 2023-03-29 13:22:19 +00:00
test_gossip_transition.nim rename ConsensusFork.EIP4844 to ConsensusFork.Deneb (#4692) 2023-03-04 13:35:39 +00:00
test_gossip_validation.nim async batch verification (+40% sig verification throughput) (#5176) 2023-08-03 11:36:45 +03:00
test_helpers.nim remove empty block fallback now that capella's on mainnnet (#4821) 2023-04-18 09:21:15 +00:00
test_honest_validator.nim Add blob handling to message router (#5106) 2023-06-28 17:55:31 +00:00
test_key_splitting.nim reduce `nim-eth` dependencies just for RNG (#5099) 2023-06-19 22:43:50 +00:00
test_keymanager_api.nim need even more log lines for debugging keymanager (#5260) 2023-08-07 18:02:08 +02:00
test_keystore.nim reduce `nim-eth` dependencies just for RNG (#5099) 2023-06-19 22:43:50 +00:00
test_keystore_management.nim reduce `nim-eth` dependencies just for RNG (#5099) 2023-06-19 22:43:50 +00:00
test_light_client.nim async batch verification (+40% sig verification throughput) (#5176) 2023-08-03 11:36:45 +03:00
test_light_client_processor.nim async batch verification (+40% sig verification throughput) (#5176) 2023-08-03 11:36:45 +03:00
test_message_signatures.nim Implement blob sidecar signatures (#5072) 2023-06-16 15:47:18 +00:00
test_network_metadata.nim Disable the use of incbin as it breaks the retail build on Linux/ARM 2023-05-19 04:08:02 +03:00
test_peer_pool.nim proc -> func in ncli/, research/, and test/ (#2818) 2021-08-25 14:51:52 +00:00
test_remote_keystore.nim use v1.4.0-alpha.1 consensus spec test vectors (#5026) 2023-06-03 21:55:08 +00:00
test_serialization.nim remove most std/options imports (#4778) 2023-03-31 20:46:47 +00:00
test_signing_node.nim Merkle is someone's name (#5265) 2023-08-07 10:06:47 +00:00
test_spec.nim `BeaconStateFork/BeaconBlockFork` -> `ConsensusFork` (#4560) 2023-01-28 19:53:41 +00:00
test_statediff.nim refactor state diffs not to require two states in memory (#4986) 2023-05-30 11:55:32 +03:00
test_sync_committee_pool.nim reduce `nim-eth` dependencies just for RNG (#5099) 2023-06-19 22:43:50 +00:00
test_sync_manager.nim Fix sync for blocks older than MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS (#4977) 2023-05-19 16:25:11 +00:00
test_validator_client.nim VC: Fix API timeouts issue. (#5297) 2023-08-16 16:14:39 +00:00
test_validator_pool.nim restore doppelganger check on connectivity loss (#4616) 2023-02-20 13:28:56 +02:00
test_zero_signature.nim update spec references from eth2.0-specs to consensus-specs and to v1.1.0-beta.2 (#2822) 2021-08-26 10:21:52 +02:00
testblockutil.nim automated consensus spec URL updating to v1.4.0-beta.1 (#5280) 2023-08-09 03:58:47 +00:00
testdbutil.nim allow initializing test DBs from later forks (#5186) 2023-07-14 09:35:58 +02:00
teststateutil.nim remove most std/options imports (#4778) 2023-03-31 20:46:47 +00:00
testutil.nim remove Nim 1.2-compatible `push raise`s and update copyright notice years (#4528) 2023-01-20 14:14:37 +00:00