From a03bdeb526891222e22e138d2a83408b43559c25 Mon Sep 17 00:00:00 2001 From: bros Date: Mon, 22 Jan 2024 18:42:28 +0000 Subject: [PATCH] Add reuqests from PR --- cmd/run.go | 23 +- dataavailability/dataavailability.go | 18 +- .../datacommittee/datacommittee.go | 31 +- .../datacommittee/datacommittee_test.go | 10 +- dataavailability/interfaces.go | 20 +- docs/diff/diff.html | 2445 +++++++++-------- docs/diff/diff.md | 2 +- etherman/etherman.go | 7 +- etherman/interfaces.go | 2 +- etherman/simulated.go | 2 +- state/pgstatestorage/pgstatestorage.go | 2 +- 11 files changed, 1308 insertions(+), 1254 deletions(-) diff --git a/cmd/run.go b/cmd/run.go index c04a32e4d4..6a11fd7a69 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -301,8 +301,10 @@ func newEtherman(c config.Config, st *state.State) (*etherman.Client, error) { } func newDataAvailability(c config.Config, st *state.State, etherman *etherman.Client, isSequenceSender bool) (*dataavailability.DataAvailability, error) { - var trustedSequencerURL string - var err error + var ( + trustedSequencerURL string + err error + ) if !c.IsTrustedSequencer { if c.Synchronizer.TrustedSequencerURL != "" { trustedSequencerURL = c.Synchronizer.TrustedSequencerURL @@ -310,7 +312,7 @@ func newDataAvailability(c config.Config, st *state.State, etherman *etherman.Cl log.Debug("getting trusted sequencer URL from smc") trustedSequencerURL, err = etherman.GetTrustedSequencerURL() if err != nil { - log.Fatal("error getting trusted sequencer URI. Error: %v", err) + return nil, fmt.Errorf("error getting trusted sequencer URI. Error: %v", err) } } log.Debug("trustedSequencerURL ", trustedSequencerURL) @@ -320,34 +322,37 @@ func newDataAvailability(c config.Config, st *state.State, etherman *etherman.Cl // Backend specific config daProtocolName, err := etherman.GetDAProtocolName() if err != nil { - log.Fatal("error getting data availability protocol name: %v", err) + return nil, fmt.Errorf("error getting data availability protocol name: %v", err) } var daBackend dataavailability.DABackender switch daProtocolName { case string(dataavailability.DataAvailabilityCommittee): - var pk *ecdsa.PrivateKey - var err error + var ( + pk *ecdsa.PrivateKey + err error + ) if isSequenceSender { _, pk, err = etherman.LoadAuthFromKeyStore(c.SequenceSender.PrivateKey.Path, c.SequenceSender.PrivateKey.Password) if err != nil { - log.Fatal(err) + return nil, err } } dacAddr, err := etherman.GetDAProtocolAddr() if err != nil { - log.Fatal("error getting trusted sequencer URI. Error: %v", err) + return nil, fmt.Errorf("error getting trusted sequencer URI. Error: %v", err) } daBackend, err = datacommittee.New( c.Etherman.URL, dacAddr, - c.SequenceSender.L2Coinbase, pk, &dataCommitteeClient.Factory{}, ) if err != nil { return nil, err } + default: + return nil, fmt.Errorf("unexpected / unsupported DA protocol: %s", daProtocolName) } return dataavailability.New( diff --git a/dataavailability/dataavailability.go b/dataavailability/dataavailability.go index ce707de629..27a59ca381 100644 --- a/dataavailability/dataavailability.go +++ b/dataavailability/dataavailability.go @@ -13,7 +13,9 @@ import ( "github.com/ethereum/go-ethereum/crypto" ) -// DataAvailability implements an abstract data avaiolability integration +const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s" + +// DataAvailability implements an abstract data availability integration type DataAvailability struct { isTrustedSequencer bool @@ -26,13 +28,13 @@ type DataAvailability struct { // New creates a DataAvailability instance func New( - IsTrustedSequencer bool, + isTrustedSequencer bool, backend DABackender, state stateInterface, zkEVMClient syncinterfaces.ZKEVMClientInterface, ) (*DataAvailability, error) { da := &DataAvailability{ - isTrustedSequencer: IsTrustedSequencer, + isTrustedSequencer: isTrustedSequencer, backend: backend, state: state, zkEVMClient: zkEVMClient, @@ -79,16 +81,16 @@ func (d *DataAvailability) GetBatchL2Data(batchNum uint64, expectedTransactionsH log.Info("trying to get data from trusted sequencer") data, err := d.getDataFromTrustedSequencer(batchNum, expectedTransactionsHash) if err != nil { - log.Error(err) + log.Error("failed to get data from trusted sequencer: %w", err) } else { return data, nil } } log.Info("trying to get data from the data availability backend") - data, err := d.backend.GetData(batchNum, expectedTransactionsHash) + data, err := d.backend.GetBatchL2Data(batchNum, expectedTransactionsHash) if err != nil { - log.Error(err) + log.Error("failed to get data from the data availability backend: %w", err) if d.isTrustedSequencer { return nil, fmt.Errorf("data not found on the local DB nor on any data committee member") } else { @@ -100,10 +102,8 @@ func (d *DataAvailability) GetBatchL2Data(batchNum uint64, expectedTransactionsH return transactionsData, nil } -const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s" - func (d *DataAvailability) getDataFromTrustedSequencer(batchNum uint64, expectedTransactionsHash common.Hash) ([]byte, error) { - b, err := d.zkEVMClient.BatchByNumber(d.ctx, big.NewInt(int64(batchNum))) + b, err := d.zkEVMClient.BatchByNumber(d.ctx, new(big.Int).SetUint64(batchNum)) if err != nil { return nil, fmt.Errorf("failed to get batch num %d from trusted sequencer: %w", batchNum, err) } diff --git a/dataavailability/datacommittee/datacommittee.go b/dataavailability/datacommittee/datacommittee.go index fa16d60cb5..7d0e09d8ed 100644 --- a/dataavailability/datacommittee/datacommittee.go +++ b/dataavailability/datacommittee/datacommittee.go @@ -20,6 +20,8 @@ import ( "golang.org/x/net/context" ) +const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s" + // DataCommitteeMember represents a member of the Data Committee type DataCommitteeMember struct { Addr common.Address @@ -36,7 +38,6 @@ type DataCommittee struct { // DataCommitteeBackend implements the DAC integration type DataCommitteeBackend struct { dataCommitteeContract *polygondatacommittee.Polygondatacommittee - l2Coinbase common.Address privKey *ecdsa.PrivateKey dataCommitteeClientFactory client.IClientFactory @@ -49,7 +50,6 @@ type DataCommitteeBackend struct { func New( l1RPCURL string, dataCommitteeAddr common.Address, - l2Coinbase common.Address, privKey *ecdsa.PrivateKey, dataCommitteeClientFactory client.IClientFactory, ) (*DataCommitteeBackend, error) { @@ -64,7 +64,6 @@ func New( } return &DataCommitteeBackend{ dataCommitteeContract: dataCommittee, - l2Coinbase: l2Coinbase, privKey: privKey, dataCommitteeClientFactory: dataCommitteeClientFactory, ctx: context.Background(), @@ -88,10 +87,8 @@ func (d *DataCommitteeBackend) Init() error { return nil } -const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s" - -// GetData returns the data from the DAC. It checks that it matches with the expected hash -func (d *DataCommitteeBackend) GetData(batchNum uint64, hash common.Hash) ([]byte, error) { +// GetBatchL2Data returns the data from the DAC. It checks that it matches with the expected hash +func (d *DataCommitteeBackend) GetBatchL2Data(batchNum uint64, hash common.Hash) ([]byte, error) { intialMember := d.selectedCommitteeMember found := false for !found && intialMember != -1 { @@ -167,8 +164,10 @@ func (s *DataCommitteeBackend) PostSequence(ctx context.Context, batchesData [][ // Collect signatures msgs := []signatureMsg{} - var collectedSignatures uint64 - var failedToCollect uint64 + var ( + collectedSignatures uint64 + failedToCollect uint64 + ) for collectedSignatures < committee.RequiredSignatures { msg := <-ch if msg.err != nil { @@ -226,10 +225,14 @@ func requestSignatureFromMember(ctx context.Context, signedSequence daTypes.Sign } } -func buildSignaturesAndAddrs(msgs signatureMsgs, members []DataCommitteeMember) []byte { - res := []byte{} - sort.Sort(msgs) - for _, msg := range msgs { +func buildSignaturesAndAddrs(sigs signatureMsgs, members []DataCommitteeMember) []byte { + const ( + sigLen = 65 + addrLen = 20 + ) + res := make([]byte, 0, len(sigs)*sigLen+len(members)*addrLen) + sort.Sort(sigs) + for _, msg := range sigs { log.Debugf("adding signature %s from %s", common.Bytes2Hex(msg.signature), msg.addr.Hex()) res = append(res, msg.signature...) } @@ -273,11 +276,11 @@ func (d *DataCommitteeBackend) getCurrentDataCommittee() (*DataCommittee, error) // getCurrentDataCommitteeMembers return the currently registered data committee members func (d *DataCommitteeBackend) getCurrentDataCommitteeMembers() ([]DataCommitteeMember, error) { - members := []DataCommitteeMember{} nMembers, err := d.dataCommitteeContract.GetAmountOfMembers(&bind.CallOpts{Pending: false}) if err != nil { return nil, fmt.Errorf("error getting GetAmountOfMembers from L1 SC: %w", err) } + members := make([]DataCommitteeMember, 0, nMembers.Int64()) for i := int64(0); i < nMembers.Int64(); i++ { member, err := d.dataCommitteeContract.Members(&bind.CallOpts{Pending: false}, big.NewInt(i)) if err != nil { diff --git a/dataavailability/datacommittee/datacommittee_test.go b/dataavailability/datacommittee/datacommittee_test.go index 39ad8e5dce..0275b2fd96 100644 --- a/dataavailability/datacommittee/datacommittee_test.go +++ b/dataavailability/datacommittee/datacommittee_test.go @@ -17,7 +17,7 @@ import ( func TestUpdateDataCommitteeEvent(t *testing.T) { // Set up testing environment - dac, ethBackend, auth, da := newTestingEnv() + dac, ethBackend, auth, da := newTestingEnv(t) // Update the committee requiredAmountOfSignatures := big.NewInt(2) @@ -61,12 +61,13 @@ func init() { } // This function prepare the blockchain, the wallet with funds and deploy the smc -func newTestingEnv() ( +func newTestingEnv(t *testing.T) ( dac *DataCommitteeBackend, ethBackend *backends.SimulatedBackend, auth *bind.TransactOpts, da *polygondatacommittee.Polygondatacommittee, ) { + t.Helper() privateKey, err := crypto.GenerateKey() if err != nil { log.Fatal(err) @@ -75,7 +76,7 @@ func newTestingEnv() ( if err != nil { log.Fatal(err) } - dac, ethBackend, da, err = newSimulatedDacman(auth) + dac, ethBackend, da, err = newSimulatedDacman(t, auth) if err != nil { log.Fatal(err) } @@ -84,12 +85,13 @@ func newTestingEnv() ( // NewSimulatedEtherman creates an etherman that uses a simulated blockchain. It's important to notice that the ChainID of the auth // must be 1337. The address that holds the auth will have an initial balance of 10 ETH -func newSimulatedDacman(auth *bind.TransactOpts) ( +func newSimulatedDacman(t *testing.T, auth *bind.TransactOpts) ( dacman *DataCommitteeBackend, ethBackend *backends.SimulatedBackend, da *polygondatacommittee.Polygondatacommittee, err error, ) { + t.Helper() if auth == nil { // read only client return &DataCommitteeBackend{}, nil, nil, nil diff --git a/dataavailability/interfaces.go b/dataavailability/interfaces.go index 8feb7ddfd6..be5be102dc 100644 --- a/dataavailability/interfaces.go +++ b/dataavailability/interfaces.go @@ -13,13 +13,21 @@ type stateInterface interface { GetBatchByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.Batch, error) } -// DABackender is the interface for a DA backend -type DABackender interface { - // Init initializes the DABackend - Init() error - // GetData retrieve the data of a batch from the DA backend. The returned data must be the pre-image of the hash - GetData(batchNum uint64, hash common.Hash) ([]byte, error) +// BatchDataProvider is used to retrieve batch data +type BatchDataProvider interface { + // GetBatchL2Data retrieve the data of a batch from the DA backend. The returned data must be the pre-image of the hash + GetBatchL2Data(batchNum uint64, hash common.Hash) ([]byte, error) +} + +// SequenceSender is used to send provided sequence of batches +type SequenceSender interface { // PostSequence sends the sequence data to the data availability backend, and returns the dataAvailabilityMessage // as expected by the contract PostSequence(ctx context.Context, batchesData [][]byte) ([]byte, error) } +type DABackender interface { + BatchDataProvider + SequenceSender + // Init initializes the DABackend + Init() error +} diff --git a/docs/diff/diff.html b/docs/diff/diff.html index de4f4e99a7..82763a318d 100644 --- a/docs/diff/diff.html +++ b/docs/diff/diff.html @@ -54,7 +54,7 @@

zkEVM node vs CDK validium node

zkevm-node version: v0.5.0-RC4

<
- Files changed (47) + Files changed (46) hide show
@@ -90,7 +90,7 @@

zkEVM node vs CDK validium node

zkevm-node version: v0.5.0-RC4

< {../zkevm-node → .}/cmd/run.go - +88 + +93 -12 @@ -114,7 +114,7 @@

zkEVM node vs CDK validium node

zkevm-node version: v0.5.0-RC4

< {../zkevm-node → .}/config/default.go - +4 + +1 -0 @@ -174,7 +174,7 @@

zkEVM node vs CDK validium node

zkevm-node version: v0.5.0-RC4

< {../zkevm-node → .}/dataavailability/datacommittee/datacommittee.go - +292 + +295 -0 @@ -186,7 +186,7 @@

zkEVM node vs CDK validium node

zkevm-node version: v0.5.0-RC4

< {../zkevm-node → .}/dataavailability/datacommittee/datacommittee_test.go - +127 + +129 -0 @@ -198,23 +198,11 @@

zkEVM node vs CDK validium node

zkevm-node version: v0.5.0-RC4

< {../zkevm-node → .}/dataavailability/interfaces.go - +25 + +33 -0 -
  • - - {../zkevm-node → .}/db/migrations/pool/0011.sql - - +1 - -1 - - -
  • zkevm-node version: v0.5.0-RC4

    < {../zkevm-node → .}/etherman/etherman_test.go - +40 + +39 -23 @@ -7491,7 +7479,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -280,8 +288,74 @@
    +
    @@ -280,8 +288,79 @@
    @@ -8196,6 +8184,56 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + +
    @@ -8236,7 +8274,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -305,7 +379,7 @@
    +
    @@ -305,7 +384,7 @@
    @@ -8311,7 +8349,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -398,12 +472,12 @@
    +
    @@ -398,12 +477,12 @@
    @@ -8436,7 +8474,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -413,7 +487,12 @@
    +
    @@ -413,7 +492,12 @@
    @@ -8561,7 +8599,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -512,13 +591,13 @@
    +
    @@ -512,13 +596,13 @@
    @@ -9194,7 +9232,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - var trustedSequencerURL string + var (
    @@ -9204,7 +9242,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - var err error + trustedSequencerURL string
    @@ -9214,7 +9252,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if !c.IsTrustedSequencer { + err error
    @@ -9224,7 +9262,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if c.Synchronizer.TrustedSequencerURL != "" { + )
    @@ -9234,7 +9272,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - trustedSequencerURL = c.Synchronizer.TrustedSequencerURL + if !c.IsTrustedSequencer {
    @@ -9244,7 +9282,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } else { + if c.Synchronizer.TrustedSequencerURL != "" {
    @@ -9254,7 +9292,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Debug("getting trusted sequencer URL from smc") + trustedSequencerURL = c.Synchronizer.TrustedSequencerURL
    @@ -9264,7 +9302,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - trustedSequencerURL, err = etherman.GetTrustedSequencerURL() + } else {
    @@ -9274,7 +9312,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + log.Debug("getting trusted sequencer URL from smc")
    @@ -9284,7 +9322,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Fatal("error getting trusted sequencer URI. Error: %v", err) + trustedSequencerURL, err = etherman.GetTrustedSequencerURL()
    @@ -9294,7 +9332,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err != nil {
    @@ -9304,7 +9342,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return nil, fmt.Errorf("error getting trusted sequencer URI. Error: %v", err)
    @@ -9314,7 +9352,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Debug("trustedSequencerURL ", trustedSequencerURL) + }
    @@ -9324,7 +9362,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + }
    @@ -9334,7 +9372,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - zkEVMClient := client.NewClient(trustedSequencerURL) + log.Debug("trustedSequencerURL ", trustedSequencerURL)
    @@ -9344,7 +9382,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + }
    @@ -9354,7 +9392,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Backend specific config + zkEVMClient := client.NewClient(trustedSequencerURL)
    @@ -9364,7 +9402,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - daProtocolName, err := etherman.GetDAProtocolName() +
    @@ -9374,7 +9412,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + // Backend specific config
    @@ -9384,7 +9422,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Fatal("error getting data availability protocol name: %v", err) + daProtocolName, err := etherman.GetDAProtocolName()
    @@ -9394,7 +9432,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err != nil {
    @@ -9404,7 +9442,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - var daBackend dataavailability.DABackender + return nil, fmt.Errorf("error getting data availability protocol name: %v", err)
    @@ -9414,7 +9452,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - switch daProtocolName { + }
    @@ -9424,7 +9462,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - case string(dataavailability.DataAvailabilityCommittee): + var daBackend dataavailability.DABackender
    @@ -9434,7 +9472,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - var pk *ecdsa.PrivateKey + switch daProtocolName {
    @@ -9444,7 +9482,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - var err error + case string(dataavailability.DataAvailabilityCommittee):
    @@ -9454,7 +9492,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if isSequenceSender { + var (
    @@ -9464,7 +9502,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - _, pk, err = etherman.LoadAuthFromKeyStore(c.SequenceSender.PrivateKey.Path, c.SequenceSender.PrivateKey.Password) + pk *ecdsa.PrivateKey
    @@ -9474,7 +9512,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + err error
    @@ -9484,7 +9522,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Fatal(err) + )
    @@ -9494,7 +9532,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if isSequenceSender {
    @@ -9504,7 +9542,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + _, pk, err = etherman.LoadAuthFromKeyStore(c.SequenceSender.PrivateKey.Path, c.SequenceSender.PrivateKey.Password)
    @@ -9514,7 +9552,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dacAddr, err := etherman.GetDAProtocolAddr() + if err != nil {
    @@ -9524,7 +9562,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + return nil, err
    @@ -9534,7 +9572,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Fatal("error getting trusted sequencer URI. Error: %v", err) + }
    @@ -9554,7 +9592,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + dacAddr, err := etherman.GetDAProtocolAddr()
    @@ -9564,7 +9602,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - daBackend, err = datacommittee.New( + if err != nil {
    @@ -9574,7 +9612,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - c.Etherman.URL, + return nil, fmt.Errorf("error getting trusted sequencer URI. Error: %v", err)
    @@ -9584,7 +9622,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dacAddr, + }
    @@ -9594,7 +9632,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - c.SequenceSender.L2Coinbase, +
    @@ -9604,7 +9642,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - pk, + daBackend, err = datacommittee.New(
    @@ -9614,7 +9652,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - &dataCommitteeClient.Factory{}, + c.Etherman.URL,
    @@ -9624,7 +9662,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ) + dacAddr,
    @@ -9634,7 +9672,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + pk,
    @@ -9644,7 +9682,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, err + &dataCommitteeClient.Factory{},
    @@ -9654,7 +9692,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + )
    @@ -9664,7 +9702,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err != nil {
    @@ -9674,7 +9712,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + return nil, err
    @@ -9684,7 +9722,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return dataavailability.New( + }
    @@ -9694,7 +9732,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - c.IsTrustedSequencer, + default:
    @@ -9704,7 +9742,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - daBackend, + return nil, fmt.Errorf("unexpected / unsupported DA protocol: %s", daProtocolName)
    @@ -9714,7 +9752,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - st, + }
    @@ -9724,13 +9762,63 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - zkEVMClient, +
    358 + +
    + + + return dataavailability.New( +
    + + + + 359 + + +
    + + + c.IsTrustedSequencer, +
    + + + + 360 + + +
    + + + daBackend, +
    + + + + 361 + + +
    + + + st, +
    + + + + 362 + + +
    + + + zkEVMClient, +
    + + + + 363 +
    + @@ -9739,7 +9827,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 359 + 364
    @@ -9749,7 +9837,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 360 + 365
    @@ -9759,7 +9847,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 361 + 366
    @@ -9774,7 +9862,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 379 + 384
    @@ -9784,7 +9872,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 380 + 385
    @@ -9794,7 +9882,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 381 + 386
    @@ -9804,7 +9892,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 382 + 387
    @@ -9814,7 +9902,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 383 + 388
    @@ -9824,7 +9912,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 384 + 389
    @@ -9834,7 +9922,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 385 + 390
    @@ -9849,7 +9937,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 472 + 477
    @@ -9859,7 +9947,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 473 + 478
    @@ -9869,7 +9957,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 474 + 479
    @@ -9879,7 +9967,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 475 + 480
    @@ -9889,7 +9977,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 476 + 481
    @@ -9899,7 +9987,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 477 + 482
    @@ -9909,7 +9997,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 478 + 483
    @@ -9919,7 +10007,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 479 + 484
    @@ -9929,7 +10017,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 480 + 485
    @@ -9939,7 +10027,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 481 + 486
    @@ -9949,7 +10037,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 482 + 487
    @@ -9959,7 +10047,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 483 + 488
    @@ -9974,7 +10062,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 487 + 492
    @@ -9984,7 +10072,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 488 + 493
    @@ -9994,7 +10082,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 489 + 494
    @@ -10004,7 +10092,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 490 + 495
    @@ -10014,7 +10102,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 491 + 496
    @@ -10024,7 +10112,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 492 + 497
    @@ -10034,7 +10122,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 493 + 498
    @@ -10044,7 +10132,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 494 + 499
    @@ -10054,7 +10142,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 495 + 500
    @@ -10064,7 +10152,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 496 + 501
    @@ -10074,7 +10162,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 497 + 502
    @@ -10084,7 +10172,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 498 + 503
    @@ -10099,7 +10187,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 591 + 596
    @@ -10109,7 +10197,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 592 + 597
    @@ -10119,7 +10207,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 593 + 598
    @@ -10129,7 +10217,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 594 + 599
    @@ -10139,7 +10227,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 595 + 600
    @@ -10149,7 +10237,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 596 + 601
    @@ -10159,7 +10247,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 597 + 602
    @@ -10169,7 +10257,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 598 + 603
    @@ -10179,7 +10267,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 599 + 604
    @@ -10189,7 +10277,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 600 + 605
    @@ -10199,7 +10287,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 601 + 606
    @@ -10209,7 +10297,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 602 + 607
    @@ -10219,7 +10307,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < - 603 + 608
    @@ -11269,81 +11357,6 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < Host = "0.0.0.0"

    - - - -
    @@ -190,4 +191,7 @@
    - - - - 190 - - -
    -   - Port = "5432" -
    - - - - 191 - - -
    -   - EnableLog = false -
    - - - - 192 - - -
    -   - MaxConns = 200 -
    - - - - - - -
    -   -
    -
    - - - - - - -
    -   -
    -
    - - - - - - -
    -   -
    -
    - - - - 193 - - -
    -   - ` -
    - @@ -11428,81 +11441,6 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < Host = "0.0.0.0"

    - - - -
     
    - - - - 191 - - -
    -   - Port = "5432" -
    - - - - 192 - - -
    -   - EnableLog = false -
    - - - - 193 - - -
    -   - MaxConns = 200 -
    - - - - 194 - - -
    - + -
    -
    - - - - 195 - - -
    - + - [DataAvailability] -
    - - - - 196 - - -
    - + - Backend = "DataAvailabilityCommittee" -
    - - - - 197 - - -
    -   - ` -
    - @@ -13962,7 +13900,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // DataAvailability implements an abstract data avaiolability integration + const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s"
    @@ -13972,7 +13910,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - type DataAvailability struct { +
    @@ -13982,7 +13920,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - isTrustedSequencer bool + // DataAvailability implements an abstract data availability integration
    @@ -13992,7 +13930,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + type DataAvailability struct {
    @@ -14002,7 +13940,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - state stateInterface + isTrustedSequencer bool
    @@ -14012,7 +13950,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - zkEVMClient syncinterfaces.ZKEVMClientInterface +
    @@ -14022,7 +13960,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - backend DABackender + state stateInterface
    @@ -14032,7 +13970,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + zkEVMClient syncinterfaces.ZKEVMClientInterface
    @@ -14042,7 +13980,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ctx context.Context + backend DABackender
    @@ -14052,7 +13990,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } +
    @@ -14062,7 +14000,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + ctx context.Context
    @@ -14072,7 +14010,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // New creates a DataAvailability instance + }
    @@ -14082,7 +14020,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func New( +
    @@ -14092,7 +14030,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - IsTrustedSequencer bool, + // New creates a DataAvailability instance
    @@ -14102,7 +14040,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - backend DABackender, + func New(
    @@ -14112,7 +14050,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - state stateInterface, + isTrustedSequencer bool,
    @@ -14122,7 +14060,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - zkEVMClient syncinterfaces.ZKEVMClientInterface, + backend DABackender,
    @@ -14132,7 +14070,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ) (*DataAvailability, error) { + state stateInterface,
    @@ -14142,7 +14080,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - da := &DataAvailability{ + zkEVMClient syncinterfaces.ZKEVMClientInterface,
    @@ -14152,7 +14090,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - isTrustedSequencer: IsTrustedSequencer, + ) (*DataAvailability, error) {
    @@ -14162,7 +14100,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - backend: backend, + da := &DataAvailability{
    @@ -14172,7 +14110,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - state: state, + isTrustedSequencer: isTrustedSequencer,
    @@ -14182,7 +14120,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - zkEVMClient: zkEVMClient, + backend: backend,
    @@ -14192,7 +14130,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ctx: context.Background(), + state: state,
    @@ -14202,7 +14140,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + zkEVMClient: zkEVMClient,
    @@ -14212,7 +14150,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - err := da.backend.Init() + ctx: context.Background(),
    @@ -14222,7 +14160,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return da, err + }
    @@ -14232,7 +14170,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + err := da.backend.Init()
    @@ -14242,7 +14180,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + return da, err
    @@ -14252,7 +14190,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // PostSequence sends the sequence data to the data availability backend, and returns the dataAvailabilityMessage + }
    @@ -14262,7 +14200,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // as expected by the contract +
    @@ -14272,7 +14210,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (d *DataAvailability) PostSequence(ctx context.Context, sequences []types.Sequence) ([]byte, error) { + // PostSequence sends the sequence data to the data availability backend, and returns the dataAvailabilityMessage
    @@ -14282,7 +14220,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - batchesData := [][]byte{} + // as expected by the contract
    @@ -14292,7 +14230,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for _, batch := range sequences { + func (d *DataAvailability) PostSequence(ctx context.Context, sequences []types.Sequence) ([]byte, error) {
    @@ -14302,7 +14240,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Do not send to the DA backend data that will be stored to L1 + batchesData := [][]byte{}
    @@ -14312,7 +14250,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if batch.ForcedBatchTimestamp == 0 { + for _, batch := range sequences {
    @@ -14322,7 +14260,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - batchesData = append(batchesData, batch.BatchL2Data) + // Do not send to the DA backend data that will be stored to L1
    @@ -14332,7 +14270,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if batch.ForcedBatchTimestamp == 0 {
    @@ -14342,7 +14280,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + batchesData = append(batchesData, batch.BatchL2Data)
    @@ -14352,7 +14290,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return d.backend.PostSequence(ctx, batchesData) + }
    @@ -14362,7 +14300,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + }
    @@ -14372,7 +14310,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + return d.backend.PostSequence(ctx, batchesData)
    @@ -14382,7 +14320,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // GetBatchL2Data tries to return the data from a batch, in the following priorities + }
    @@ -14392,7 +14330,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // 1. From local DB +
    @@ -14402,7 +14340,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // 2. From Sequencer + // GetBatchL2Data tries to return the data from a batch, in the following priorities
    @@ -14412,7 +14350,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // 3. From DA backend + // 1. From local DB
    @@ -14422,7 +14360,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (d *DataAvailability) GetBatchL2Data(batchNum uint64, expectedTransactionsHash common.Hash) ([]byte, error) { + // 2. From Sequencer
    @@ -14432,7 +14370,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - found := true + // 3. From DA backend
    @@ -14442,7 +14380,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - transactionsData, err := d.state.GetBatchL2DataByNumber(d.ctx, batchNum, nil) + func (d *DataAvailability) GetBatchL2Data(batchNum uint64, expectedTransactionsHash common.Hash) ([]byte, error) {
    @@ -14452,7 +14390,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + found := true
    @@ -14462,7 +14400,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err == state.ErrNotFound { + transactionsData, err := d.state.GetBatchL2DataByNumber(d.ctx, batchNum, nil)
    @@ -14472,7 +14410,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - found = false + if err != nil {
    @@ -14482,7 +14420,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } else { + if err == state.ErrNotFound {
    @@ -14492,7 +14430,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("failed to get batch data from state for batch num %d: %w", batchNum, err) + found = false
    @@ -14502,7 +14440,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + } else {
    @@ -14512,7 +14450,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return nil, fmt.Errorf("failed to get batch data from state for batch num %d: %w", batchNum, err)
    @@ -14522,7 +14460,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - actualTransactionsHash := crypto.Keccak256Hash(transactionsData) + }
    @@ -14532,7 +14470,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if !found || expectedTransactionsHash != actualTransactionsHash { + }
    @@ -14542,7 +14480,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if found { + actualTransactionsHash := crypto.Keccak256Hash(transactionsData)
    @@ -14552,7 +14490,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Warnf(unexpectedHashTemplate, batchNum, expectedTransactionsHash, actualTransactionsHash) + if !found || expectedTransactionsHash != actualTransactionsHash {
    @@ -14562,7 +14500,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if found {
    @@ -14572,7 +14510,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + log.Warnf(unexpectedHashTemplate, batchNum, expectedTransactionsHash, actualTransactionsHash)
    @@ -14582,7 +14520,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if !d.isTrustedSequencer { + }
    @@ -14592,7 +14530,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Info("trying to get data from trusted sequencer") +
    @@ -14602,7 +14540,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - data, err := d.getDataFromTrustedSequencer(batchNum, expectedTransactionsHash) + if !d.isTrustedSequencer {
    @@ -14612,7 +14550,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + log.Info("trying to get data from trusted sequencer")
    @@ -14622,7 +14560,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Error(err) + data, err := d.getDataFromTrustedSequencer(batchNum, expectedTransactionsHash)
    @@ -14632,7 +14570,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } else { + if err != nil {
    @@ -14642,7 +14580,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return data, nil + log.Error("failed to get data from trusted sequencer: %w", err)
    @@ -14652,7 +14590,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + } else {
    @@ -14662,7 +14600,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return data, nil
    @@ -14672,7 +14610,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + }
    @@ -14682,7 +14620,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Info("trying to get data from the data availability backend") + }
    @@ -14692,7 +14630,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - data, err := d.backend.GetData(batchNum, expectedTransactionsHash) +
    @@ -14702,7 +14640,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + log.Info("trying to get data from the data availability backend")
    @@ -14712,7 +14650,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Error(err) + data, err := d.backend.GetBatchL2Data(batchNum, expectedTransactionsHash)
    @@ -14722,7 +14660,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if d.isTrustedSequencer { + if err != nil {
    @@ -14732,7 +14670,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("data not found on the local DB nor on any data committee member") + log.Error("failed to get data from the data availability backend: %w", err)
    @@ -14742,7 +14680,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } else { + if d.isTrustedSequencer {
    @@ -14752,7 +14690,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("data not found on the local DB, nor from the trusted sequencer nor on any data committee member") + return nil, fmt.Errorf("data not found on the local DB nor on any data committee member")
    @@ -14762,7 +14700,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + } else {
    @@ -14772,7 +14710,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return nil, fmt.Errorf("data not found on the local DB, nor from the trusted sequencer nor on any data committee member")
    @@ -14782,7 +14720,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return data, nil + }
    @@ -14792,7 +14730,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + }
    @@ -14802,7 +14740,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return transactionsData, nil + return data, nil
    @@ -14812,7 +14750,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + }
    @@ -14822,7 +14760,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + return transactionsData, nil
    @@ -14832,7 +14770,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s" + }
    @@ -14862,7 +14800,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - b, err := d.zkEVMClient.BatchByNumber(d.ctx, big.NewInt(int64(batchNum))) + b, err := d.zkEVMClient.BatchByNumber(d.ctx, new(big.Int).SetUint64(batchNum))
    @@ -15002,7 +14940,37 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -0,0 +1,292 @@
    +
    @@ -0,0 +1,295 @@
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    @@ -18165,7 +18133,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // DataCommitteeMember represents a member of the Data Committee + const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s"
    @@ -18175,7 +18143,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - type DataCommitteeMember struct { +
    @@ -18185,7 +18153,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - Addr common.Address + // DataCommitteeMember represents a member of the Data Committee
    @@ -18195,7 +18163,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - URL string + type DataCommitteeMember struct {
    @@ -18205,7 +18173,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + Addr common.Address
    @@ -18215,7 +18183,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + URL string
    @@ -18225,7 +18193,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // DataCommittee represents a specific committee + }
    @@ -18235,7 +18203,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - type DataCommittee struct { +
    @@ -18245,7 +18213,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - AddressesHash common.Hash + // DataCommittee represents a specific committee
    @@ -18255,7 +18223,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - Members []DataCommitteeMember + type DataCommittee struct {
    @@ -18265,7 +18233,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - RequiredSignatures uint64 + AddressesHash common.Hash
    @@ -18275,7 +18243,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + Members []DataCommitteeMember
    @@ -18285,7 +18253,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + RequiredSignatures uint64
    @@ -18295,7 +18263,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // DataCommitteeBackend implements the DAC integration + }
    @@ -18305,7 +18273,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - type DataCommitteeBackend struct { +
    @@ -18315,7 +18283,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dataCommitteeContract *polygondatacommittee.Polygondatacommittee + // DataCommitteeBackend implements the DAC integration
    @@ -18325,7 +18293,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - l2Coinbase common.Address + type DataCommitteeBackend struct {
    @@ -18335,7 +18303,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - privKey *ecdsa.PrivateKey + dataCommitteeContract *polygondatacommittee.Polygondatacommittee
    @@ -18345,7 +18313,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dataCommitteeClientFactory client.IClientFactory + privKey *ecdsa.PrivateKey
    @@ -18355,7 +18323,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + dataCommitteeClientFactory client.IClientFactory
    @@ -18365,7 +18333,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - committeeMembers []DataCommitteeMember +
    @@ -18375,7 +18343,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - selectedCommitteeMember int + committeeMembers []DataCommitteeMember
    @@ -18385,7 +18353,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ctx context.Context + selectedCommitteeMember int
    @@ -18395,7 +18363,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + ctx context.Context
    @@ -18405,7 +18373,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + }
    @@ -18415,7 +18383,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // New creates an instance of DataCommitteeBackend +
    @@ -18425,7 +18393,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func New( + // New creates an instance of DataCommitteeBackend
    @@ -18435,7 +18403,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - l1RPCURL string, + func New(
    @@ -18445,7 +18413,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dataCommitteeAddr common.Address, + l1RPCURL string,
    @@ -18455,7 +18423,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - l2Coinbase common.Address, + dataCommitteeAddr common.Address,
    @@ -18605,7 +18573,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - l2Coinbase: l2Coinbase, + privKey: privKey,
    @@ -18615,7 +18583,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - privKey: privKey, + dataCommitteeClientFactory: dataCommitteeClientFactory,
    @@ -18625,7 +18593,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dataCommitteeClientFactory: dataCommitteeClientFactory, + ctx: context.Background(),
    @@ -18635,7 +18603,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ctx: context.Background(), + }, nil
    @@ -18645,7 +18613,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - }, nil + }
    @@ -18655,7 +18623,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } +
    @@ -18665,7 +18633,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + // Init loads the DAC to be cached when needed
    @@ -18675,7 +18643,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Init loads the DAC to be cached when needed + func (d *DataCommitteeBackend) Init() error {
    @@ -18685,7 +18653,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (d *DataCommitteeBackend) Init() error { + committee, err := d.getCurrentDataCommittee()
    @@ -18695,7 +18663,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - committee, err := d.getCurrentDataCommittee() + if err != nil {
    @@ -18705,7 +18673,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + return err
    @@ -18715,7 +18683,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return err + }
    @@ -18725,7 +18693,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + selectedCommitteeMember := -1
    @@ -18735,7 +18703,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - selectedCommitteeMember := -1 + if committee != nil {
    @@ -18745,7 +18713,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if committee != nil { + d.committeeMembers = committee.Members
    @@ -18755,7 +18723,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - d.committeeMembers = committee.Members + if len(committee.Members) > 0 {
    @@ -18765,7 +18733,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if len(committee.Members) > 0 { + selectedCommitteeMember = rand.Intn(len(committee.Members)) //nolint:gosec
    @@ -18775,7 +18743,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - selectedCommitteeMember = rand.Intn(len(committee.Members)) //nolint:gosec + }
    @@ -18785,7 +18753,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + }
    @@ -18795,7 +18763,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + d.selectedCommitteeMember = selectedCommitteeMember
    @@ -18805,7 +18773,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - d.selectedCommitteeMember = selectedCommitteeMember + return nil
    @@ -18815,7 +18783,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil + }
    @@ -18825,7 +18793,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } +
    @@ -18835,7 +18803,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + // GetBatchL2Data returns the data from the DAC. It checks that it matches with the expected hash
    @@ -18845,7 +18813,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - const unexpectedHashTemplate = "missmatch on transaction data for batch num %d. Expected hash %s, actual hash: %s" + func (d *DataCommitteeBackend) GetBatchL2Data(batchNum uint64, hash common.Hash) ([]byte, error) {
    @@ -18855,7 +18823,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + intialMember := d.selectedCommitteeMember
    @@ -18865,7 +18833,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // GetData returns the data from the DAC. It checks that it matches with the expected hash + found := false
    @@ -18875,7 +18843,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (d *DataCommitteeBackend) GetData(batchNum uint64, hash common.Hash) ([]byte, error) { + for !found && intialMember != -1 {
    @@ -18885,7 +18853,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - intialMember := d.selectedCommitteeMember + member := d.committeeMembers[d.selectedCommitteeMember]
    @@ -18895,7 +18863,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - found := false + log.Infof("trying to get data from %s at %s", member.Addr.Hex(), member.URL)
    @@ -18905,7 +18873,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for !found && intialMember != -1 { + c := d.dataCommitteeClientFactory.New(member.URL)
    @@ -18915,7 +18883,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - member := d.committeeMembers[d.selectedCommitteeMember] + data, err := c.GetOffChainData(d.ctx, hash)
    @@ -18925,7 +18893,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Infof("trying to get data from %s at %s", member.Addr.Hex(), member.URL) + if err != nil {
    @@ -18935,7 +18903,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - c := d.dataCommitteeClientFactory.New(member.URL) + log.Warnf(
    @@ -18945,7 +18913,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - data, err := c.GetOffChainData(d.ctx, hash) + "error getting data from DAC node %s at %s: %s",
    @@ -18955,7 +18923,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + member.Addr.Hex(), member.URL, err,
    @@ -18965,7 +18933,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Warnf( + )
    @@ -18975,7 +18943,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - "error getting data from DAC node %s at %s: %s", + d.selectedCommitteeMember = (d.selectedCommitteeMember + 1) % len(d.committeeMembers)
    @@ -18985,7 +18953,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - member.Addr.Hex(), member.URL, err, + if d.selectedCommitteeMember == intialMember {
    @@ -18995,7 +18963,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ) + break
    @@ -19005,7 +18973,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - d.selectedCommitteeMember = (d.selectedCommitteeMember + 1) % len(d.committeeMembers) + }
    @@ -19015,7 +18983,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if d.selectedCommitteeMember == intialMember { + continue
    @@ -19025,7 +18993,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - break + }
    @@ -19035,7 +19003,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + actualTransactionsHash := crypto.Keccak256Hash(data)
    @@ -19045,7 +19013,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - continue + if actualTransactionsHash != hash {
    @@ -19055,7 +19023,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + unexpectedHash := fmt.Errorf(
    @@ -19065,7 +19033,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - actualTransactionsHash := crypto.Keccak256Hash(data) + unexpectedHashTemplate, batchNum, hash, actualTransactionsHash,
    @@ -19075,7 +19043,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if actualTransactionsHash != hash { + )
    @@ -19085,7 +19053,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - unexpectedHash := fmt.Errorf( + log.Warnf(
    @@ -19095,7 +19063,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - unexpectedHashTemplate, batchNum, hash, actualTransactionsHash, + "error getting data from DAC node %s at %s: %s",
    @@ -19105,7 +19073,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ) + member.Addr.Hex(), member.URL, unexpectedHash,
    @@ -19115,7 +19083,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Warnf( + )
    @@ -19125,7 +19093,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - "error getting data from DAC node %s at %s: %s", + d.selectedCommitteeMember = (d.selectedCommitteeMember + 1) % len(d.committeeMembers)
    @@ -19135,7 +19103,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - member.Addr.Hex(), member.URL, unexpectedHash, + if d.selectedCommitteeMember == intialMember {
    @@ -19145,7 +19113,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ) + break
    @@ -19155,7 +19123,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - d.selectedCommitteeMember = (d.selectedCommitteeMember + 1) % len(d.committeeMembers) + }
    @@ -19165,7 +19133,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if d.selectedCommitteeMember == intialMember { + continue
    @@ -19175,7 +19143,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - break + }
    @@ -19185,7 +19153,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return data, nil
    @@ -19195,7 +19163,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - continue + }
    @@ -19205,7 +19173,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err := d.Init(); err != nil {
    @@ -19215,7 +19183,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return data, nil + return nil, fmt.Errorf("error loading data committee: %s", err)
    @@ -19235,7 +19203,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err := d.Init(); err != nil { + return nil, fmt.Errorf("couldn't get the data from any committee member")
    @@ -19245,7 +19213,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("error loading data committee: %s", err) + }
    @@ -19255,7 +19223,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } +
    @@ -19265,7 +19233,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("couldn't get the data from any committee member") + type signatureMsg struct {
    @@ -19275,7 +19243,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + addr common.Address
    @@ -19285,7 +19253,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + signature []byte
    @@ -19295,7 +19263,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - type signatureMsg struct { + err error
    @@ -19305,7 +19273,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - addr common.Address + }
    @@ -19315,7 +19283,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - signature []byte +
    @@ -19325,7 +19293,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - err error + // PostSequence sends the sequence data to the data availability backend, and returns the dataAvailabilityMessage
    @@ -19335,7 +19303,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + // as expected by the contract
    @@ -19345,7 +19313,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + func (s *DataCommitteeBackend) PostSequence(ctx context.Context, batchesData [][]byte) ([]byte, error) {
    @@ -19355,7 +19323,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // PostSequence sends the sequence data to the data availability backend, and returns the dataAvailabilityMessage + // Get current committee
    @@ -19365,7 +19333,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // as expected by the contract + committee, err := s.getCurrentDataCommittee()
    @@ -19375,7 +19343,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (s *DataCommitteeBackend) PostSequence(ctx context.Context, batchesData [][]byte) ([]byte, error) { + if err != nil {
    @@ -19385,7 +19353,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Get current committee + return nil, err
    @@ -19395,7 +19363,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - committee, err := s.getCurrentDataCommittee() + }
    @@ -19405,7 +19373,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { +
    @@ -19415,7 +19383,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, err + // Authenticate as trusted sequencer by signing the sequences
    @@ -19425,7 +19393,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + sequence := daTypes.Sequence{}
    @@ -19435,7 +19403,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + for _, seq := range batchesData {
    @@ -19445,7 +19413,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Authenticate as trusted sequencer by signing the sequences + sequence = append(sequence, seq)
    @@ -19455,7 +19423,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - sequence := daTypes.Sequence{} + }
    @@ -19465,7 +19433,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for _, seq := range batchesData { + signedSequence, err := sequence.Sign(s.privKey)
    @@ -19475,7 +19443,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - sequence = append(sequence, seq) + if err != nil {
    @@ -19485,7 +19453,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return nil, err
    @@ -19495,7 +19463,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - signedSequence, err := sequence.Sign(s.privKey) + }
    @@ -19505,7 +19473,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { +
    @@ -19515,7 +19483,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, err + // Request signatures to all members in parallel
    @@ -19525,7 +19493,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + ch := make(chan signatureMsg, len(committee.Members))
    @@ -19535,7 +19503,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + signatureCtx, cancelSignatureCollection := context.WithCancel(ctx)
    @@ -19545,7 +19513,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Request signatures to all members in parallel + for _, member := range committee.Members {
    @@ -19555,7 +19523,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ch := make(chan signatureMsg, len(committee.Members)) + go requestSignatureFromMember(signatureCtx, *signedSequence, member, ch)
    @@ -19565,7 +19533,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - signatureCtx, cancelSignatureCollection := context.WithCancel(ctx) + }
    @@ -19575,7 +19543,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for _, member := range committee.Members { +
    @@ -19585,7 +19553,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - go requestSignatureFromMember(signatureCtx, *signedSequence, member, ch) + // Collect signatures
    @@ -19595,7 +19563,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + msgs := []signatureMsg{}
    @@ -19605,7 +19573,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + var (
    @@ -19615,7 +19583,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Collect signatures + collectedSignatures uint64
    @@ -19625,7 +19593,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - msgs := []signatureMsg{} + failedToCollect uint64
    @@ -19635,7 +19603,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - var collectedSignatures uint64 + )
    @@ -19645,7 +19613,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - var failedToCollect uint64 + for collectedSignatures < committee.RequiredSignatures {
    @@ -19655,7 +19623,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for collectedSignatures < committee.RequiredSignatures { + msg := <-ch
    @@ -19665,7 +19633,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - msg := <-ch + if msg.err != nil {
    @@ -19675,7 +19643,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if msg.err != nil { + log.Errorf("error when trying to get signature from %s: %s", msg.addr, msg.err)
    @@ -19685,7 +19653,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Errorf("error when trying to get signature from %s: %s", msg.addr, msg.err) + failedToCollect++
    @@ -19695,7 +19663,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - failedToCollect++ + if len(committee.Members)-int(failedToCollect) < int(committee.RequiredSignatures) {
    @@ -19705,7 +19673,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if len(committee.Members)-int(failedToCollect) < int(committee.RequiredSignatures) { + cancelSignatureCollection()
    @@ -19715,7 +19683,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - cancelSignatureCollection() + return nil, errors.New("too many members failed to send their signature")
    @@ -19725,7 +19693,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, errors.New("too many members failed to send their signature") + }
    @@ -19735,7 +19703,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + } else {
    @@ -19745,7 +19713,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } else { + log.Infof("received signature from %s", msg.addr)
    @@ -19755,7 +19723,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Infof("received signature from %s", msg.addr) + collectedSignatures++
    @@ -19765,7 +19733,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - collectedSignatures++ + }
    @@ -19775,7 +19743,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + msgs = append(msgs, msg)
    @@ -19785,7 +19753,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - msgs = append(msgs, msg) + }
    @@ -19795,7 +19763,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } +
    @@ -19805,7 +19773,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + // Stop requesting as soon as we have N valid signatures
    @@ -19815,7 +19783,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Stop requesting as soon as we have N valid signatures + cancelSignatureCollection()
    @@ -19825,7 +19793,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - cancelSignatureCollection() +
    @@ -19835,7 +19803,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + return buildSignaturesAndAddrs(signatureMsgs(msgs), committee.Members), nil
    @@ -19845,7 +19813,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return buildSignaturesAndAddrs(signatureMsgs(msgs), committee.Members), nil + }
    @@ -19855,7 +19823,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } +
    @@ -19865,7 +19833,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + func requestSignatureFromMember(ctx context.Context, signedSequence daTypes.SignedSequence, member DataCommitteeMember, ch chan signatureMsg) {
    @@ -19875,7 +19843,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func requestSignatureFromMember(ctx context.Context, signedSequence daTypes.SignedSequence, member DataCommitteeMember, ch chan signatureMsg) { + // request
    @@ -19885,7 +19853,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // request + c := client.New(member.URL)
    @@ -19895,7 +19863,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - c := client.New(member.URL) + log.Infof("sending request to sign the sequence to %s at %s", member.Addr.Hex(), member.URL)
    @@ -19905,7 +19873,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Infof("sending request to sign the sequence to %s at %s", member.Addr.Hex(), member.URL) + signature, err := c.SignSequence(signedSequence)
    @@ -19915,7 +19883,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - signature, err := c.SignSequence(signedSequence) + if err != nil {
    @@ -19925,7 +19893,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + ch <- signatureMsg{
    @@ -19935,7 +19903,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ch <- signatureMsg{ + addr: member.Addr,
    @@ -19945,7 +19913,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - addr: member.Addr, + err: err,
    @@ -19955,7 +19923,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - err: err, + }
    @@ -19965,7 +19933,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return
    @@ -19975,7 +19943,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return + }
    @@ -19985,7 +19953,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + // verify returned signature
    @@ -19995,7 +19963,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // verify returned signature + signedSequence.Signature = signature
    @@ -20005,7 +19973,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - signedSequence.Signature = signature + signer, err := signedSequence.Signer()
    @@ -20015,7 +19983,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - signer, err := signedSequence.Signer() + if err != nil {
    @@ -20025,7 +19993,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + ch <- signatureMsg{
    @@ -20035,7 +20003,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ch <- signatureMsg{ + addr: member.Addr,
    @@ -20045,7 +20013,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - addr: member.Addr, + err: err,
    @@ -20055,7 +20023,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - err: err, + }
    @@ -20065,7 +20033,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return
    @@ -20075,7 +20043,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return + }
    @@ -20085,7 +20053,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if signer != member.Addr {
    @@ -20095,7 +20063,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if signer != member.Addr { + ch <- signatureMsg{
    @@ -20105,7 +20073,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ch <- signatureMsg{ + addr: member.Addr,
    @@ -20115,7 +20083,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - addr: member.Addr, + err: fmt.Errorf("invalid signer. Expected %s, actual %s", member.Addr.Hex(), signer.Hex()),
    @@ -20125,7 +20093,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - err: fmt.Errorf("invalid signer. Expected %s, actual %s", member.Addr.Hex(), signer.Hex()), + }
    @@ -20135,7 +20103,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return
    @@ -20145,7 +20113,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return + }
    @@ -20155,7 +20123,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + ch <- signatureMsg{
    @@ -20165,7 +20133,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ch <- signatureMsg{ + addr: member.Addr,
    @@ -20175,7 +20143,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - addr: member.Addr, + signature: signature,
    @@ -20185,7 +20153,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - signature: signature, + }
    @@ -20195,7 +20163,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + }
    @@ -20205,7 +20173,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } +
    @@ -20215,7 +20183,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + func buildSignaturesAndAddrs(sigs signatureMsgs, members []DataCommitteeMember) []byte {
    @@ -20225,7 +20193,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func buildSignaturesAndAddrs(msgs signatureMsgs, members []DataCommitteeMember) []byte { + const (
    @@ -20235,7 +20203,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - res := []byte{} + sigLen = 65
    @@ -20245,7 +20213,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - sort.Sort(msgs) + addrLen = 20
    @@ -20255,7 +20223,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for _, msg := range msgs { + )
    @@ -20265,7 +20233,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Debugf("adding signature %s from %s", common.Bytes2Hex(msg.signature), msg.addr.Hex()) + res := make([]byte, 0, len(sigs)*sigLen+len(members)*addrLen)
    @@ -20275,7 +20243,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - res = append(res, msg.signature...) + sort.Sort(sigs)
    @@ -20285,7 +20253,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + for _, msg := range sigs {
    @@ -20295,7 +20263,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for _, member := range members { + log.Debugf("adding signature %s from %s", common.Bytes2Hex(msg.signature), msg.addr.Hex())
    @@ -20305,7 +20273,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Debugf("adding addr %s", common.Bytes2Hex(member.Addr.Bytes())) + res = append(res, msg.signature...)
    @@ -20315,7 +20283,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - res = append(res, member.Addr.Bytes()...) + }
    @@ -20325,7 +20293,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + for _, member := range members {
    @@ -20335,7 +20303,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Debugf("full res %s", common.Bytes2Hex(res)) + log.Debugf("adding addr %s", common.Bytes2Hex(member.Addr.Bytes()))
    @@ -20345,7 +20313,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return res + res = append(res, member.Addr.Bytes()...)
    @@ -20355,7 +20323,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + }
    @@ -20365,7 +20333,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + log.Debugf("full res %s", common.Bytes2Hex(res))
    @@ -20375,7 +20343,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - type signatureMsgs []signatureMsg + return res
    @@ -20385,7 +20353,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + }
    @@ -20395,7 +20363,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (s signatureMsgs) Len() int { return len(s) } +
    @@ -20405,7 +20373,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (s signatureMsgs) Less(i, j int) bool { + type signatureMsgs []signatureMsg
    @@ -20415,7 +20383,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return strings.ToUpper(s[i].addr.Hex()) < strings.ToUpper(s[j].addr.Hex()) +
    @@ -20425,7 +20393,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + func (s signatureMsgs) Len() int { return len(s) }
    @@ -20435,7 +20403,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (s signatureMsgs) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + func (s signatureMsgs) Less(i, j int) bool {
    @@ -20445,7 +20413,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + return strings.ToUpper(s[i].addr.Hex()) < strings.ToUpper(s[j].addr.Hex())
    @@ -20455,7 +20423,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // getCurrentDataCommittee return the currently registered data committee + }
    @@ -20465,7 +20433,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (d *DataCommitteeBackend) getCurrentDataCommittee() (*DataCommittee, error) { + func (s signatureMsgs) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
    @@ -20475,7 +20443,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - addrsHash, err := d.dataCommitteeContract.CommitteeHash(&bind.CallOpts{Pending: false}) +
    @@ -20485,7 +20453,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + // getCurrentDataCommittee return the currently registered data committee
    @@ -20495,7 +20463,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("error getting CommitteeHash from L1 SC: %w", err) + func (d *DataCommitteeBackend) getCurrentDataCommittee() (*DataCommittee, error) {
    @@ -20505,7 +20473,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + addrsHash, err := d.dataCommitteeContract.CommitteeHash(&bind.CallOpts{Pending: false})
    @@ -20515,7 +20483,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - reqSign, err := d.dataCommitteeContract.RequiredAmountOfSignatures(&bind.CallOpts{Pending: false}) + if err != nil {
    @@ -20525,7 +20493,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + return nil, fmt.Errorf("error getting CommitteeHash from L1 SC: %w", err)
    @@ -20535,7 +20503,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("error getting RequiredAmountOfSignatures from L1 SC: %w", err) + }
    @@ -20545,7 +20513,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + reqSign, err := d.dataCommitteeContract.RequiredAmountOfSignatures(&bind.CallOpts{Pending: false})
    @@ -20555,7 +20523,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - members, err := d.getCurrentDataCommitteeMembers() + if err != nil {
    @@ -20565,7 +20533,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + return nil, fmt.Errorf("error getting RequiredAmountOfSignatures from L1 SC: %w", err)
    @@ -20575,7 +20543,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, err + }
    @@ -20585,7 +20553,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + members, err := d.getCurrentDataCommitteeMembers()
    @@ -20595,7 +20563,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + if err != nil {
    @@ -20605,7 +20573,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return &DataCommittee{ + return nil, err
    @@ -20615,7 +20583,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - AddressesHash: common.Hash(addrsHash), + }
    @@ -20625,7 +20593,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - RequiredSignatures: reqSign.Uint64(), +
    @@ -20635,7 +20603,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - Members: members, + return &DataCommittee{
    @@ -20645,7 +20613,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - }, nil + AddressesHash: common.Hash(addrsHash),
    @@ -20655,7 +20623,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + RequiredSignatures: reqSign.Uint64(),
    @@ -20665,7 +20633,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + Members: members,
    @@ -20675,7 +20643,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // getCurrentDataCommitteeMembers return the currently registered data committee members + }, nil
    @@ -20685,7 +20653,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func (d *DataCommitteeBackend) getCurrentDataCommitteeMembers() ([]DataCommitteeMember, error) { + }
    @@ -20695,7 +20663,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - members := []DataCommitteeMember{} +
    @@ -20705,7 +20673,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - nMembers, err := d.dataCommitteeContract.GetAmountOfMembers(&bind.CallOpts{Pending: false}) + // getCurrentDataCommitteeMembers return the currently registered data committee members
    @@ -20715,7 +20683,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + func (d *DataCommitteeBackend) getCurrentDataCommitteeMembers() ([]DataCommitteeMember, error) {
    @@ -20725,7 +20693,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("error getting GetAmountOfMembers from L1 SC: %w", err) + nMembers, err := d.dataCommitteeContract.GetAmountOfMembers(&bind.CallOpts{Pending: false})
    @@ -20735,7 +20703,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err != nil {
    @@ -20745,7 +20713,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - for i := int64(0); i < nMembers.Int64(); i++ { + return nil, fmt.Errorf("error getting GetAmountOfMembers from L1 SC: %w", err)
    @@ -20755,7 +20723,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - member, err := d.dataCommitteeContract.Members(&bind.CallOpts{Pending: false}, big.NewInt(i)) + }
    @@ -20765,7 +20733,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + members := make([]DataCommitteeMember, 0, nMembers.Int64())
    @@ -20775,7 +20743,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return nil, fmt.Errorf("error getting Members %d from L1 SC: %w", i, err) + for i := int64(0); i < nMembers.Int64(); i++ {
    @@ -20785,7 +20753,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + member, err := d.dataCommitteeContract.Members(&bind.CallOpts{Pending: false}, big.NewInt(i))
    @@ -20795,7 +20763,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - members = append(members, DataCommitteeMember{ + if err != nil {
    @@ -20805,7 +20773,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - Addr: member.Addr, + return nil, fmt.Errorf("error getting Members %d from L1 SC: %w", i, err)
    @@ -20815,7 +20783,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - URL: member.Url, + }
    @@ -20825,7 +20793,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - }) + members = append(members, DataCommitteeMember{
    @@ -20835,7 +20803,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + Addr: member.Addr,
    @@ -20845,13 +20813,43 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return members, nil + URL: member.Url,
    292 + +
    + + + }) +
    + + + + 293 + + +
    + + + } +
    + + + + 294 + + +
    + + + return members, nil +
    + + + + 295 +
    + @@ -20885,7 +20883,27 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -0,0 +1,127 @@
    +
    @@ -0,0 +1,129 @@
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    @@ -22368,7 +22386,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dac, ethBackend, auth, da := newTestingEnv() + dac, ethBackend, auth, da := newTestingEnv(t)
    @@ -22808,7 +22826,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func newTestingEnv() ( + func newTestingEnv(t *testing.T) (
    @@ -22868,7 +22886,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - privateKey, err := crypto.GenerateKey() + t.Helper()
    @@ -22878,7 +22896,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + privateKey, err := crypto.GenerateKey()
    @@ -22888,7 +22906,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Fatal(err) + if err != nil {
    @@ -22898,7 +22916,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + log.Fatal(err)
    @@ -22908,7 +22926,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - auth, err = bind.NewKeyedTransactorWithChainID(privateKey, big.NewInt(1337)) + }
    @@ -22918,7 +22936,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + auth, err = bind.NewKeyedTransactorWithChainID(privateKey, big.NewInt(1337))
    @@ -22928,7 +22946,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Fatal(err) + if err != nil {
    @@ -22938,7 +22956,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + log.Fatal(err)
    @@ -22948,7 +22966,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dac, ethBackend, da, err = newSimulatedDacman(auth) + }
    @@ -22958,7 +22976,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + dac, ethBackend, da, err = newSimulatedDacman(t, auth)
    @@ -22968,7 +22986,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - log.Fatal(err) + if err != nil {
    @@ -22978,7 +22996,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + log.Fatal(err)
    @@ -22988,7 +23006,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return dac, ethBackend, auth, da + }
    @@ -22998,7 +23016,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + return dac, ethBackend, auth, da
    @@ -23008,7 +23026,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + }
    @@ -23018,7 +23036,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // NewSimulatedEtherman creates an etherman that uses a simulated blockchain. It's important to notice that the ChainID of the auth +
    @@ -23028,7 +23046,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // must be 1337. The address that holds the auth will have an initial balance of 10 ETH + // NewSimulatedEtherman creates an etherman that uses a simulated blockchain. It's important to notice that the ChainID of the auth
    @@ -23038,7 +23056,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - func newSimulatedDacman(auth *bind.TransactOpts) ( + // must be 1337. The address that holds the auth will have an initial balance of 10 ETH
    @@ -23048,7 +23066,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dacman *DataCommitteeBackend, + func newSimulatedDacman(t *testing.T, auth *bind.TransactOpts) (
    @@ -23058,7 +23076,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ethBackend *backends.SimulatedBackend, + dacman *DataCommitteeBackend,
    @@ -23068,7 +23086,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - da *polygondatacommittee.Polygondatacommittee, + ethBackend *backends.SimulatedBackend,
    @@ -23078,7 +23096,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - err error, + da *polygondatacommittee.Polygondatacommittee,
    @@ -23088,7 +23106,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - ) { + err error,
    @@ -23098,7 +23116,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if auth == nil { + ) {
    @@ -23108,7 +23126,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // read only client + t.Helper()
    @@ -23118,7 +23136,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return &DataCommitteeBackend{}, nil, nil, nil + if auth == nil {
    @@ -23128,7 +23146,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + // read only client
    @@ -23138,7 +23156,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // 10000000 ETH in wei + return &DataCommitteeBackend{}, nil, nil, nil
    @@ -23148,7 +23166,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - balance, _ := new(big.Int).SetString("10000000000000000000000000", 10) //nolint:gomnd + }
    @@ -23158,7 +23176,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - address := auth.From + // 10000000 ETH in wei
    @@ -23168,7 +23186,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - genesisAlloc := map[common.Address]core.GenesisAccount{ + balance, _ := new(big.Int).SetString("10000000000000000000000000", 10) //nolint:gomnd
    @@ -23178,7 +23196,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - address: { + address := auth.From
    @@ -23188,7 +23206,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - Balance: balance, + genesisAlloc := map[common.Address]core.GenesisAccount{
    @@ -23198,7 +23216,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - }, + address: {
    @@ -23208,7 +23226,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + Balance: balance,
    @@ -23218,7 +23236,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - blockGasLimit := uint64(999999999999999999) //nolint:gomnd + },
    @@ -23228,7 +23246,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - client := backends.NewSimulatedBackend(genesisAlloc, blockGasLimit) + }
    @@ -23238,7 +23256,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + blockGasLimit := uint64(999999999999999999) //nolint:gomnd
    @@ -23248,7 +23266,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // DAC Setup + client := backends.NewSimulatedBackend(genesisAlloc, blockGasLimit)
    @@ -23258,7 +23276,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - _, _, da, err = polygondatacommittee.DeployPolygondatacommittee(auth, client) +
    @@ -23268,7 +23286,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + // DAC Setup
    @@ -23278,7 +23296,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return &DataCommitteeBackend{}, nil, nil, err + _, _, da, err = polygondatacommittee.DeployPolygondatacommittee(auth, client)
    @@ -23288,7 +23306,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err != nil {
    @@ -23298,7 +23316,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - _, err = da.Initialize(auth) + return &DataCommitteeBackend{}, nil, nil, err
    @@ -23308,7 +23326,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + }
    @@ -23318,7 +23336,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return &DataCommitteeBackend{}, nil, nil, err + _, err = da.Initialize(auth)
    @@ -23328,7 +23346,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err != nil {
    @@ -23338,7 +23356,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - _, err = da.SetupCommittee(auth, big.NewInt(0), []string{}, []byte{}) + return &DataCommitteeBackend{}, nil, nil, err
    @@ -23348,7 +23366,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - if err != nil { + }
    @@ -23358,7 +23376,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return &DataCommitteeBackend{}, nil, nil, err + _, err = da.SetupCommittee(auth, big.NewInt(0), []string{}, []byte{})
    @@ -23368,7 +23386,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + if err != nil {
    @@ -23378,7 +23396,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - client.Commit() + return &DataCommitteeBackend{}, nil, nil, err
    @@ -23388,7 +23406,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + -
    + }
    @@ -23398,7 +23416,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - c := &DataCommitteeBackend{ + client.Commit()
    @@ -23408,7 +23426,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - dataCommitteeContract: da, +
    @@ -23418,7 +23436,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } + c := &DataCommitteeBackend{
    @@ -23428,13 +23446,33 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - return c, client, da, nil + dataCommitteeContract: da,
    127 + +
    + + + } +
    + + + + 128 + + +
    + + + return c, client, da, nil +
    + + + + 129 +
    + @@ -23468,7 +23506,87 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    < -
    @@ -0,0 +1,25 @@
    +
    @@ -0,0 +1,33 @@
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    + + + + + + +
    +   +
    +
    @@ -23891,7 +24009,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // DABackender is the interface for a DA backend + // BatchDataProvider is used to retrieve batch data
    @@ -23901,7 +24019,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - type DABackender interface { + type BatchDataProvider interface {
    @@ -23911,7 +24029,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // Init initializes the DABackend + // GetBatchL2Data retrieve the data of a batch from the DA backend. The returned data must be the pre-image of the hash
    @@ -23921,7 +24039,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - Init() error + GetBatchL2Data(batchNum uint64, hash common.Hash) ([]byte, error)
    @@ -23931,7 +24049,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // GetData retrieve the data of a batch from the DA backend. The returned data must be the pre-image of the hash + }
    @@ -23941,7 +24059,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - GetData(batchNum uint64, hash common.Hash) ([]byte, error) +
    @@ -23951,7 +24069,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // PostSequence sends the sequence data to the data availability backend, and returns the dataAvailabilityMessage + // SequenceSender is used to send provided sequence of batches
    @@ -23961,7 +24079,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - // as expected by the contract + type SequenceSender interface {
    @@ -23971,7 +24089,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - PostSequence(ctx context.Context, batchesData [][]byte) ([]byte, error) + // PostSequence sends the sequence data to the data availability backend, and returns the dataAvailabilityMessage
    @@ -23981,150 +24099,87 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <
    + - } -
    - - - - -

    -

    -

    -

    -
    -
    - - {../zkevm-node → .}/db/migrations/pool/0011.sql - RENAMED - -
    -
    -
    -
    - - - - - - - - - - - - - - - - - - - -
    -
    @@ -1,5 +1,5 @@
    -
    - 1 - -
    -   - -- +migrate Up -
    -
    - 2 - -
    - - - CREATE TABLE pool.whitelisted ( + // as expected by the contract
    - 3 + + 26 +
    -   - addr VARCHAR PRIMARY KEY + + + PostSequence(ctx context.Context, batchesData [][]byte) ([]byte, error)
    - 4 + + 27 +
    -   - ); + + + }
    - 5 + + 28 +
    -   -
    -
    -
    -
    + + + type DABackender interface {
    -
    -
    - - - - - - - - - - - - - - - @@ -24672,7 +24727,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - - - @@ -29630,7 +29675,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - - - @@ -33324,7 +33359,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    @@ -53103,7 +53138,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    diff --git a/docs/diff/diff.md b/docs/diff/diff.md index 7193cb8044..ba9fecf4ff 100644 --- a/docs/diff/diff.md +++ b/docs/diff/diff.md @@ -1,6 +1,6 @@ # Diff -This repo is a fork from [zkevm-node](/~https://github.com/0xPolygonHermez.zkevm-node). The puirpose of the fork is to implement tha Validium consensus, enabling data availability to be posted outside of L1. +This repo is a fork from [zkevm-node](/~https://github.com/0xPolygonHermez.zkevm-node). The purpose of the fork is to implement tha Validium consensus, enabling data availability to be posted outside of L1. In order to document the code diff the [diff2html-cli](https://www.npmjs.com/package/diff2html-cli) tool is used. An html file is included in the repo [here](./diff.html). This file has been generated running the following command: diff --git a/etherman/etherman.go b/etherman/etherman.go index 0a7516c1b8..e0dca517c3 100644 --- a/etherman/etherman.go +++ b/etherman/etherman.go @@ -13,6 +13,7 @@ import ( "strings" "time" + "github.com/0xPolygonHermez/zkevm-node/dataavailability" "github.com/0xPolygonHermez/zkevm-node/encoding" "github.com/0xPolygonHermez/zkevm-node/etherman/etherscan" "github.com/0xPolygonHermez/zkevm-node/etherman/ethgasstation" @@ -189,11 +190,11 @@ type Client struct { cfg Config auth map[common.Address]bind.TransactOpts // empty in case of read-only client - da dataAvailabilitier + da dataavailability.BatchDataProvider } // NewClient creates a new etherman. -func NewClient(cfg Config, l1Config L1Config, da dataAvailabilitier) (*Client, error) { +func NewClient(cfg Config, l1Config L1Config, da dataavailability.BatchDataProvider) (*Client, error) { // Connect to ethereum node ethClient, err := ethclient.Dial(cfg.URL) if err != nil { @@ -1207,7 +1208,7 @@ func (etherMan *Client) sequencedBatchesPreEtrogEvent(ctx context.Context, vLog return nil } -func decodeSequences(txData []byte, lastBatchNumber uint64, sequencer common.Address, txHash common.Hash, nonce uint64, l1InfoRoot common.Hash, da dataAvailabilitier) ([]SequencedBatch, error) { +func decodeSequences(txData []byte, lastBatchNumber uint64, sequencer common.Address, txHash common.Hash, nonce uint64, l1InfoRoot common.Hash, da dataavailability.BatchDataProvider) ([]SequencedBatch, error) { // Extract coded txs. // Load contract ABI smcAbi, err := abi.JSON(strings.NewReader(polygonzkevm.PolygonzkevmABI)) diff --git a/etherman/interfaces.go b/etherman/interfaces.go index cfce7acd40..07d86de3d7 100644 --- a/etherman/interfaces.go +++ b/etherman/interfaces.go @@ -2,6 +2,6 @@ package etherman import "github.com/ethereum/go-ethereum/common" -type dataAvailabilitier interface { +type dataAvailabilityProvider interface { GetBatchL2Data(batchNum uint64, hash common.Hash) ([]byte, error) } diff --git a/etherman/simulated.go b/etherman/simulated.go index 408ef35a4d..d78d32ae48 100644 --- a/etherman/simulated.go +++ b/etherman/simulated.go @@ -23,7 +23,7 @@ import ( // NewSimulatedEtherman creates an etherman that uses a simulated blockchain. It's important to notice that the ChainID of the auth // must be 1337. The address that holds the auth will have an initial balance of 10 ETH -func NewSimulatedEtherman(cfg Config, auth *bind.TransactOpts, daBackend dataAvailabilitier) (etherman *Client, ethBackend *backends.SimulatedBackend, polAddr common.Address, br *polygonzkevmbridge.Polygonzkevmbridge, err error) { +func NewSimulatedEtherman(cfg Config, auth *bind.TransactOpts, daBackend dataAvailabilityProvider) (etherman *Client, ethBackend *backends.SimulatedBackend, polAddr common.Address, br *polygonzkevmbridge.Polygonzkevmbridge, err error) { if auth == nil { // read only client return &Client{}, nil, common.Address{}, nil, nil diff --git a/state/pgstatestorage/pgstatestorage.go b/state/pgstatestorage/pgstatestorage.go index 2027636976..71b7413588 100644 --- a/state/pgstatestorage/pgstatestorage.go +++ b/state/pgstatestorage/pgstatestorage.go @@ -356,7 +356,7 @@ func (p *PostgresStorage) GetNativeBlockHashesInRange(ctx context.Context, fromB // GetBatchL2DataByNumber returns the batch L2 data of the given batch number. func (p *PostgresStorage) GetBatchL2DataByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) ([]byte, error) { - getBatchL2DataByBatchNumber := "SELECT raw_txs_data FROM state.batch WHERE batch_num = $1" + const getBatchL2DataByBatchNumber = "SELECT raw_txs_data FROM state.batch WHERE batch_num = $1" q := p.getExecQuerier(dbTx) var batchL2Data []byte err := q.QueryRow(ctx, getBatchL2DataByBatchNumber, batchNumber).Scan(&batchL2Data)
    -
     
    - 1 + + 29 +
    -   - -- +migrate Up + + + BatchDataProvider
    - 2 + + 30 +
    + - CREATE TABLE IF NOT EXISTS pool.whitelisted ( + SequenceSender
    - 3 + + 31 +
    -   - addr VARCHAR PRIMARY KEY + + + // Init initializes the DABackend
    - 4 + + 32 +
    -   - ); + + + Init() error
    - 5 + + 33 +
    -   -
    + + + }
    -
    @@ -176,6 +178,7 @@
    +
    @@ -176,6 +179,7 @@
    @@ -24747,7 +24802,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -185,10 +188,12 @@
    +
    @@ -185,10 +189,12 @@
    @@ -24872,7 +24927,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -216,6 +221,14 @@
    +
    @@ -216,6 +222,14 @@
    @@ -25017,7 +25072,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -244,6 +257,7 @@
    +
    @@ -244,6 +258,7 @@
    @@ -25092,7 +25147,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -253,6 +267,7 @@
    +
    @@ -253,6 +268,7 @@
    @@ -25167,7 +25222,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -845,14 +860,14 @@
    +
    @@ -845,14 +861,14 @@
    @@ -25312,7 +25367,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -861,7 +876,7 @@
    +
    @@ -861,7 +877,7 @@
    @@ -25387,7 +25442,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -872,7 +887,7 @@
    +
    @@ -872,7 +888,7 @@
    @@ -25462,7 +25517,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -880,11 +895,11 @@
    +
    @@ -880,11 +896,11 @@
    @@ -25577,7 +25632,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -893,7 +908,7 @@
    +
    @@ -893,7 +909,7 @@
    @@ -25652,7 +25707,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -1109,7 +1124,7 @@
    +
    @@ -1109,7 +1125,7 @@
    @@ -25727,7 +25782,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -1192,7 +1207,7 @@
    +
    @@ -1192,7 +1208,7 @@
    @@ -25802,7 +25857,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -1211,32 +1226,69 @@
    +
    @@ -1211,32 +1227,69 @@
    @@ -26517,7 +26572,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -1683,15 +1735,15 @@
    +
    @@ -1683,15 +1736,15 @@
    @@ -26672,7 +26727,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -1712,20 +1764,20 @@
    +
    @@ -1712,20 +1765,20 @@
    @@ -26877,7 +26932,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -1753,3 +1805,13 @@
    +
    @@ -1753,3 +1806,13 @@
    @@ -27100,7 +27155,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 178 + 179
    @@ -27110,7 +27165,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 179 + 180
    @@ -27120,7 +27175,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 180 + 181
    @@ -27130,7 +27185,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 181 + 182
    @@ -27140,7 +27195,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 182 + 183
    @@ -27150,7 +27205,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 183 + 184
    @@ -27160,7 +27215,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 184 + 185
    @@ -27175,7 +27230,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 188 + 189
    @@ -27185,7 +27240,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 189 + 190
    @@ -27195,7 +27250,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 190 + 191
    @@ -27205,7 +27260,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 191 + 192
    @@ -27215,17 +27270,17 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 192 + 193
    + - da dataAvailabilitier + da dataavailability.BatchDataProvider
    - 193 + 194
    @@ -27235,7 +27290,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 194 + 195
    @@ -27245,7 +27300,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 195 + 196
    @@ -27255,17 +27310,17 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 196 + 197
    + - func NewClient(cfg Config, l1Config L1Config, da dataAvailabilitier) (*Client, error) { + func NewClient(cfg Config, l1Config L1Config, da dataavailability.BatchDataProvider) (*Client, error) {
    - 197 + 198
    @@ -27275,7 +27330,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 198 + 199
    @@ -27285,7 +27340,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 199 + 200
    @@ -27300,7 +27355,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 221 + 222
    @@ -27310,7 +27365,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 222 + 223
    @@ -27320,7 +27375,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 223 + 224
    @@ -27330,7 +27385,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 224 + 225
    @@ -27340,7 +27395,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 225 + 226
    @@ -27350,7 +27405,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 226 + 227
    @@ -27360,7 +27415,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 227 + 228
    @@ -27370,7 +27425,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 228 + 229
    @@ -27380,7 +27435,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 229 + 230
    @@ -27390,7 +27445,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 230 + 231
    @@ -27400,7 +27455,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 231 + 232
    @@ -27410,7 +27465,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 232 + 233
    @@ -27420,7 +27475,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 233 + 234
    @@ -27430,7 +27485,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 234 + 235
    @@ -27445,7 +27500,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 257 + 258
    @@ -27455,7 +27510,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 258 + 259
    @@ -27465,7 +27520,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 259 + 260
    @@ -27475,7 +27530,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 260 + 261
    @@ -27485,7 +27540,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 261 + 262
    @@ -27495,7 +27550,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 262 + 263
    @@ -27505,7 +27560,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 263 + 264
    @@ -27520,7 +27575,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 267 + 268
    @@ -27530,7 +27585,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 268 + 269
    @@ -27540,7 +27595,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 269 + 270
    @@ -27550,7 +27605,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 270 + 271
    @@ -27560,7 +27615,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 271 + 272
    @@ -27570,7 +27625,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 272 + 273
    @@ -27580,7 +27635,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 273 + 274
    @@ -27595,7 +27650,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 860 + 861
    @@ -27605,7 +27660,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 861 + 862
    @@ -27615,7 +27670,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 862 + 863
    @@ -27625,7 +27680,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 863 + 864
    @@ -27635,7 +27690,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 864 + 865
    @@ -27645,7 +27700,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 865 + 866
    @@ -27655,7 +27710,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 866 + 867
    @@ -27665,7 +27720,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 867 + 868
    @@ -27675,7 +27730,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 868 + 869
    @@ -27685,7 +27740,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 869 + 870
    @@ -27695,7 +27750,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 870 + 871
    @@ -27705,7 +27760,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 871 + 872
    @@ -27715,7 +27770,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 872 + 873
    @@ -27725,7 +27780,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 873 + 874
    @@ -27740,7 +27795,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 876 + 877
    @@ -27750,7 +27805,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 877 + 878
    @@ -27760,7 +27815,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 878 + 879
    @@ -27770,7 +27825,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 879 + 880
    @@ -27780,7 +27835,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 880 + 881
    @@ -27790,7 +27845,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 881 + 882
    @@ -27800,7 +27855,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 882 + 883
    @@ -27815,7 +27870,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 887 + 888
    @@ -27825,7 +27880,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 888 + 889
    @@ -27835,7 +27890,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 889 + 890
    @@ -27845,7 +27900,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 890 + 891
    @@ -27855,7 +27910,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 891 + 892
    @@ -27865,7 +27920,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 892 + 893
    @@ -27875,7 +27930,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 893 + 894
    @@ -27890,7 +27945,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 895 + 896
    @@ -27900,7 +27955,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 896 + 897
    @@ -27910,7 +27965,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 897 + 898
    @@ -27920,7 +27975,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 898 + 899
    @@ -27930,7 +27985,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 899 + 900
    @@ -27940,7 +27995,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 900 + 901
    @@ -27950,7 +28005,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 901 + 902
    @@ -27960,7 +28015,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 902 + 903
    @@ -27970,7 +28025,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 903 + 904
    @@ -27980,7 +28035,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 904 + 905
    @@ -27990,7 +28045,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 905 + 906
    @@ -28005,7 +28060,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 908 + 909
    @@ -28015,7 +28070,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 909 + 910
    @@ -28025,7 +28080,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 910 + 911
    @@ -28035,7 +28090,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 911 + 912
    @@ -28045,7 +28100,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 912 + 913
    @@ -28055,7 +28110,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 913 + 914
    @@ -28065,7 +28120,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 914 + 915
    @@ -28080,7 +28135,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1124 + 1125
    @@ -28090,7 +28145,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1125 + 1126
    @@ -28100,7 +28155,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1126 + 1127
    @@ -28110,7 +28165,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1127 + 1128
    @@ -28120,7 +28175,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1128 + 1129
    @@ -28130,7 +28185,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1129 + 1130
    @@ -28140,7 +28195,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1130 + 1131
    @@ -28155,7 +28210,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1207 + 1208
    @@ -28165,7 +28220,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1208 + 1209
    @@ -28175,7 +28230,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1209 + 1210
    @@ -28185,17 +28240,17 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1210 + 1211
    + - func decodeSequences(txData []byte, lastBatchNumber uint64, sequencer common.Address, txHash common.Hash, nonce uint64, l1InfoRoot common.Hash, da dataAvailabilitier) ([]SequencedBatch, error) { + func decodeSequences(txData []byte, lastBatchNumber uint64, sequencer common.Address, txHash common.Hash, nonce uint64, l1InfoRoot common.Hash, da dataavailability.BatchDataProvider) ([]SequencedBatch, error) {
    - 1211 + 1212
    @@ -28205,7 +28260,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1212 + 1213
    @@ -28215,7 +28270,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1213 + 1214
    @@ -28230,7 +28285,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1226 + 1227
    @@ -28240,7 +28295,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1227 + 1228
    @@ -28250,7 +28305,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1228 + 1229
    @@ -28270,7 +28325,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1229 + 1230
    @@ -28280,7 +28335,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1230 + 1231
    @@ -28290,7 +28345,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1231 + 1232
    @@ -28300,7 +28355,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1232 + 1233
    @@ -28310,7 +28365,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1233 + 1234
    @@ -28320,7 +28375,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1234 + 1235
    @@ -28330,7 +28385,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1235 + 1236
    @@ -28340,7 +28395,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1236 + 1237
    @@ -28350,7 +28405,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1237 + 1238
    @@ -28360,7 +28415,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1238 + 1239
    @@ -28370,7 +28425,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1239 + 1240
    @@ -28380,7 +28435,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1240 + 1241
    @@ -28390,7 +28445,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1241 + 1242
    @@ -28400,7 +28455,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1242 + 1243
    @@ -28410,7 +28465,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1243 + 1244
    @@ -28420,7 +28475,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1244 + 1245
    @@ -28430,7 +28485,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1245 + 1246
    @@ -28440,7 +28495,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1246 + 1247
    @@ -28450,7 +28505,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1247 + 1248
    @@ -28460,7 +28515,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1248 + 1249
    @@ -28470,7 +28525,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1249 + 1250
    @@ -28480,7 +28535,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1250 + 1251
    @@ -28490,7 +28545,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1251 + 1252
    @@ -28500,7 +28555,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1252 + 1253
    @@ -28510,7 +28565,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1253 + 1254
    @@ -28520,7 +28575,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1254 + 1255
    @@ -28540,7 +28595,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1255 + 1256
    @@ -28550,7 +28605,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1256 + 1257
    @@ -28560,7 +28615,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1257 + 1258
    @@ -28570,7 +28625,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1258 + 1259
    @@ -28580,7 +28635,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1259 + 1260
    @@ -28590,7 +28645,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1260 + 1261
    @@ -28600,7 +28655,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1261 + 1262
    @@ -28610,7 +28665,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1262 + 1263
    @@ -28620,7 +28675,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1263 + 1264
    @@ -28630,7 +28685,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1264 + 1265
    @@ -28640,7 +28695,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1265 + 1266
    @@ -28650,7 +28705,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1266 + 1267
    @@ -28660,7 +28715,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1267 + 1268
    @@ -28670,7 +28725,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1268 + 1269
    @@ -28680,7 +28735,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1269 + 1270
    @@ -28690,7 +28745,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1270 + 1271
    @@ -28700,7 +28755,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1271 + 1272
    @@ -28710,7 +28765,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1272 + 1273
    @@ -28720,7 +28775,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1273 + 1274
    @@ -28730,7 +28785,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1274 + 1275
    @@ -28740,7 +28795,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1275 + 1276
    @@ -28750,7 +28805,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1276 + 1277
    @@ -28760,7 +28815,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1277 + 1278
    @@ -28770,7 +28825,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1278 + 1279
    @@ -28780,7 +28835,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1279 + 1280
    @@ -28790,7 +28845,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1280 + 1281
    @@ -28800,7 +28855,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1281 + 1282
    @@ -28810,7 +28865,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1282 + 1283
    @@ -28820,7 +28875,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1283 + 1284
    @@ -28830,7 +28885,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1284 + 1285
    @@ -28840,7 +28895,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1285 + 1286
    @@ -28850,7 +28905,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1286 + 1287
    @@ -28860,7 +28915,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1287 + 1288
    @@ -28870,7 +28925,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1288 + 1289
    @@ -28880,7 +28935,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1289 + 1290
    @@ -28890,7 +28945,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1290 + 1291
    @@ -28900,7 +28955,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1291 + 1292
    @@ -28910,7 +28965,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1292 + 1293
    @@ -28920,7 +28975,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1293 + 1294
    @@ -28930,7 +28985,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1294 + 1295
    @@ -28945,7 +29000,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1735 + 1736
    @@ -28955,7 +29010,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1736 + 1737
    @@ -28965,7 +29020,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1737 + 1738
    @@ -28975,7 +29030,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1738 + 1739
    @@ -28985,7 +29040,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1739 + 1740
    @@ -28995,7 +29050,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1740 + 1741
    @@ -29005,7 +29060,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1741 + 1742
    @@ -29015,7 +29070,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1742 + 1743
    @@ -29025,7 +29080,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1743 + 1744
    @@ -29035,7 +29090,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1744 + 1745
    @@ -29045,7 +29100,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1745 + 1746
    @@ -29055,7 +29110,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1746 + 1747
    @@ -29065,7 +29120,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1747 + 1748
    @@ -29075,7 +29130,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1748 + 1749
    @@ -29085,7 +29140,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1749 + 1750
    @@ -29100,7 +29155,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1764 + 1765
    @@ -29110,7 +29165,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1765 + 1766
    @@ -29120,7 +29175,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1766 + 1767
    @@ -29130,7 +29185,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1767 + 1768
    @@ -29140,7 +29195,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1768 + 1769
    @@ -29150,7 +29205,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1769 + 1770
    @@ -29160,7 +29215,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1770 + 1771
    @@ -29170,7 +29225,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1771 + 1772
    @@ -29180,7 +29235,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1772 + 1773
    @@ -29190,7 +29245,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1773 + 1774
    @@ -29200,7 +29255,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1774 + 1775
    @@ -29210,7 +29265,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1775 + 1776
    @@ -29220,7 +29275,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1776 + 1777
    @@ -29230,7 +29285,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1777 + 1778
    @@ -29240,7 +29295,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1778 + 1779
    @@ -29250,7 +29305,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1779 + 1780
    @@ -29260,7 +29315,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1780 + 1781
    @@ -29270,7 +29325,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1781 + 1782
    @@ -29280,7 +29335,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1782 + 1783
    @@ -29290,7 +29345,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1783 + 1784
    @@ -29305,7 +29360,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1805 + 1806
    @@ -29315,7 +29370,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1806 + 1807
    @@ -29325,7 +29380,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1807 + 1808
    @@ -29335,7 +29390,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1808 + 1809
    @@ -29345,7 +29400,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1809 + 1810
    @@ -29355,7 +29410,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1810 + 1811
    @@ -29365,7 +29420,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1811 + 1812
    @@ -29375,7 +29430,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1812 + 1813
    @@ -29385,7 +29440,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1813 + 1814
    @@ -29395,7 +29450,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1814 + 1815
    @@ -29405,7 +29460,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1815 + 1816
    @@ -29415,7 +29470,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1816 + 1817
    @@ -29425,7 +29480,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 1817 + 1818
    @@ -29535,7 +29590,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -47,7 +47,9 @@
    +
    @@ -47,7 +47,8 @@
    @@ -29574,17 +29629,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - - ethman, ethBackend, polAddr, br, err = NewSimulatedEtherman(Config{ForkIDChunkSize: 10}, auth) -
    -
    - - -
    -   -
    + ethman, ethBackend, polAddr, br, err = NewSimulatedEtherman(Config{ForkIDChunkSize: 10}, auth)
    -
    @@ -55,12 +57,12 @@
    +
    @@ -55,12 +56,12 @@
    @@ -29755,7 +29800,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -89,7 +91,7 @@
    +
    @@ -89,7 +90,7 @@
    @@ -29830,7 +29875,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -125,7 +127,7 @@
    +
    @@ -125,7 +126,7 @@
    @@ -29905,7 +29950,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -156,13 +158,16 @@
    +
    @@ -156,13 +157,16 @@
    @@ -30070,7 +30115,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -174,6 +179,16 @@
    +
    @@ -174,6 +178,16 @@
    @@ -30235,7 +30280,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -188,7 +203,7 @@
    +
    @@ -188,7 +202,7 @@
    @@ -30310,7 +30355,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -197,11 +212,12 @@
    +
    @@ -197,11 +211,12 @@
    @@ -30435,7 +30480,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -231,7 +247,7 @@
    +
    @@ -231,7 +246,7 @@
    @@ -30510,7 +30555,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -291,7 +307,7 @@
    +
    @@ -291,7 +306,7 @@
    @@ -30585,7 +30630,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -311,8 +327,9 @@
    +
    @@ -311,8 +326,9 @@
    @@ -30680,7 +30725,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -335,7 +352,7 @@
    +
    @@ -335,7 +351,7 @@
    @@ -30755,7 +30800,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -354,7 +371,7 @@
    +
    @@ -354,7 +370,7 @@
    @@ -30830,7 +30875,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -373,7 +390,7 @@
    +
    @@ -373,7 +389,7 @@
    @@ -30905,7 +30950,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    -
    @@ -387,7 +404,7 @@
    +
    @@ -387,7 +403,7 @@
    @@ -31103,23 +31148,13 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    + - // TODO: need mock for the DataAvailability + da = newDaMock(t)
    51 -
    - + - da = newDaMock(t) -
    -
    - 52 -
    + @@ -31128,7 +31163,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 53 + 52
    @@ -31138,7 +31173,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 54 + 53
    @@ -31148,7 +31183,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 55 + 54
    @@ -31163,7 +31198,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 57 + 56
    @@ -31173,7 +31208,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 58 + 57
    @@ -31183,7 +31218,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 59 + 58
    @@ -31193,7 +31228,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 60 + 59
    @@ -31203,7 +31238,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 61 + 60
    @@ -31213,7 +31248,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 62 + 61
    @@ -31223,7 +31258,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 63 + 62
    @@ -31233,7 +31268,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 64 + 63
    @@ -31243,7 +31278,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 65 + 64
    @@ -31253,7 +31288,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 66 + 65
    @@ -31263,7 +31298,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 67 + 66
    @@ -31273,7 +31308,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 68 + 67
    @@ -31288,7 +31323,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 91 + 90
    @@ -31298,7 +31333,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 92 + 91
    @@ -31308,7 +31343,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 93 + 92
    @@ -31318,7 +31353,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 94 + 93
    @@ -31328,7 +31363,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 95 + 94
    @@ -31338,7 +31373,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 96 + 95
    @@ -31348,7 +31383,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 97 + 96
    @@ -31363,7 +31398,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 127 + 126
    @@ -31373,7 +31408,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 128 + 127
    @@ -31383,7 +31418,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 129 + 128
    @@ -31393,7 +31428,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 130 + 129
    @@ -31403,7 +31438,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 131 + 130
    @@ -31413,7 +31448,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 132 + 131
    @@ -31423,7 +31458,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 133 + 132
    @@ -31438,7 +31473,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 158 + 157
    @@ -31448,7 +31483,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 159 + 158
    @@ -31458,7 +31493,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 160 + 159
    @@ -31468,7 +31503,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 161 + 160
    @@ -31478,7 +31513,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 162 + 161
    @@ -31488,7 +31523,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 163 + 162
    @@ -31498,7 +31533,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 164 + 163
    @@ -31508,7 +31543,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 165 + 164
    @@ -31518,7 +31553,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 166 + 165
    @@ -31528,7 +31563,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 167 + 166
    @@ -31538,7 +31573,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 168 + 167
    @@ -31548,7 +31583,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 169 + 168
    @@ -31558,7 +31593,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 170 + 169
    @@ -31568,7 +31603,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 171 + 170
    @@ -31578,7 +31613,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 172 + 171
    @@ -31588,7 +31623,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 173 + 172
    @@ -31603,7 +31638,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 179 + 178
    @@ -31613,7 +31648,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 180 + 179
    @@ -31623,7 +31658,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 181 + 180
    @@ -31633,7 +31668,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 182 + 181
    @@ -31643,7 +31678,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 183 + 182
    @@ -31653,7 +31688,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 184 + 183
    @@ -31663,7 +31698,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 185 + 184
    @@ -31673,7 +31708,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 186 + 185
    @@ -31683,7 +31718,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 187 + 186
    @@ -31693,7 +31728,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 188 + 187
    @@ -31703,7 +31738,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 189 + 188
    @@ -31713,7 +31748,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 190 + 189
    @@ -31723,7 +31758,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 191 + 190
    @@ -31733,7 +31768,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 192 + 191
    @@ -31743,7 +31778,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 193 + 192
    @@ -31753,7 +31788,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 194 + 193
    @@ -31768,7 +31803,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 203 + 202
    @@ -31778,7 +31813,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 204 + 203
    @@ -31788,7 +31823,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 205 + 204
    @@ -31798,7 +31833,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 206 + 205
    @@ -31808,7 +31843,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 207 + 206
    @@ -31818,7 +31853,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 208 + 207
    @@ -31828,7 +31863,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 209 + 208
    @@ -31843,7 +31878,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 212 + 211
    @@ -31853,7 +31888,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 213 + 212
    @@ -31863,7 +31898,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 214 + 213
    @@ -31873,7 +31908,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 215 + 214
    @@ -31883,7 +31918,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 216 + 215
    @@ -31893,7 +31928,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 217 + 216
    @@ -31903,7 +31938,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 218 + 217
    @@ -31913,7 +31948,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 219 + 218
    @@ -31923,7 +31958,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 220 + 219
    @@ -31933,7 +31968,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 221 + 220
    @@ -31943,7 +31978,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 222 + 221
    @@ -31953,7 +31988,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 223 + 222
    @@ -31968,7 +32003,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 247 + 246
    @@ -31978,7 +32013,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 248 + 247
    @@ -31988,7 +32023,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 249 + 248
    @@ -31998,7 +32033,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 250 + 249
    @@ -32008,7 +32043,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 251 + 250
    @@ -32018,7 +32053,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 252 + 251
    @@ -32028,7 +32063,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 253 + 252
    @@ -32043,7 +32078,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 307 + 306
    @@ -32053,7 +32088,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 308 + 307
    @@ -32063,7 +32098,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 309 + 308
    @@ -32073,7 +32108,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 310 + 309
    @@ -32083,7 +32118,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 311 + 310
    @@ -32093,7 +32128,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 312 + 311
    @@ -32103,7 +32138,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 313 + 312
    @@ -32118,7 +32153,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 327 + 326
    @@ -32128,7 +32163,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 328 + 327
    @@ -32138,7 +32173,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 329 + 328
    @@ -32148,7 +32183,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 330 + 329
    @@ -32158,7 +32193,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 331 + 330
    @@ -32168,7 +32203,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 332 + 331
    @@ -32178,7 +32213,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 333 + 332
    @@ -32188,7 +32223,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 334 + 333
    @@ -32198,7 +32233,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 335 + 334
    @@ -32213,7 +32248,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 352 + 351
    @@ -32223,7 +32258,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 353 + 352
    @@ -32233,7 +32268,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 354 + 353
    @@ -32243,7 +32278,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 355 + 354
    @@ -32253,7 +32288,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 356 + 355
    @@ -32263,7 +32298,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 357 + 356
    @@ -32273,7 +32308,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 358 + 357
    @@ -32288,7 +32323,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 371 + 370
    @@ -32298,7 +32333,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 372 + 371
    @@ -32308,7 +32343,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 373 + 372
    @@ -32318,7 +32353,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 374 + 373
    @@ -32328,7 +32363,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 375 + 374
    @@ -32338,7 +32373,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 376 + 375
    @@ -32348,7 +32383,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 377 + 376
    @@ -32363,7 +32398,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 390 + 389
    @@ -32373,7 +32408,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 391 + 390
    @@ -32383,7 +32418,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 392 + 391
    @@ -32393,7 +32428,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 393 + 392
    @@ -32403,7 +32438,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 394 + 393
    @@ -32413,7 +32448,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 395 + 394
    @@ -32423,7 +32458,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 396 + 395
    @@ -32438,7 +32473,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 404 + 403
    @@ -32448,7 +32483,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 405 + 404
    @@ -32458,7 +32493,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 406 + 405
    @@ -32468,7 +32503,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 407 + 406
    @@ -32478,7 +32513,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 408 + 407
    @@ -32488,7 +32523,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 409 + 408
    @@ -32498,7 +32533,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    - 410 + 409
    @@ -32666,7 +32701,7 @@

    zkEVM node vs CDK validium node

    zkevm-node version: v0.5.0-RC4

    <

    + - type dataAvailabilitier interface { + type dataAvailabilityProvider interface {
    + - func NewSimulatedEtherman(cfg Config, auth *bind.TransactOpts, daBackend dataAvailabilitier) (etherman *Client, ethBackend *backends.SimulatedBackend, polAddr common.Address, br *polygonzkevmbridge.Polygonzkevmbridge, err error) { + func NewSimulatedEtherman(cfg Config, auth *bind.TransactOpts, daBackend dataAvailabilityProvider) (etherman *Client, ethBackend *backends.SimulatedBackend, polAddr common.Address, br *polygonzkevmbridge.Polygonzkevmbridge, err error) {
    + - getBatchL2DataByBatchNumber := "SELECT raw_txs_data FROM state.batch WHERE batch_num = $1" + const getBatchL2DataByBatchNumber = "SELECT raw_txs_data FROM state.batch WHERE batch_num = $1"