caivega / ipfslib

Other
2 stars 1 forks source link

S3 - jt_sendRawTransaction,当发送RawTx格式不正确时,无法收到Response #104

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 4 years ago

jt_sendRawTransaction,当发送RawTx格式不正确时,无法收到Response

步骤: 把正确的RawTx的最后一位改变,比如把1改成2或者a,等等。

{
    "jsonrpc": "2.0",
    "method": "jt_sendRawTransaction",
    "params": [        
        "a1200002280000000240000099761400000000000000168400000000000000a732102064d6800ea3fb2de01804f4d7257088eeec355c516548ec8c029ea9c6fc98b927446304402201b28ce06c536141010a0b3819cff70f0687bc8d8087506eef4405cb7b86ee2510220319930cc252a1cc42550ea854b1bec81f0a22ac45dfd22b4c85f8e4387ca84488114e7dbc7c57517887e4c17c81e083d2ca0df6945a083144ea5258eb18f44b05e135a3833df5fc8efc466ecf9ea7d084141414141414141e1f2"
    ],
    "id": 1
}

执行后收不到任何response。

补充:这个问题有时还可能导致后面发送的正确的RawTx失败,需要把jtNode全部重启,才能解决此问题。错误显示如下:

{
    "id": 1,
    "jsonrpc": "2.0",
    "message": "runtime error: invalid memory address or nil pointer dereference",
    "result": "",
    "status": -189
}

提升错误,从S4提升到S3.

foreso-GitHub commented 3 years ago

20200915版本没有重现此问题。