caivega / ipfslib

Other
2 stars 1 forks source link

S2 - 发送交易,如果该交易的sequence已经使用过,则要等很长时间才能收到response。 #117

Closed foreso-GitHub closed 3 years ago

foreso-GitHub commented 4 years ago

发送交易,如果该交易的sequence已经使用过,则要等很长时间才能收到response。

  1. 发送交易,sequence=2570,已经存在于区块中 ··· { "jsonrpc": "2.0", "id": 2, "method": "jt_sendTransaction", "params": [ { "from": "j43x4vLAy6hW6AE3r9QqFqudmH2ajBzYm9", "secret": "ssPVnaMNNGpjo5b9TqARyGhMiqWZz", "to": "jLTnL6yUXwuhR1uL3FLTMwG1r4PxZaUECM", "sequence": 2570, "value": "1", "fee": "10", "memos": [ "AAAAAAAA" ] } ] } ···

  2. 等了大概20秒,才收到response。如果sequnce正确,1秒以内收到response。

    {
    "id": 2,
    "jsonrpc": "2.0",
    "message": "failed to submit transaction by j43x4vLAy6hW6AE3r9QqFqudmH2ajBzYm9, 014AC0A2E8AD4B3444A5199DAABB4CB00CC1673A1EBC32BC9EB75ED68E93B72F: terTIMEOUT No replies received and timeout.",
    "result": "",
    "status": -278
    }
  3. 同样的交易(sequence还是2570)再发送一次,居然显示发送成功了。 ··· { "id": 2, "jsonrpc": "2.0", "result": [ "014AC0A2E8AD4B3444A5199DAABB4CB00CC1673A1EBC32BC9EB75ED68E93B72F" ] } ···

foreso-GitHub commented 3 years ago

版本:20201130-v0.5.3-dev已经修复。