This PR fixes#2312 which are four things:
* getaddressinfo was not implemented in spectrum which results in "method not found"
* There was an unrelated KeyError which occured in Transactions where one the output was a change-address. It's a bit unknown why that hasn't occured earlier. At least it was diffcult to spot as the fetch_transactions call was way to huge and very confusing. So ...
* the fetch_transactions call was refactored in its own class, TxFetcher. As we did that, we also moved two other related files in a newly created wallet-package.
* Tiny bug around tx["amount"] which only exists as tx["flow_amount"] for transactions.
* have multiple tx items with different vouts in the same tx
* pytest added
* additions to pytest
* account for the funding utxo
---------
Co-authored-by: k9ert <k9ert@gmx.de>
* refactor fixtures and add testnet fixture
* make timeouts configurable
* test timeout more properly
* refactor utxo_scanning
* refactor psbt_creator and utxo_scanner into commands (pattern)
* basic testing based on testnet
* import fix
* Update tests/test_commands_utxo_scanner.py
Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
* Update tests/fix_testnet.py
* changes after the review
* black and updating black
Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
* Added tests/bitcoin to gitignore
* Ensure locked UTXO can't be used for transactions, fix rounding error in coin selection, fix styling/text in general settings.
* overhaul of checkbox logic in utxolist including mouseover event for checkboxes, manage psbt button action added, icon info popups added,design changes in utxo- and txlist to make the display quieter
* change of balance display, scrollbars for main and tx table, bugfixes (pagination, coin selection, unsigned labeling) & some styling finetuning
* deleted locked utxo balance calculations, added doc strings regarding balances
* jinja comment added in tx table, making scrollbar less vivid, tx table settings changed to no compact view toggle and scrollbar on by default
* more granular amount properties, little test fix.
* applying new amount properties to the frontend and other parts of the code & improving balance display design
* refactored a_simple_wallet to be only used in test_rest once
* tests for amounts and test performance optimisations.
* fix spec_node_configured
* fix spec_wallet_send.js
* fix spec_wallet_utxo.js
* keep action teaser div hidden on wallets overview.
* minor bug fix in tx-table, added includeShadowDom to cypress.json, adapted spec_wallet_utxo.js to new utxo list logic and added tests of new functionality to it.
* fix spec_plugins.js and switch back to includeShadowDom false
The problem with true is, that you are no longer able to spot
when you need to apply the workaround described in
https://docs.cypress.io/api/commands/shadow#Known-Issue
as you only need to apply in a shadow-DOM.
Feel free to switch it back in any test you see fit.
Cypress.config('includeShadowDom',true)
* better organisation of wallet utxo spec file
* some wait-tweaks to cypress tests to make them run smoother on cirrus, note: cypress tests green in local dev.
* longer wait in spec_elm_multi_segwit_wallet.js
* fixing spec_elm_multi_segwit_wallet.js
* more checks whether checkboxes get selected and additional waits for cirrus in spec_wallet_utxo.js.
Co-authored-by: Kim Neunert <k9ert@gmx.de>
* initial blocktime (tests)
* regtest tx
* json loads
* bit more testing
* complete txlist-test
* internediate commit
* Feature: prevent_mining for bitcoind
* speedup ctrl-c
* proper handling of len() == 0
* having automatic invalidation in the txlist cache
* fix cypress automatic build
* kick
* blocktime vs. mempooltime in UI
* fix blocktime
* correct time for including historical pricedata
* time is not a good var name
* remove print-statements
* work on tests
* finally fix the test