caivega / ipfslib

Other
2 stars 1 forks source link

S2 - jt_sendTransaction,盒子上的新链[box-admin.elerp.net:10201],压测后,发送交易显示成功,但这个交易一直查不到,余额也没有变化 #98

Closed foreso-GitHub closed 4 years ago

foreso-GitHub commented 4 years ago
  1. 在盒子上的新链[box-admin.elerp.net:10201]进行压测
  2. 当时压了大约3000条交易,前面1500条正常执行,然后开始出错。
  3. 具体错误就是发送交易显示成功,但这个交易一直查不到,余额也没有变化
  4. 具体交易如下:
    {
    "jsonrpc": "2.0",
    "method": "jt_sendTransaction",
    "params": [{"from":"jLWCJbszAnyFRFbNhmFQ5nyQ1RYa5vAhvm","secret":"snQvdZrd2BskdE1uHCW1sW48Th36b","sequence":3615,"to":"jHb9CJAWyB4jr91VRWn96DkukG4bwdtyTh","value":"1"}],
    "id": 1
    }
  5. 交易结果显示交易成功:
    {
    "id": 1,
    "jsonrpc": "2.0",
    "result": [
        "754FDC80AC49EEA7BDFCD339B5D85639E54332D9B48EDE39870EB94BEAD95614"
    ],
    "status": "success"
    }
  6. 查询该交易:
    {
    "jsonrpc": "2.0",
    "method": "jt_getTransactionByHash",
    "params": [
        "754FDC80AC49EEA7BDFCD339B5D85639E54332D9B48EDE39870EB94BEAD95614"
    ],
    "id": 1
    }
  7. 查询结果
    {
    "id": 1,
    "jsonrpc": "2.0",
    "result": "can't find transaction 754FDC80AC49EEA7BDFCD339B5D85639E54332D9B48EDE39870EB94BEAD95614",
    "status": "error"
    }
  8. 换一组地址密钥,开始几次交易能成功,但数量一多也会出现这个问题,或者是sendTx后没有response。
foreso-GitHub commented 4 years ago

20201105版本上无法重现,应该已经修正。