caivega / ipfslib

Other
2 stars 1 forks source link

S2 - jt_getTransactionCount,取到的结果永远是1 #122

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 4 years ago

【20201105版本】 jt_getTransactionCount,无论参数如何变化,取到的结果永远是1。

请求:

{
    "jsonrpc": "2.0",
    "method": "jt_getTransactionCount",
    "params": [
        "jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh",
        "286"
    ],
    "id": 1
}

jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh在区块286上至少有20条交易记录,但结果是1.

结果:

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": 1
}
foreso-GitHub commented 3 years ago

加tag参数才会有问题。关闭。

正确的请求:

{
    "jsonrpc": "2.0",
    "method": "jt_getTransactionCount",
    "params": [
        "jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh"
    ],
    "id": 1
}

结果:

{
    "id": 1,
    "jsonrpc": "2.0",
    "result": 364
}