bitshares-core icon indicating copy to clipboard operation
bitshares-core copied to clipboard

Random lost of notice of broadcast result

Open pluswave opened this issue 7 years ago • 2 comments

In some rare case, notice of broadcast (broadcast_transaction_with_callbac k) result never happens.Here is the rpc log in the server:

2017-11-17T02:11:33                th_a:?           operator() ] "server": server msg->get_payload(): {"method":"call","params":[3,"broadcast_transaction_with_callbac
k",[5505,{"ref_block_num":34565,"ref_block_prefix":1675912594,"expiration":"2017-11-17T02:11:46","operations":[[0,{"fee":{"amount":"1648","asset_id":"1.3.113"},"from"
:"1.2.422474","to":"1.2.435909","amount":{"amount":"488119500","asset_id":"1.3.113"},"memo":{"from":"BTS85A5m2zXwi4HQTYvAcjpYqqBYzCJg1C4RK3pZk32gmahdwEh4L","to":"BTS7
9zrzGbRxqxa3DHt4wNqWKs44vwL4nypjmUV9cKzyLByNEuaCw","nonce":"386786480697584","message":"b10b23bc9e38f85f72445a0ad3d5ff88e7807566a22c39df1a338648ff034390"},"extensions
":[]}]],"extensions":[],"signatures":["200b1f635d4ac854c809d63587af9c841f30f752e45cc5ede8685a802603597a86695e706def8c6966b35ba0b2905d6f16eaceee46109b8971644d80cab47d4
a1e"]}]],"id":5505}                       websocket.cpp:201
2017-11-17T02:11:33                th_a:?         send_message ] message: {"id":5505,"jsonrpc":"2.0","result":null}                     websocket.cpp:161

I can't find a related 5505 notice in the log file.

more info: the broadcast failed in the end, but the client (bitsharesjs /bitsharesjs-ws) never know this because of lost notification.

pluswave avatar Nov 20 '17 13:11 pluswave

https://github.com/steemit/steem/commit/0fb40572c74791f85a0152c5bceb68ec9331e6c3 is related.

abitmore avatar Nov 20 '17 20:11 abitmore

Actually, should check https://github.com/steemit/steem/pull/592, however, the code is a bit old, I'm not sure if it will work without additional issue.

abitmore avatar Nov 20 '17 20:11 abitmore