zl程序教程

您现在的位置是:首页 >  云平台

当前栏目

lotus 1.16.0 mpool 消息疏通

消息 lotus 1.16
2023-09-14 09:09:49 时间

系列文章目录

lotus



前言

mpool 消息疏通


一、查看堵住消息

  • 查看所有消息
lotus mpool pending --local | jq .
  • Nonce
lotus mpool pending --local | jq -r .Message.Nonce
  • GasFeeCap
lotus mpool pending --local | jq -r .Message.GasFeeCap
  • GasPremium
lotus mpool pending --local | jq -r .Message.GasPremium
  • GasLimit
lotus mpool pending --local | jq -r .Message.GasLimit
  • cid
lotus mpool pending --local --cids
  • Method
lotus mpool pending --local | jq -r .Message.Method

二、疏通消息

  • 默认情况消息GasFeeCap 大于 ParentBaseFee,如果小于就需要疏通消息

1.自动疏通

--fee-limit 愿意为消息支付的最高费用

lotus mpool replace --auto --fee-limit 0.3 <CID>

2.手动疏通

  • ParentBaseFee
lotus chain getblock $(lotus chain head | head -1) | jq -r .ParentBaseFee
  • replace 替换消息
lotus mpool replace --gas-feecap <参考ParentBaseFee> --gas-premium <原值0.25> --gas-limit <参考查看浏览器> <消息CID>

三、lotus v1.17.1

  • 批量疏通消息
lotus mpool pending --local --cids | wc -l
lotus mpool pending --local --cids | xargs -n 1 lotus mpool replace --auto --fee-limit 0.3