Skip to content

AVS cannot guarantee transaction faster than 12 seconds #258

@wawrzek

Description

@wawrzek

This is more a question for design clarification

Describe the bug
Running tests of the Demo (Incredible Squaring AVS) with a POS DevNet I hit the invalid reference block error (more in Layr-Labs/incredible-squaring-avs#61).

It is trigger because the check enforce that a block has to be from the past. In the real Ethereum network, a block is a unit of time of around 12 seconds. If I understand correctly, every AVS can fail in the same way as the Demo in my tests, if conformation of the task comes in period shorted than a block.
That might not be a bug, but rather a feature/design choice (e.g. because in real life/production, a task won't have time to be deal in less than 12 seconds).

To Reproduce

  • Deploy iv1 (or other pos-devnet with right version of the EigenLayer contracts) - https://github.com/ivy-net/iv1
  • Deploy Demo AVS: in the https://github.com/Layr-Labs/incredible-squaring-avs run following commands (cd contracts ; forge script script/IncredibleSquaringDeployer.s.sol --rpc-url http://localhost:8545 --broadcast --unlocked --sender 0x123463a4b065722e99115d6c222f267d9cabb524 )
  • TopUp operator:make DEPLOYER_PRIVATE_KEY=0x2e0834786285daccd064ca17f1654f67b4aef298acbb82cef9ec422fb4975622 CHAINID=32382 send-fund
  • start aggregator make CHAINID=32382 start-aggregator
  • start operator make CHAINID=32382 start-operator

Expected behavior
Tasks should be validated in the same block

Environment
https://github.com/ivy-net/iv1

Potential solutions

  • Low priority and not a lot of work

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions