caivega / ipfslib

Other
2 stars 1 forks source link

S3 - jt_sendRawTransaction,当发送多个内容一样的rawTx时,收不到response #106

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 4 years ago

jt_sendRawTransaction,当发送多个内容一样的rawTx时,收不到response。

{
    "jsonrpc": "2.0",
    "method": "jt_sendRawTransaction",
    "params": [
"1200002280000000240000099361400009184e729fff68400000000000000a732102064d6800ea3fb2de01804f4d7257088eeec355c516548ec8c029ea9c6fc98b9274463044022021edc03359a087fddfc4a4169e452a5bf775051fc6f8f1161591be559ce4ebd0022042814d857b3c6ae933d9f335992c3419213bec765fc5bed9a7513c19dbb4bc668114e7dbc7c57517887e4c17c81e083d2ca0df6945a083144ea5258eb18f44b05e135a3833df5fc8efc466ecf9ea7d084141414141414141e1f1",
"1200002280000000240000099361400009184e729fff68400000000000000a732102064d6800ea3fb2de01804f4d7257088eeec355c516548ec8c029ea9c6fc98b9274463044022021edc03359a087fddfc4a4169e452a5bf775051fc6f8f1161591be559ce4ebd0022042814d857b3c6ae933d9f335992c3419213bec765fc5bed9a7513c19dbb4bc668114e7dbc7c57517887e4c17c81e083d2ca0df6945a083144ea5258eb18f44b05e135a3833df5fc8efc466ecf9ea7d084141414141414141e1f1"
    ],
    "id": 1
}
caivega commented 3 years ago

已经修复,待下一个build验证

这种情况下,第二个会显示是重复提交

{
"id": 1,
"jsonrpc": "2.0",
"message":{
"reason": "1 errors",
"result":[
null,
{
"error": "failed to submit transaction 3B5482FEDE6D437DB49BD714162672996839D638CB236C2774C9187074553361",
"message":{"engine_result": "terRETRY", "engine_result_code": -99, "engine_result_message": "Retry transaction.", "tx_blob": "120000228000000024000000016140000000000003e868400000000000000a73210330e7fc9d56bb25d6893ba3f317ae5bcf33b3291bd63db32654a313222f7fd02074473045022100ca8957fbee153aa68fdc22672116be5256c6ab0ccad944ae6ebda474d776b2fe02206422b6d5f4abb7a560b4d947a56cfd3b7a1c65839d89c25e0bc85b3098b1229e8114b5f762798a53d543a014caf8b297cff8f2f937e883140e919ef4b7dbe3c9b77788a3c1b85812572d7aa0",…},
"status": -278
}
]
},
"result":[
"3B5482FEDE6D437DB49BD714162672996839D638CB236C2774C9187074553361",
""
],
"status": -278
}

如果提交的raw transaction已经进了区块,会显示如下错误信息

{
"id": 1,
"jsonrpc": "2.0",
"message":{
"reason": "2 errors",
"result":[
{
"error": "failed to submit transaction 3B5482FEDE6D437DB49BD714162672996839D638CB236C2774C9187074553361",
"message":{"engine_result": "tefALREADY", "engine_result_code": -198, "engine_result_message": "The exact transaction was already in this ledger.",…},
"status": -278
},
{
"error": "failed to submit transaction 3B5482FEDE6D437DB49BD714162672996839D638CB236C2774C9187074553361",
"message":{"engine_result": "tefALREADY", "engine_result_code": -198, "engine_result_message": "The exact transaction was already in this ledger.",…},
"status": -278
}
]
},
"result":[
"",
""
],
"status": -278
}
foreso-GitHub commented 3 years ago

版本:20201114-v0.5.2-dev已经修复。