caivega / ipfslib

Other
2 stars 1 forks source link

S3 - 用未激活的帐号发送交易,第一次失败(这是正确的),再发送一次,就会成功并返回hash(这是错误的) #151

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 3 years ago

用未激活的帐号发送交易,第一次失败(这是正确的),再发送一次,就会成功并返回hash(这是错误的)

请求:

{
    "jsonrpc": "2.0",
    "id": 4,
    "method": "jt_sendTransaction",
    "params": [
        {
            "from": "j4tBKPidB9iEJMqdatq7rbh14nPhAbCyfg",
            "secret": "sawLfQ4sDGHAu65pe11Uvv5HkvDcG",
            "sequence": 1,
            "to": "jwiAnXkrfB8wmrocKefcxhTCBopjxtdfr1",
            "value": "1",
            "fee": "10"
        }
    ]
}

第一次请求结果失败,是正确的。

{
    "error": "1 errors",
    "id": 4,
    "jsonrpc": "2.0",
    "result": [
        {
            "error": "terNO_ACCOUNT",
            "status": -96,
            "type": "terNO_ACCOUNT"
        }
    ],
    "status": 1000,
    "type": "tecCOMPOUND"
}

再请求一次,结果成功,这是错误的:

{
    "id": 4,
    "jsonrpc": "2.0",
    "result": [
        "563529AE040E1CC4841A45A16FFC297E7FB22329773AC1D790C832D1CD747B8B"
    ]
}
foreso-GitHub commented 3 years ago

TestCase:

caivega commented 3 years ago

已经修复,下一个build验证

foreso-GitHub commented 3 years ago

在版本v0.5.3-dev-20201222-4d79cede520d8eb6752703f588cd4a9b83370d91中验证,已经修复。