caivega / ipfslib

Other
2 stars 1 forks source link

S3 - 发送交易,当fee小于10时,连续两次发送,会抛出奇怪的错误 #168

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 3 years ago

发送交易,当fee小于10时,连续两次发送,会抛出奇怪的错误。 版本:v0.5.3-dev-20210105-90245c2115345d5b23c28d32bd1c74b980dac99a TestCase:FCJT_sendTransaction_000200

{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "jt_sendTransaction",
    "params": [
        {
            "from": "root",
            "to": "jLTnL6yUXwuhR1uL3FLTMwG1r4PxZaUECM",
            "value": "1",
            "fee": "9",
            "memos": [
                "aa"
            ],
            "sequence": 712
        }
    ]
}

第一次发送,结果正确,抛出正确的错误:
{
    "error": {
        "count": 1,
        "description": "The compound error.",
        "information": "1 errors"
    },
    "id": 2,
    "jsonrpc": "2.0",
    "result": [
        {
            "error": {
                "description": "Insufficient balance to pay fee.",
                "information": "Insufficient balance to pay fee."
            },
            "status": 136,
            "type": "tecINSUFF_FEE"
        }
    ],
    "status": 1000,
    "type": "tedCOMPOUND"
}

第二次发送,结果错误:
{
    "error": {
        "count": 1,
        "description": "The compound error.",
        "information": "1 errors"
    },
    "id": 2,
    "jsonrpc": "2.0",
    "result": [
        {
            "error": {
                "description": "",
                "information": ""
            },
            "status": -1,
            "type": ""
        }
    ],
    "status": 1000,
    "type": "tedCOMPOUND"
}
caivega commented 3 years ago

已修复,下一个build验证

foreso-GitHub commented 3 years ago

在版本v0.5.3-dev-20210107-780c20d1a3245c4ed02491403b15d342c3ee8635中验证,已经修正。