Skip to content

[BUG?] Modifying the coinbase causes a sequencer validation error #143

@JacksonRGB

Description

@JacksonRGB

some error

Different field StateRoot. Virtual: stateA, Trusted: stateB
Different field Coinbase. Virtual: coinbaseA, Trusted: coinbaseB
https://github.com/0xPolygon/cdk-validium-node/blob/v0.6.7%2Bcdk/synchronizer/actions/etrog/processor_l1_sequence_batches.go#L371

When submitting to L1, use "Coinbase" from the configuration file as the Coinbase

https://github.com/0xPolygon/cdk-validium-node/blob/v0.6.7%2Bcdk/sequencesender/sequencesender.go#L195

When generating a batch, use "sequencer" as the Coinbase

https://github.com/0xPolygon/cdk-validium-node/blob/v0.6.7%2Bcdk/sequencer/batch.go#L307

The sequencer is defined here

https://github.com/0xPolygon/cdk-validium-node/blob/v0.6.7%2Bcdk/sequencer/sequencer.go#L58

https://github.com/0xPolygon/cdk-validium-node/blob/v0.6.7%2Bcdk/sequencer/sequencer.go#L102

https://github.com/0xPolygon/cdk-validium-node/blob/v0.6.7%2Bcdk/sequencer/finalizer.go#L109

After changing Coinbase=sequencer, the error disappeared. Here are some clues for assistance.

If coinbase must equal trustedSequencer, then why set coinbase? It can be obtained directly in the contract.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions