Skip to content

Keep track of submitted logs #6

@s1na

Description

@s1na

Now

Any log can be submitted to network infinite times, and the subscriber would be invoked every time.

Goal

  • Keep track of every submitted log.
  • Check if log has been submitted before in submitLog.
  • And let relayers know (by emitting events) which ones have been submitted.

Possible solutions

  • Store the root of a sparse merkle tree on-chain.
    • Relayers would have to, in addition to submitting log proofs, provide proof of non-inclusion of log in the SMT.
    • Contracts wouldn't be able to query ethbase to see if a log has been emitted recently.
    • Each block, only one transaction would modify the merkle root, and the rest of txes will fail, as their proof becomes invalid. Discussion regarding this issue.

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