Optimal Transaction Queue Waiting in Blockchain Mining

Gholamreza Ramezan, Cyril Leung, Chunyan MiaoarXiv 2020

Introduction

In traditional blockchain operations, miners typically adopt a "no-wait" strategy: as soon as a block is mined, they immediately begin working on a new one using whatever transactions are currently available in the pool. While intuitive, this approach can be inefficient. If a miner starts a new round with only a few transactions, any transactions arriving shortly after are "locked out" and must wait for the entire current mining cycle to complete. This paper explores a counter-intuitive alternative: intentionally waiting for a minimum number of transactions to accumulate before starting the mining process.

System Model and Methodology

The researchers modeled the blockchain transaction process using queueing theory. As illustrated in the system model below, transactions arrive at a pool following a Poisson process with rate $\lambda$, while the mining process (service) follows an exponential distribution with rate $\mu$.

The blockchain transaction and mining system model.

The proposed Wait-Min(D) scheme introduces a threshold $D$. A miner only initiates a new mining round if at least $D$ transactions are present in the queue. If the queue length is less than $D$ upon completion of a block, the miner remains idle until the $D$-th transaction arrives. Using Little’s Law, the authors derived analytical expressions for the stationary probabilities of the system and validated these models through extensive synthetic simulations.

Key Results: The "Sweet Spot" for Efficiency

The core finding of the study is that the relationship between the threshold $D$ and the average waiting time follows a U-shaped curve. This indicates that there is an optimal "sweet spot" where waiting actually minimizes the total time a transaction spends in the system.

Average waiting time vs. threshold $D$ for $\lambda/\mu = 1000$, showing a 10% reduction at the optimal point.

As shown in the figure above, when $D$ is too small (e.g., $D=1$), mining resources are wasted on blocks with very few transactions. Conversely, if $D$ is too large, the initial waiting period outweighs the benefits of batching. The analysis reveals a remarkably simple rule of thumb: the optimal threshold $D^*$ consistently falls around $0.9\lambda/\mu$. Implementing this optimal strategy results in an approximately 10% reduction in average transaction waiting time compared to the standard "start immediately" approach. This improvement was found to be consistent across various scales of arrival and mining rates (tested at $\lambda/\mu = 100$ and $1000$).

Conclusion and Future Directions

This research demonstrates that strategic idling in blockchain mining can significantly enhance network efficiency. By waiting for a specific threshold of transactions—roughly 90% of the average arrivals per mining round—miners can reduce the overall latency for users.

While these results are promising, the model assumes simplified Poisson arrivals and exponential service times. Future work should consider more complex, "bursty" traffic patterns and the competitive nature of multi-miner environments, where waiting too long might increase the risk of losing a block to a competitor. Additionally, exploring the impact of network propagation delays and block size limits would provide a more comprehensive view of real-world blockchain dynamics.

Summary updated

BibTeX
@misc{ramezan2020optimal,
  author = {Gholamreza Ramezan and Cyril Leung and Chunyan Miao},
  title = {{Optimal Transaction Queue Waiting in Blockchain Mining}},
  year = {2020},
  eprint = {2011.10886},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.10886},
}
Figure