Skip to content

[bug] metaapp 发布链缺幂等/并发锁:同秒双 create 双链污染、多 modify 同挂 mempool #9

Description

@newfish

问题描述

MetaApp 发布/修改链路缺少幂等与并发控制,导致:

  1. 同一 MetaApp 同秒两次 create 造成双链污染
  2. 多条在途 modify 同时挂在 mempool,最终链上结果与收口声明不一致

实测复现(双证交叉印证)

影响

  • 双链污染:同名 MetaApp 存在多份,链接引用可能指向错误版本
  • 发布/修改的幂等性缺失,自动化流程(同秒重试、双端并发)不可靠

证据来源说明

期望修复方向

  • create/modify 链路引入幂等键(如操作 id 或目标 pin 唯一约束)与并发锁/冲突检测
  • 链上收口声明应与实际 pin 集一致,避免人工喊停的兜底路径

Activity

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

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