Transaction fee plays an important role in determining the priority of transaction processing in public blockchain systems. Owing to the observability of unconfirmed transactions, a strategic user can postpone his transaction broadcasting time and set a fee as low as possible by prying into his mempool that stores them. However, the stochastic mining interval may cause the delayed transaction to miss the next valid block. Meanwhile, a new feature (i.e. fee bumping) emerges that allows each user to increase his transaction fee before confirmation, making the fee setting more challenging. In this paper, we investigate a novel transaction policy from the perspective of a single strategic user that determines the broadcasting time and the transaction fee simultaneously. Two representative scenarios are considered, in which a number of coexisting ordinary users are mempool-oblivious that set their fees according to certain distribution, and are semi-strategic that check their mempools at a Poisson rate and update their fees. In the former, we compute the optimal broadcasting time and transaction fee that adapts to the arbitrary distribution of mining interval. When the block interval is exponentially distributed in Bitcoin-like PoW systems, the strategic user needs to broadcast his transaction immediately after its creation. And when the block interval is fixed in Ethereum-like PoS systems, he finds it profitable to wait until the last moment before block generation. In the latter, we formulate a continuous-time Markov chain to characterize the dynamics of mempool states, and derive the optimal fee adjusting frequency of the strategic user when the block interval is exponentially distributed. In both theory and simulations, we show that this strategic user should immediately increase his fee whenever it falls behind the minimum fee of being included.
翻译:交易费用在决定公共区块链系统中交易处理优先级方面起着重要作用。由于未确认交易具有可观测性,策略型用户可通过窥探存储这些交易的内存池,推迟其交易广播时间并尽可能设置较低费用。然而,随机挖矿间隔可能导致延迟交易错过下一个有效区块。与此同时,新兴功能(即费用追加机制)允许用户在交易确认前增加费用,这使得费用设置更具挑战性。本文从单一策略型用户的视角研究了一种新型交易策略,该策略同时决定广播时间与交易费用。我们考虑两种典型场景:场景一中存在大量共存普通用户,这些用户对内存池状态无感知,仅根据特定分布设置费用;场景二中用户以泊松速率检查内存池并更新费用,属于半策略型用户。针对前者,我们计算了能适应任意挖矿间隔分布的最优广播时间与交易费用。在类比特币PoW系统中,当区块间隔呈指数分布时,策略型用户需在交易创建后立即广播;而在类以太坊PoS系统中,当区块间隔固定时,用户发现等待至区块生成前的最后一刻广播更为有利。针对后者,我们构建连续时间马尔可夫链以刻画内存池状态动态,并推导出当区块间隔呈指数分布时策略型用户的最优费用调整频率。理论与仿真均表明,当策略型用户的交易费用低于被纳入区块所需的最低费用时,应立即提升其费用。