Closed zyd82 closed 3 years ago
版本v0.2.1-testing,9545上验证通过
9545已验证,验证版本v0.5.3-dev
{
"id": 1,
"jsonrpc": "2.0",
"message": {
"reason": "1 errors",
"result": [
{
"error": "sequence must be positive integer",
"message": {
"from": "jPdx7mG595P6CowtGYbxRkik9HdWUWtB2J",
"memos": [
"abc"
],
"sequence": -6,
"to": "jGQ14U9BeHn6kV9eofnVsshSCxAecBawPM",
"value": "10"
},
"status": -284
}
]
},
"result": [
""
],
"status": -278
}
情况一: 9545上sequence为0,
jt_sendRawTransaction返回如下:
7545上sequence为0,jt_sendRawTransaction返回交易成功,余额发生相应变化。
情况二: 当前sequence为19,9545上sequence为17.5
jt_sendRawTransaction返回如下:
当前sequence为19,7545上sequence为17.5,jt_sendRawTransaction返回如下:
其他情况: 当前sequence为19,7545上sequence为20.5,jt_sendRawTransaction返回交易成功,余额发生相应变化 当前sequence为20,9545上sequence为21.5,jt_sendRawTransaction返回交易成功,余额发生相应变化 当前sequence为21,9545上sequence为-21.5,jt_sendRawTransaction返回交易成功,余额发生相应变化 当前sequence为22,9545上sequence为-21.5,jt_sendRawTransaction返回交易成功,余额发生相应变化
建议sequence一律为正整数,非正整数直接返回错误提示信息。