【问题标题】:web3.py SendTransaction only in pendingweb3.py SendTransaction 只在挂起
【发布时间】:2018-12-01 21:37:25
【问题描述】:

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

【问题讨论】:

    标签: ethereum web3 geth


    【解决方案1】:

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

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

    待处理交易是准备好处理并包含在区块中的交易。

    排队事务是事务 nonce 不按顺序排列的事务。交易随机数是每个具有相同发件人地址的交易的递增数字。

    【讨论】:

      猜你喜欢
      • 2018-12-01
      • 2022-08-18
      • 2021-11-30
      • 2022-01-15
      • 2022-01-10
      • 2021-07-28
      • 2022-12-21
      • 2021-05-29
      • 2021-07-01
      相关资源
      最近更新 更多