Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Banana changes on sequence sender #15

Merged
merged 58 commits into from
Jul 26, 2024

Conversation

goran-ethernal
Copy link
Collaborator

Description

This PR implements Banana fork changes to the sequence sender. Mainly:

  • Using a new DAC endpoint called SignSequenceBanana to sign a new sequence.
  • Taking the greatest L1InfoRootIndex for the sequence and sending it to the contract.
  • Calculating accumulated input hash for the new sequence.

@goran-ethernal goran-ethernal self-assigned this Jul 10, 2024
@goran-ethernal goran-ethernal changed the base branch from main to develop July 10, 2024 09:31
@goran-ethernal goran-ethernal changed the title Banana changes on sequence sender feat: Banana changes on sequence sender Jul 10, 2024
@goran-ethernal goran-ethernal force-pushed the CDK-260-sequence-sender-integrate-banana branch from 86bc8e4 to 9bb2676 Compare July 10, 2024 09:35
@goran-ethernal goran-ethernal marked this pull request as ready for review July 12, 2024 08:54
Copy link
Contributor

@arnaubennassar arnaubennassar left a comment

Choose a reason for hiding this comment

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

LGTM but would love to see some e2e test passing before merging

@@ -995,7 +1004,7 @@ func (s *SequenceSender) addInfoSequenceBatchEnd(batch *datastream.BatchEnd) {
if data != nil {
wipBatch := data.batch
if wipBatch.BatchNumber == batch.Number {
wipBatch.StateRoot = common.BytesToHash(batch.StateRoot)
// wipBatch.StateRoot = common.BytesToHash(batch) TODO: check if this is needed
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we know what is the outcome of this TODO?

cc @arnaubennassar do we need to set the StateRoot for the WIP batch?

@goran-ethernal goran-ethernal force-pushed the CDK-260-sequence-sender-integrate-banana branch from 8b22abb to 1b33233 Compare July 26, 2024 07:50
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

@goran-ethernal goran-ethernal merged commit 651f461 into develop Jul 26, 2024
5 of 7 checks passed
@goran-ethernal goran-ethernal deleted the CDK-260-sequence-sender-integrate-banana branch July 26, 2024 09:00
Stefan-Ethernal added a commit that referenced this pull request Sep 17, 2024
* banana changes

* fix: old acc input hash fix

* fix: update DAC dependency

* fix: move seqence struct to etherman package

* fix: move CalculateAccInputHash to common package

* fix: datacommittee contract to point to banana

* fix: ut

* wip

* remove IsValidium from seqSender code

* remove unused file

* renamed

* wip

* add errors

* revert multi-fork for etherman and remove wrappers for contracts

* add elderberry validium

* wip-elderberry validium

* add translator to override DAC members URLs

* add auto-config kurtosis environment

* fix bugs, fix kurtosis config

* maxbatchesforL1=0 -> disabled

* wip

* fix script

* add e2e test

* comments on PR

* wip

* wip

* wip

* wip

* add verify batches check

* test

* wip

* wip

* placeholder for testing GHaction

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* disabled datacommitte test because PUSH0 is not supported by geth simulated

* wip

* PR comments

* Update dataavailability/datacommittee/datacommittee.go

Co-authored-by: Stefan Negovanović <[email protected]>

* PR comments

* Update dataavailability/datacommittee/datacommittee_test.go

Co-authored-by: Stefan Negovanović <[email protected]>

* Update test/scripts/config_kurtosis_for_local_run.sh

Co-authored-by: Stefan Negovanović <[email protected]>

* PR comments

* Update test/config/test.kurtosis_template.toml

Co-authored-by: Stefan Negovanović <[email protected]>

* PR comments

* PR comments

* PR comments

* PR comments

* PR comments

* Update cmd/run.go

Co-authored-by: Goran Rojovic <[email protected]>

* PR comments

* fix Dockerfile

* fix: race conditions in reorg detector

---------

Co-authored-by: joanestebanr <[email protected]>
Co-authored-by: Stefan Negovanović <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants