Skip to content

Clean-up re-org tests#4957

Merged
michaelsproul merged 1 commit intosigp:sidecar-inclusion-prooffrom
michaelsproul:sip-reorg-tests
Nov 29, 2023
Merged

Clean-up re-org tests#4957
michaelsproul merged 1 commit intosigp:sidecar-inclusion-prooffrom
michaelsproul:sip-reorg-tests

Conversation

@michaelsproul
Copy link
Member

@michaelsproul michaelsproul commented Nov 28, 2023

Clean up our runner for the new EF re-org tests. In the process of doing this I also found an insignificant bug in our definition of head_is_late.

I also made some tweaks to the block delay cache to facilitate slightly easier usage during tests. It will now keep the minimum observed timestamp, which allows us to call set_observed at multiple points without causing problems.

@michaelsproul michaelsproul changed the title I "Improve" re-org tests Nov 28, 2023
@michaelsproul michaelsproul added work-in-progress PR is a work-in-progress deneb labels Nov 28, 2023
@michaelsproul michaelsproul marked this pull request as draft November 28, 2023 07:26
@michaelsproul michaelsproul force-pushed the sip-reorg-tests branch 2 times, most recently from fd644d5 to c58341a Compare November 29, 2023 02:37
@michaelsproul michaelsproul changed the title "Improve" re-org tests Clean-up re-org tests Nov 29, 2023
@michaelsproul michaelsproul added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Nov 29, 2023
@michaelsproul michaelsproul marked this pull request as ready for review November 29, 2023 02:39
Copy link
Member

@pawanjay176 pawanjay176 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, much cleaner

@michaelsproul michaelsproul merged commit a130a5c into sigp:sidecar-inclusion-proof Nov 29, 2023
@michaelsproul michaelsproul deleted the sip-reorg-tests branch November 29, 2023 11:08
realbigsean added a commit that referenced this pull request Dec 5, 2023
* Refactor BlobSidecar to new type

* Fix some compile errors

* Gossip verification compiles

* Fix http api types take 1

* Fix another round of compile errors

* Beacon node crate compiles

* EF tests compile

* Remove all blob signing from VC

* fmt

* Tests compile

* Fix some tests

* Fix more http tests

* get compiling

* Fix gossip conditions and tests

* Add basic proof generation and verification

* remove unnecessary ssz decode

* add back build_sidecar

* remove default at fork for blobs

* fix beacon chain tests

* get relase tests compiling

* fix lints

* fix existing spec tests

* add new ef tests

* fix gossip duplicate rule

* lints

* add back sidecar signature check in gossip

* add finalized descendant check to blob sidecar gossip

* fix error conversion

* fix release tests

* sidecar inclusion self review cleanup

* Add proof verification and computation metrics

* Remove accidentally committed file

* Unify some block and blob errors; add slashing conditions for sidecars

* Address review comment

* Clean up re-org tests (#4957)

* Address more review comments

* Add Comments & Eliminate Unnecessary Clones

* update names

* Update beacon_node/beacon_chain/src/metrics.rs

Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>

* Update beacon_node/network/src/network_beacon_processor/tests.rs

Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>

* pr feedback

* fix test compile

* Sidecar Inclusion proof small refactor and updates (#4967)

* Update some comments, variables and small cosmetic fixes.

* Couple blobs and proofs into a tuple in `PayloadAndBlobs` for simplicity and safety.

* Update function comment.

* Update testing/ef_tests/src/cases/merkle_proof_validity.rs

Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>

* Rename the block and blob wrapper types used in the beacon API interfaces.

* make sure gossip invalid blobs are passed to the slasher (#4970)

* Add blob headers to slasher before adding to DA checker

* Replace Vec with HashSet in BlockQueue

* fmt

* Rename gindex -> index

* Simplify gossip condition

---------

Co-authored-by: realbigsean <seananderson33@gmail.com>
Co-authored-by: realbigsean <sean@sigmaprime.io>
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
Co-authored-by: Mark Mackey <mark@sigmaprime.io>
Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deneb ready-for-review The code is ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants