Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
JacksonRGB opened this issue Jun 14, 2024 · 0 comments
Open

Comments

@JacksonRGB
Copy link

JacksonRGB commented Jun 14, 2024

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.

@JacksonRGB JacksonRGB changed the title [BUG] Modifying the coinbase causes a sequencer validation error [BUG?] Modifying the coinbase causes a sequencer validation error Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant