Skip to content

Conversation

@linoscope
Copy link
Collaborator

@linoscope linoscope commented Nov 11, 2025

  • Add timestamp, gasLimit, and coinbase fields to Preconfirmation struct.
  • Redo interface with derivation/execution to better match Shasta derivation interface.

anchorHash = L1.getBlockHash(preconf.anchorId)
anchorTx = constructAnchorTx(anchorHash)
l2Block = executeL2Block([anchorTx] + rawTxList)
l2Block = executeL2Block(
Copy link

@davidtaikocha davidtaikocha Nov 11, 2025

Choose a reason for hiding this comment

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

shall we also add:

def executeL2Block(// ...):
     // ...

here, to define the L2 preconf block derivation process from a commitment in code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In latest ver I have redone the python code to better connect with the derivation process in Rust. Didn't define the whole derivation process, but hopefully it helps with agreeing on how to connect with the derivation

@linoscope linoscope changed the title doc: add timestamp and gas limit to Preconf in design doc doc: revamp preconf struct and validation Nov 12, 2025
@linoscope linoscope force-pushed the design-doc-add-timestamp-gas-limit branch from 63bbb00 to 51fcc4a Compare November 12, 2025 12:53
linoscope and others added 2 commits November 12, 2025 22:29
Add three new fields to the Preconfirmation struct:
- timestamp: Timestamp of the preconfed block
- gasLimit: Gas limit for the preconfed block
- coinbase: Coinbase address (recipient of block rewards)

Update slashing section to include these fields in mismatch detection.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@linoscope linoscope force-pushed the design-doc-add-timestamp-gas-limit branch from 51fcc4a to 5f9f6ad Compare November 12, 2025 13:29
@linoscope linoscope force-pushed the design-doc-add-timestamp-gas-limit branch from 5f9f6ad to d0f9232 Compare November 12, 2025 13:38
Copy link

@MatusKysel MatusKysel left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants