arXiv:2611.02164cs.DCNov 2026

Manuscript Offprint

arXiv:2611.02164

RegionFence: Adaptive Concurrency Control for Blockchain Parallel Transaction Execution

Jiaying Feng, Linpeng Jia, Yi Sun

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jiaying Feng 1,2,#^{1,2,\#}

1^{1}Institute of Computing Technology,

Chinese Academy of Sciences

2^{2}School of Computer Science and

Technology, University of Chinese

Academy of Sciences

Beijing, China

fengjiaying24s@ict.ac.cn

Linpeng Jia 1,2,#^{1,2,\#}

1^{1}Institute of Computing Technology,

Chinese Academy of Sciences

2^{2}School of Computer Science and

Technology, University of Chinese

Academy of Sciences

Beijing, China

jialinpeng@ict.ac.cn

Yi Sun 1,2,∗^{1,2,*}

1^{1}Institute of Computing Technology,

Chinese Academy of Sciences

2^{2}School of Computer Science and

Technology, University of Chinese

Academy of Sciences

Beijing, China

sunyi@ict.ac.cn

Abstract

Smart contracts have turned blockchains into general platforms, and their throughput is increasingly limited by transaction execution. Parallel execution can relieve this bottleneck. However, most existing engines apply a single policy within a block, typically optimistic (OCC) or pessimistic (PCC) concurrency control, and thus re-execute or delay whole transactions. Although some database studies have proposed hybrid and adaptive mechanisms, these mechanisms cannot be applied directly to blockchains because the block fixes the serial order, accesses emerge only at run time, and real workloads vary widely.

We propose RegionFence, an adaptive concurrency control mechanism for blockchain parallel transaction execution, based on three key designs. First, we propose regions to refine the granularity of control from whole transactions to the parts that touch contended keys. Second, we design fences to decide at run time how each region handles a conflict. Third, we introduce intra-block and inter-block online learning to anticipate likely conflicts. At the same time, the system still produces the same result as serial execution in consensus order.

We implement RegionFence in go-ethereum and evaluate it on real Ethereum mainnet blocks from different periods of the past five years. Experimental results show that RegionFence achieves an overall speedup of 9.2×9.2\times over single-core execution on 64 cores and outperforms OCC by 2.9−5.4×2.9-5.4\times and PCC by 3.9−9.4×3.9-9.4\times in speedup across these periods.

Code Availability: Code and artifacts are available at https://github.com/ictbc-feng/RegionFence.

1 Introduction

Blockchains have evolved from ledgers of simple payments [1] into general platforms. With smart contracts [2], they now host token exchanges, lending markets, and a growing range of other applications. These platforms order transactions into blocks and then execute them, and each transaction runs contract code that reads and writes keys of a shared state. As consensus protocols have grown faster, the throughput of these blockchains is increasingly limited by transaction execution rather than by ordering [3-5]. Parallel execution is the established remedy for this bottleneck, as multi-core databases have shown at up to thousands of cores [6-9].

However, many blockchain clients still execute the transactions of a block sequentially and leave the available cores unused [4, 10]. Moving these clients to parallel execution must preserve what sequential execution guarantees.

A blockchain is a replicated system: every node executes the blocks that consensus has ordered, and all nodes must arrive at the same states and receipts. Parallel execution must therefore produce the serial result, which consists of the states and receipts of executing the transactions sequentially in block order. This requirement is deterministic serializability with a preset serialization order [3–5, 11].

Existing parallel engines meet this requirement with optimistic or pessimistic concurrency control (OCC or PCC). OCC executes transactions speculatively, validates them in block order, and re-executes those that read stale values [3–5]. PCC instead serializes conflicting transactions, usually based on access sets known in advance [12–14]. A conflict therefore incurs wasted work under OCC and idle cores under PCC.

Figure

Figure 1: Example schedules of one block on three cores. T3T_{3} depends on T2T_{2} only through the hot key kpk_{p}: (a) OCC re-executes T3T_{3}, (b) PCC delays it, and (c) RegionFence resumes it at T2T_{2}'s last write.

Figure 1 illustrates both costs with an example. Consider a block that contains transactions T1T_{1} to T5T_{5} of a decentralized exchange, where a swap trades tokens by updating the reserves of a pool. T1T_{1}

∗^{*} These authors contributed equally to this work.

∗^{*} Corresponding author.

is a price-feed update that reads key kPk_P, which stores the reserves of a popular pool P. T2T_2 and T3T_3 are swaps routed through two pools. T2T_2 trades in P and then in a quiet pool, while T3T_3 trades in another quiet pool and then in P, so T3T_3 reads the value of kPk_P that T2T_2 writes. T4T_4 and T5T_5 are unrelated token transfers.

OCC runs T2T_2 and T3T_3 concurrently without waiting, so T3T_3 reads kPk_P before T2T_2 has written it. When T3T_3 is validated, kPk_P has changed since its read, so the engine aborts T3T_3 and re-executes it from the start (Figure 1(a)). PCC avoids this abort, but T1T_1, T2T_2, and T3T_3 all access kPk_P, so they run one after another while other cores remain idle (Figure 1(b)).

In this example, both costs are unnecessary because T3T_3 needs only the value that T2T_2 writes to kPk_P. T3T_3 could execute its first hop concurrently with T2T_2, wait at its read of kPk_P, and resume once T2T_2 completes its last write, even though T2T_2 has not finished (Figure 1(c)). Neither family produces this schedule because most engines apply one policy to a whole block [5].

Recent blockchain studies reduce the cost of a conflict by re-executing only the operations or subtransactions it affects [4, 11, 15]. Others shorten execution with hardware acceleration [16, 17], and permissioned systems gain flexibility from reordering transactions or switching architectures [18–20]. These approaches lower the cost of conflicts and of execution, but how a public blockchain should handle each conflict during execution remains largely open.

Database research offers a starting point for this question, as it has explored more flexible concurrency control. Some studies combine multiple policies at finer granularities [21–27], some adapt to contention or the workload at run time [28–30], and others make writes visible before transactions finish [31–33]. However, these designs are difficult to adopt directly because blockchain execution differs from database transaction processing in three respects. First, the block fixes the serial order before execution, which leaves little room for techniques that choose the order at run time [22, 34]. Second, accesses emerge only at run time, so policies built on known access sets [35, 36], transaction types [24], or offline training [27] become less effective. Third, the actual workloads of mainstream blockchains are complex within a transaction, within a block, and across blocks, so a policy tuned for one case rarely fits another (Section 2.2).

These differences call for adaptive concurrency control designed for blockchain parallel transaction execution. Such a mechanism should produce such schedules on real workloads, and building it raises three challenges.

Challenge 1: granularity of control. A conflict involves only part of a transaction, so controlling an entire transaction delays operations that conflict with no other transaction. Conversely, controlling every access imposes overhead on the many accesses that never conflict.

Challenge 2: selection and composition of policies. A conflict can be resolved in several ways, and the most effective choice depends on costs that vary with the workload and the number of cores. Moreover, transactions under different policies coexist within a block and may read uncommitted values, yet they must remain free of deadlocks, limit cascading aborts, and still produce the serial result.

Challenge 3: online prediction of conflicts. A wait is beneficial only if it precedes the conflicting access, so the engine must anticipate which transactions will conflict. Such knowledge is rarely available in advance for open and evolving contract workloads, and it must therefore be acquired during block execution at low overhead. The same applies to how many blocks can usefully execute together.

To address these challenges, we control a transaction only where it touches a contended key, decide each wait from costs measured online, and learn conflicts from execution itself. We realize these ideas in RegionFence, an adaptive concurrency control mechanism for blockchain parallel transaction execution. This paper makes the following contributions:

  • Regions. We introduce the region as the unit of concurrency control. A region is the part of a transaction between its first read of a contended key and its last write to it. Concurrency control acts only at the two ends, so accesses that never conflict need no coordination during execution (Section 4.1).

  • Fences. We design fences that decide at the start of a region whether a read proceeds or waits for predicted writers. At the end of a region, a writer exposes its value early to waiting readers if the write is likely final, and an aborted writer marks the keys it wrote by how likely their values are to change. We prove that these decisions preserve the serial result and guarantee termination (Section 4.2).

  • Intra-block and inter-block online learning. We design conflict profiles that predict the likely writers of a contended key from features known before a transaction runs, such as its contract, function, and address arguments. They learn from the read and write sets that execution reveals, without declared access sets, static analysis, or offline training. Some contended keys are new to a block and others recur across blocks, so learning runs at two time scales. Intra-block learning reacts to conflicts as soon as they appear, and inter-block learning accumulates what recurs and sizes a window of blocks that execute together (Section 5).

  • Implementation and evaluation. We implement RegionFence in go-ethereum, along with the OCC (Block-STM) and PCC (runtime locking) baselines (Section 6.1). We design synthetic workloads for blockchains rather than reuse database benchmarks such as TPC-C [37] and SmallBank [38], and we replay real Ethereum mainnet blocks from different periods of the past five years (Section 6). Experimental results show that RegionFence achieves an overall speedup of 9.2× over single-core execution on 64 cores and outperforms OCC by 2.9–5.4× and PCC by 3.9–9.4× in speedup across these periods.

References (21)