web3.py SendTransaction only in pending

web3.py SendTransaction only in pending

我想知道为什么所有 Tx 在我的私有网络中都使用 web3.eth.sendTransaction({}) 方法发送到一个节点,该节点最终位于 txpool 的待处理部分。为什么他们不计入排队部分?待定和排队之间有什么区别?以及如何让 tx 排队而不是待处理?

您可能不希望您的交易进入 queued 部分。 Pending 是他们等待的地方,直到矿工将其包含在下一个区块中。听起来你的私人网络矿工不包括你的交易。

有关待定与排队的更多信息,请参阅:What is the difference between a pending transaction and a queued transaction in the geth mempool?

Pending transactions are transactions that are ready to be processed and included in the block.

Queued transactions are transactions where the transaction nonce is not in sequence. The transaction nonce is an incrementing number for each transaction with the same From address.