forked from spesmilo/electrum
-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch Input data for TX's (Amount, Address, etc) -- for the Transacti…
…on Dialog, asynchronously (#1397) * Initial hacky but good stab * tweak * fixed a bug in transaction_dialog * added checking wallet transaction cache first before hitting network * tweak * added global caching to fetch * tweak * Deal with timeouts / server did not answer in fetch * updated comment * updated comments * Be more tolerant of errors from server * tweaks * Added download progress % to transaction dialog * Added intermittent update of tx dialog as the tx's download * tweaks * tweak * Added fetch_cancel for when TxDialog closes - Also catch Transaction deserialization errors * Prepared network class for allowing queue request to a random interface * Parallelized the prevout download. So fast now. So good. * nit * Fix to deleted C++ object QTimer in rate_limited * better caching -- cache results even if user cancels * attempt to work around possible pyqt gc bug * tweak * nit * nit * nit * Maded the input fetcher much more resilient - It copes well with errors & cancelation now, cleaning up after itself - It retries 1 time in the case where a laggy server returned nothing (timed out) Overall it's looking very solid. * Added the magical checkbox that proved so direly needed * nit * nit: renamed attributes _dl_input -> _fetch_input * Fixups: Eat less memory, fetch from wallet even if partial, etc Also deal better with errors. But the big one is eat less memory. * nit * nit * updated a comment * nit
- Loading branch information
Showing
5 changed files
with
418 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.