Commit Graph

18 Commits

Author SHA1 Message Date
tersec 8333365848
replace validator Bloom filter with partial bucket sort () 2024-08-02 07:30:22 +02:00
Etan Kissling 1fd246b23e
explicitly refer to attestation fork in SSZ consensus object tests ()
Use fully qualified types when referring to attestation related types
in tests. We should also consider to merge these to a single runner.
2024-07-03 01:40:47 +00:00
tersec 77d926525f
stop using deprecated stew/results ()
* stop using deprecated stew/results

* exception tracking linting
2024-06-11 02:34:56 +00:00
tersec 8f0a61b964
add EF consensus spec test Electra execution payload operations fixture () 2024-04-26 16:02:15 +00:00
tersec 27ec2893ff
rm unused parameters of get_state_exit_queue_info() () 2024-04-03 01:45:57 +00:00
tersec 109007dc93
avoid quadratic behavior exiting validators ()
* avoid quadratic behavior exiting validators

* fix libnfuzz callers
2024-04-02 12:18:40 +00:00
Etan Kissling 5d42859176
make `Gwei` `distinct` ()
 introduced a subtle change to `nim-web3` resulting in `Gwei` to be
serialized differently than before. Using a `distinct` type for `Gwei`
improves type safety and avoids such problems in the future.
2024-03-19 14:22:07 +01:00
tersec 816361ed8c
Bloom filter acceleration for deposit processing () 2024-03-07 23:38:24 +00:00
tersec 2a13c09615
add proposer reward accounting to block transitions ()
* add proposer reward accounting to block transitions

* Update beacon_chain/spec/state_transition_block.nim

Co-authored-by: Etan Kissling <etan@status.im>

---------

Co-authored-by: Etan Kissling <etan@status.im>
2024-03-04 17:00:46 +00:00
Etan Kissling 4a74ef9cba
add `{.raises.}` annotations to `test_fixture_operations` ()
Some more progress in making exception flow explicit.
2024-02-28 11:54:29 +00:00
Jacek Sieka 62cbdeefc5
verify `genesis_time` more strictly (fixes ) ()
Bogus values lead to crashes down the line when timers overflow
2024-01-06 15:26:56 +01:00
Etan Kissling 6af70e2f80
wrap `applyExecutionPayload` in factories for Nim 2.0 ()
In Nim 2.0, the `test_fixture_operations` files fail to compile with:

```
Error: 'result' is of type <Result[system.void, system.cstring]> which cannot be captured as it would violate memory safety, declared here: /nimbus-eth2/tests/consensus_spec/bellatrix/test_fixture_operations.nim(130, 5); using '-d:nimNoLentIterators' helps in some cases. Consider using a <ref Result[system.void, system.cstring]> which can be captured.
```

Wrapping the `applyExecutionPayload` in a factory that takes `path`
avoids this problem.
2023-09-06 10:35:37 +02:00
Jacek Sieka 6fab826487
bump unittest2, clean up suite names ()
Suite names were not being used because `test` has to have access to it
during instantiation - this PR cleans things up a little while at the
same time upgrading unittest2.
2023-09-04 13:05:11 +00:00
Etan Kissling 3a6b50cf21
require sync committee supermajority in CI ()
* require sync committee supermajority in CI

To better catch problems with sync committee messages in CI, extend
local testnet simulation to also verify that each block is signed
by a supermajority of the sync committee.

Requires  and 

* lint
2023-06-17 06:00:01 +00:00
tersec 10569ff2e9
use v1.4.0-alpha.0 consensus spec test vectors () 2023-05-25 07:55:00 +00:00
Eugene Kabanov e51095e2f8
Fix Windows MAX_PATH constraint issue in CI. ()
* Fix MAX_PATH limitation in tests.

* Fix posix issues.

* Fix compilation issue.
2023-02-10 21:59:38 +01:00
tersec 68e08c6f15
use v1.3.0-rc.1 consensus spec test vectors () 2023-01-14 04:20:51 +00:00
tersec 06ccf5b80c
capella test vector support () 2022-10-27 06:29:24 +00:00