Long or blocking calls should be async #642

issue hebasto openend this issue on August 5, 2022
  1. hebasto commented at 9:46 am on August 5, 2022: member

    The comment here is not entirely correct: https://github.com/bitcoin/bitcoin/blob/4bfef0daeb9351c200b5bd09e60596a29b4d3523/src/qt/walletmodel.cpp#L71-L74

    The problem happens when the locks are held and calculating the balance takes a lot of time - causing the GUI to stuck.

    Beside the obvious improvement - drop polling and update only when necessary - the actual balance calculation must be asynchronous otherwise Qt’s event loop isn’t able to make the GUI smooth - noticeable on big wallet. This also applies for anything that takes a lot - whether it requires other locks or not.

    Moved from bitcoin/bitcoin#16874.

  2. hebasto added the label Bug on Aug 5, 2022


hebasto

Labels
Bug


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/gui. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-23 08:20 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me