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

Sequencer plugin to send a L2 pausing tx when sequencer hasn't produced block recently #281

Open
14 tasks
julien-marchand opened this issue Nov 4, 2024 · 0 comments
Assignees
Labels
Contracts Smart Contract related Linea-Besu P3: Low Issue priority: low

Comments

@julien-marchand
Copy link
Member

julien-marchand commented Nov 4, 2024

Description

Extend the sequencer plugin to send an L2 tx if the last block produced is older than X seconds.

Motivation

This should allow Aave and other protocols to have a smoother approach to liquidations if the sequencer hasn't been producing any block recently and prices haven't been able to be updated.

Architecture

  • No impact on the architecture. This should sit in the existing sequencer plugin.

Implementation guidelines

  • When building a block, if the last block produced is more than X seconds old, add a first transaction to the block that calls the SequencerUptimeFeed contract
    • LineaSequencerUptimeFeed.updateStatus(false, lastBlockTimestamp)
    • LineaSequencerUptimeFeed.updateStatus(true, currentTimestamp)
  • The added transaction shouldn't be subject to gas price checks
  • Transaction signature should be done using Web3Signer
  • Add e2e tests to cover this
  • This feature should be optional

Metrics/monitoring

  • What needs to be monitored once this epic has been shipped?

Rollout

  • Create Web3Signer account and have it configured on the contract
  • Deploy the contracts
  • Add/configure plugin on the sequencer

Infrastructure & Node operators

  • No impact expected

Documentation & communication

  • Communicate to Aave and Chainlink that this feature is available.
@julien-marchand julien-marchand added Contracts Smart Contract related Linea-Besu labels Nov 4, 2024
@julien-marchand julien-marchand added the P3: Low Issue priority: low label Nov 5, 2024
@julien-marchand julien-marchand changed the title Sequencer plugin to send L2 tx when sequencer has been paused Sequencer plugin to send a L2 pausing tx when sequencer hasn't produced block recently Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Contracts Smart Contract related Linea-Besu P3: Low Issue priority: low
Projects
None yet
Development

No branches or pull requests

5 participants