{"action":"created","issue":{"url":"https://api.github.com/repos/OmniLayer/omnicore/issues/89","labels_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/89/comments","events_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/89/events","html_url":"https://github.com/OmniLayer/omnicore/issues/89","id":90562088,"number":89,"title":"Not all UI views handle block reorganizations properly","user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OmniLayer/omnicore/labels/bug","name":"bug","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-24T04:32:46Z","updated_at":"2015-06-25T02:37:04Z","closed_at":null,"body":"I noticed it while testing with the current 0.0.10 branch, but not yet with the UI branch, so the results may already be different there.\r\n\r\nNot all UI views are updated after reorganizations or chain forks:\r\n\r\n - [ ] overview: balances are not cleared\r\n - [x] balances\r\n - [x] send dialog\r\n - [ ] trading interface: address selectors are not cleared (trades are)\r\n - [ ] trade history: not cleared\r\n - [ ] trade cancel dialog: address selectors are not cleared\r\n - [ ] transactions: transactions are shown as unconfirmed, no details available\r\n \r\nAfter a restart, all views are fine.\r\n\r\nIn regtest mode, it can be triggered with:\r\n```shell\r\n# generate transactions ...\r\n$ ./src/bitcoin-cli getblockhash 3 # or anything\r\n3b2d47cf687c118d7bfb3c6a2213bd6934c91ae5142e413f0358a51a9dd8e8ec\r\n$ ./src/bitcoin-cli invalidateblock 3b2d47cf687c118d7bfb3c6a2213bd6934c91ae5142e413f0358a51a9dd8e8ec\r\n$ ./src/bitcoin-cli setgenerate true 1 # required to trigger update\r\n[\r\n    \"4eeb404c435f51b12acbe210c6dc057d3834835cb06941fd8d64808e6d29ff08\"\r\n]\r\n```\r\n\r\n![overview](https://cloud.githubusercontent.com/assets/5836089/8322721/55f6fcf8-1a3a-11e5-98fe-a37da7334a0c.png)\r\n\r\n![trade_ui](https://cloud.githubusercontent.com/assets/5836089/8322725/59379d64-1a3a-11e5-9161-51d02170840e.png)\r\n\r\n![trades](https://cloud.githubusercontent.com/assets/5836089/8322726/5b1cd77a-1a3a-11e5-8e4f-423dfb9d6115.png)\r\n\r\n![trade_cancel](https://cloud.githubusercontent.com/assets/5836089/8322734/68cbcc28-1a3a-11e5-9373-64c2c2d5b57a.png)\r\n\r\n![txhistory](https://cloud.githubusercontent.com/assets/5836089/8322729/5d77b2b0-1a3a-11e5-88a2-5b83f9ad8476.png)\r\n\r\nIn the BTC history the transaction details are still available, and transactions are flagged as \"conflicting\", but I don't think this is something we should necessarily mirror:\r\n\r\n![tx_btchistory](https://cloud.githubusercontent.com/assets/5836089/8322756/a95678b0-1a3a-11e5-9409-3ec19dd3e53e.png)\r\n"},"comment":{"url":"https://api.github.com/repos/OmniLayer/omnicore/issues/comments/115076490","html_url":"https://github.com/OmniLayer/omnicore/issues/89#issuecomment-115076490","issue_url":"https://api.github.com/repos/OmniLayer/omnicore/issues/89","id":115076490,"user":{"login":"dexX7","id":5836089,"avatar_url":"https://avatars.githubusercontent.com/u/5836089?v=3","gravatar_id":"","url":"https://api.github.com/users/dexX7","html_url":"https://github.com/dexX7","followers_url":"https://api.github.com/users/dexX7/followers","following_url":"https://api.github.com/users/dexX7/following{/other_user}","gists_url":"https://api.github.com/users/dexX7/gists{/gist_id}","starred_url":"https://api.github.com/users/dexX7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dexX7/subscriptions","organizations_url":"https://api.github.com/users/dexX7/orgs","repos_url":"https://api.github.com/users/dexX7/repos","events_url":"https://api.github.com/users/dexX7/events{/privacy}","received_events_url":"https://api.github.com/users/dexX7/received_events","type":"User","site_admin":false},"created_at":"2015-06-25T02:37:04Z","updated_at":"2015-06-25T02:37:04Z","body":"`metadexcanceldialog` and `tradehistorydialog` use `reinitOmniBalance`, which doesn't seem to exist.\r\n\r\nThe balances on the overview page and balance tab receive the signal, but don't clear properly. The identifiers are not identifiable.\r\n\r\nWild guess: the global balance objects might be the reason."}}