lotus 内存池 GasFeeCap 排序

# lotus mpool pending | jq -r '.Message | {Method: .Method, GasFeeCap: .GasFeeCap}' | head
{
  "Method": 3844450837,
  "GasFeeCap": "30000000"
}
{
  "Method": 5,
  "GasFeeCap": "484841804"
}
{
  "Method": 4,
# lotus mpool pending | jq -r '.Message | {Method: .Method, GasFeeCap: .GasFeeCap}' | jq -s 'group_by(.Method)[] | {Method: .[0].Method, GasFeeCap: [.[] | .GasFeeCap]}' | head
{
  "Method": 0,
  "GasFeeCap": [
    "2336300152",
    "2336303500",
    "2336305816",
    "2336303224",
    "2336302120",
    "2336304996",
    "2336305224",
# lotus mpool pending | jq -r '.Message | {Method: .Method, GasFeeCap: .GasFeeCap}' | jq -s 'group_by(.Method)[] | {Method: .[0].Method, GasFeeCap: [.[] | .GasFeeCap | tonumber]}' | head
{
  "Method": 0,
  "GasFeeCap": [
    200000000,
    1094699720
  ]
}
{
  "Method": 2,
  "GasFeeCap": [

# lotus mpool pending | jq -r '.Message | {Method: .Method, GasFeeCap: .GasFeeCap}' | jq -s 'group_by(.Method)[] | {Method: .[0].Method, GasFeeCap: [.[] | .GasFeeCap | tonumber] | sort}' | head
{
  "Method": 0,
  "GasFeeCap": [
    164309144,
    190653423,
    200000000,
    999772891,
    1094699720
  ]
}
# lotus mpool pending | jq -r '.Message | {Method: .Method, GasFeeCap: .GasFeeCap}' | jq -s 'group_by(.Method)[] | {Method: .[0].Method, GasFeeCap: [.[] | .GasFeeCap | tonumber] | sort | reverse}' | head
{
  "Method": 0,
  "GasFeeCap": [
    1094699720,
    200000000,
    185766357
  ]
}
{
  "Method": 2,
lotus mpool pending | jq -r '.Message | {Method: .Method, GasFeeCap: .GasFeeCap}' | jq -s 'group_by(.Method) | map({Method: .[0].Method, GasFeeCap: ([.[] | .GasFeeCap | tonumber] | sort | reverse | .[0])})'
[
  {
    "Method": 0,
    "GasFeeCap": 1094699720
  },
  {
    "Method": 2,
    "GasFeeCap": 30303411
  },
  {
    "Method": 4,
    "GasFeeCap": 20000000000
  },
  {
    "Method": 5,
    "GasFeeCap": 10000000000
  },
  {
    "Method": 6,
    "GasFeeCap": 1790225907
  },
  {
    "Method": 7,
    "GasFeeCap": 2870506425
  },
  {
    "Method": 8,
    "GasFeeCap": 8555594
  },
  {
    "Method": 11,
    "GasFeeCap": 771763019
  },
  {
    "Method": 25,
    "GasFeeCap": 1709723917
  },
  {
    "Method": 27,
    "GasFeeCap": 5000000000
  },
  {
    "Method": 32,
    "GasFeeCap": 33719208
  },
  {
    "Method": 3844450837,
    "GasFeeCap": 2856226574
  }
]
lotus mpool pending | jq -r '.Message | {Method: .Method, GasFeeCap: .GasFeeCap}' | jq -s 'group_by(.Method) | map({Method: .[0].Method, GasFeeCap: ([.[] | .GasFeeCap | tonumber] | sort | reverse | .[0])})' | jq -r '.[] | "\(.Method) \(.GasFeeCap)"'
0 1094699720
2 30303411
4 437228870
5 20000000000
6 3727023163
7 1217179102
8 8555594
11 771763019
27 1178228643
32 33719208
3844450837 30000000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值