bitshares / bitshares-ui

Fully featured Graphical User Interface / Reference Wallet for the BitShares Blockchain
https://wallet.bitshares.org
MIT License
517 stars 570 forks source link

Auto node switch/Activity tab bug #2257

Open TechsUsInc opened 5 years ago

TechsUsInc commented 5 years ago

Describe the bug 2nd time use after installation of release 2.0.181129. Extremely long node latency check; Activity tab shows recent transactions during latency check. When auto-node connection is complete, recent transaction history disappears from the activity tab for a short time. See log in comments below. Please see #2256 , #1388

To Reproduce Steps to reproduce the behavior:

  1. Before closing current use of UI, go to the activity tab. Also note if auto-node is enabled or disabled via the node access pop up. Close then re-open release 2.0.181129; note latency check spinning wheel is extremely long. Note if still in the activity tab, recent transactions appear during the latency check but disappear once the latency check is complete. After some time the recent transaction history populates.

Expected behavior Quick stable auto-node connection; with current and accurate recent transaction history in the activity tab regardless of auto-node switching enabled or disabled.

Desktop (please complete the following information):

Additional context Add any other context about the problem here. A clear and concise description of what the bug is. log: Checked 1 connections, 0 failed log: Latency result:[object Object] log: Checked 1 connections, 0 failed log: Latency result:[object Object] error: checkConnectionsFailed to connect to wss://eu-west-1.bts.crypto-bridge.org Error: "Connection attempt timed out after 5s" log: Checked 1 connections, 1 failed log: Checked 1 connections, 0 failed log: Latency result:[object Object] log: Checked 1 connections, 0 failed log: Latency result:[object Object] log: Checked 1 connections, 0 failed log: Latency result:[object Object] log: Checked 1 connections, 0 failed log: Latency result:[object Object] log: Checked 1 connections, 0 failed log: Latency result:[object Object] error: checkConnectionsFailed to connect to wss://api.btsxchng.com log: Checked 1 connections, 1 failed error: checkConnectionsFailed to connect to wss://bitshares.openledger.info/ws Error: "Connection attempt timed out after 5s" log: Checked 1 connections, 1 failed

Additional comments With the UI open, and the user in manual node selection (auto-node switching disabled) the recent transactions appear in the activity tab when the UI is closed then re-opened. With the UI open, and the user in auto-node selection (auto-node switching enabled) the recent transactions do not appear in the activity tab when the UI is closed then re-opened again.

clockworkgr commented 5 years ago

@sschiessl-bcp similar issue to https://github.com/bitshares/bitshares-ui/issues/2335 ?

Can you check?

sschiessl-bcp commented 5 years ago

When the auto ping is done, the UI may switch to a new node automatically (if a better one is found). This is intended, if this causes the UI to break the reconnection logic is broken. Needs investigation