paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Chord: Towards a Unified Detection of Blockchain Transaction Parallelism Bugs

Chord:面向区块链交易并行性缺陷的统一检测
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 2/10 · 该论文关注区块链交易并行性缺陷的动态测试与调试,属于并发/并行缺陷检测方向,但与用户核心方向(PL与AI/LLM/Agent交叉、静态分析、浮点程序分析、贝叶斯程序分析)几乎无关。仅在“并发缺陷检测”和“工程化工具”方面有非常微弱的关联。引用 1 inbox
Yuanhang Zhou, Zhen Yan, Yuanliang Chen, Fuchen Ma, Ting Chen, Yu Jiang
crossref: 2026-09-12

AI 速览

一句话:提出 Chord,通过统一冲突交易模型与动态测试编排,统一检测多种区块链的交易并行性缺陷。

区块链为提升吞吐、降低延迟引入了多种交易并行机制,但也不可避免地引入缺陷,可能导致资产损失、双花、共识失败与 DDoS 等严重后果。然而,现有工作对这些缺陷的症状与根因缺乏分析,也缺少有效检测手段。本文首先对四个商业区块链中的历史交易并行性缺陷进行深入分析,发现多数缺陷源于冲突交易处理不当,且在运行中无明显现象。由于区块链异构性,统一触发冲突处理十分困难。受此启发,作者提出 Chord:它设计统一的冲突交易模型以生成各类冲突交易,动态调整交易提交并在执行中插入主动回滚以进行充分测试,同时结合本地—远程差分预言与 TPS 预言捕获缺陷。评估表明,Chord 成功检测出 54 个交易并行性缺陷,并使 TPS 下降 49.7%、延迟上升 388.0%,优于现有方法,显示出其触发各类冲突场景并暴露缺陷的有效性。

问题
区块链交易并行机制中的缺陷往往由冲突交易处理不当引起,且运行中无明显现象,现有方法难以统一触发和有效识别这类缺陷。
方法
在历史缺陷分析的基础上,提出统一冲突交易模型生成冲突交易,动态调整交易提交并插入主动回滚,结合本地—远程差分预言与 TPS 预言进行检测。
评估
在四个商业区块链上评估,检测出 54 个交易并行性缺陷,并通过 TPS 降低 49.7%、延迟增加 388.0% 表明其触发冲突场景与暴露缺陷的能力优于现有方法。
原文摘要(Abstract)

Blockchain systems have implemented various transaction parallelism mechanisms to improve the system throughput and reduce the latency. However, they inevitably introduce bugs. Such bugs can result in severe consequences such as asset loss, double spending, consensus failure, and DDoS. Unfortunately, they have been little analyzed about their symptoms and root causes, leading to a lack of effective detection methods. In this work, we conduct a thorough analysis of historical transaction parallelism bugs in four commercial blockchains. Results show that most of them arise from mishandling conflicting transactions and manifest without obvious phenomena. However, given the heterogeneity of blockchains, it is challenging to trigger conflict handling in a unified way. Effectively identifying these bugs is also hard. Inspired by the findings, we propose Chord, aiming at detecting blockchain transaction parallelism bugs. Chord proposes a unified conflict transaction model to generate various conflict transactions. Chord also dynamically adjust the transaction submission and inserts proactive reverts during transaction execution to conduct thorough testing. Besides, Chord incorporates a local-remote differential oracle and a TPS oracle to capture the bugs. Our evaluation shows that Chord successfully detects 54 transaction parallelism bugs. Besides, Chord outperforms the existing methods by decreasing the TPS by 49.7% and increasing the latency by 388.0%, showing its effectiveness in triggering various conflict scenarios and exposing the bugs.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8903,
  title = {Chord: Towards a Unified Detection of Blockchain Transaction Parallelism Bugs},
  author = {Yuanhang Zhou and Zhen Yan and Yuanliang Chen and Fuchen Ma and Ting Chen and Yu Jiang},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00205}
}