Commit Graph

2201 Commits

Author SHA1 Message Date
tomFlowee 94140b4a35 Fix a refactor 2022-08-16 00:30:42 +02:00
tomFlowee 1129e12dad Remove schnorr bool app-wide.
If its configurable, it should be per wallet. Not the whole app.
2022-08-15 23:59:12 +02:00
tomFlowee 55599c4708 Add 'new block notification' show/mute setting
Also clean up the settings menu a little and provide a new QML widget:
CheckBoxLabel
2022-08-15 21:16:33 +02:00
tomFlowee 8b81702cb1 remove extra char 2022-08-15 15:10:28 +02:00
tomFlowee ac9717491a Fix API naming
Rename a pure-bitcoin-cash based method naming to no longer
have the word 'price' in it since that is associated with conversion
to another money or currency.
2022-08-14 16:46:23 +02:00
tomFlowee 7f595a5ba4 Avoid lots of qml warnings in testnet4 2022-08-14 00:06:37 +02:00
tomFlowee 665347b9f8 Move balance section out of flickable. 2022-08-14 00:05:40 +02:00
tomFlowee 1dba6a114e Useragent for web requests is useful to have. 2022-08-13 23:22:49 +02:00
tomFlowee b6977642b6 Add an initial populate for the price history. 2022-08-12 23:47:12 +02:00
tomFlowee abe57bd142 Better 'mock' price.
When the user passes in '--offline' we now prefer to show the last known
price of Bitcoin Cash.
2022-08-12 23:47:12 +02:00
tomFlowee f27667c172 Integrate historical price module
For mined transactions we now use the historical fiat price of BCH
instead of the current.

This will give us a much more stable and historically accurate view of
our transactions.

Fixes: #7
2022-08-12 23:46:18 +02:00
tomFlowee cbef771107 Various fixes 2022-08-12 19:41:46 +02:00
tomFlowee 58dd0a5f60 Add bool to disable processLog 2022-08-12 16:01:59 +02:00
tomFlowee bbef1aab6c Implement TODOs and average over a day.
This replaces the simple version with a proper averaging implementation
that takes all the price measurements and returns a single value per
day which is the average of all the measured ones.
2022-08-12 15:41:57 +02:00
tomFlowee 5eda36008d Add some more functionality to the price history 2022-08-11 13:48:59 +02:00
tomFlowee b81910226d Start new class 2022-08-02 21:49:30 +02:00
tomFlowee 0245577674 Fix a corneracse UX issue
When you open a pin-to-pay wallet AND within the timeout (200s) convert
it into a pin-to-open wallet AND you open it again, you might get
surprised to see it close automatically after some timeout.

Well, got to love testers to find this well hidden critter.
2022-07-22 11:46:26 +02:00
tomFlowee 07f35fbba4 Make the links a section of their own 2022-07-21 18:24:14 +02:00
tomFlowee bb45a9cf09 Avoid ret-dot on closed wallet appearing. 2022.07.0 2022-07-21 16:37:18 +02:00
tomFlowee 004787cada Various fixes after user-testing session. 2022-07-21 16:09:08 +02:00
tomFlowee fff90de695 Fixlets and simplification in unit unit test
This reflects that we no longer have a 3-state but that a wallet is
either open or closed.
2022-07-21 14:21:31 +02:00
tomFlowee 3608940ad8 Small changes to he readme 2022-07-21 13:37:41 +02:00
tomFlowee e1cb6d3c40 Make connection between payment request & wallet more robust
As they have a pointer to each other we have to be a bit smart about how
removing works and how deletion works. Because otherwise we'll end up
with calling a deleted object.
2022-07-21 13:10:44 +02:00
tomFlowee 1971b57264 Fix error showing up and make sure we echo bullets here 2022-07-21 11:48:03 +02:00
tomFlowee c050569672 Make decrypt entry have initial focus. 2022-07-21 11:40:33 +02:00
tomFlowee 91dbd1cb2d Add 'open' context menu on account list item
To get us to a password-entry dialog.
2022-07-21 11:38:52 +02:00
tomFlowee 9c451ba242 Allow setting even a saved request to have no parent. 2022-07-20 20:32:57 +02:00
tomFlowee c1f386b311 Fix the showing of the transactions.
This finally fixes the odd case where a default wallet that is fully
encrypted did not show any transactions directly after the user typed
the password.
Turns out this is some weird cornercase in Qt/QML and removing some
code fixes this.
The downside; we now show a qml warning on startup. 🤷
2022-07-20 20:32:57 +02:00
tomFlowee 489e2e1464 Make payment request act on wallets opening/closing 2022-07-20 18:38:56 +02:00
tomFlowee 8fdc569364 locked utxo fixes
Count user-locked utxos again in balance
Mark wallet in need of saving when manually locking/unlocking a utxo.
2022-07-20 14:34:01 +02:00
tomFlowee df6eb5fb4c Improve PR saving and avoid unneeded wallet-writes.
For a payment-request we now remember if its been stored-to-disk so when
it gets removed again before we ever store it, we skip forcing an
unneeded save.
2022-07-15 14:20:58 +02:00
tomFlowee 2fb315bcc2 new version 2022-07-15 10:02:14 +02:00
tomFlowee 11f83f411c Update details pane for encryption support
Wallets can be opened from here now and the backup doesn't just hide but
shows a hint that a backup can only be made when the wallet is opened.
2022-07-14 20:48:05 +02:00
tomFlowee b69f9363dd Don't save temporary payment requests. 2022-07-14 19:38:01 +02:00
tomFlowee 43dff3381a To encrypt a password we now ask the pwd twice.
To make sure the user didn't mistype it.
2022-07-14 19:19:19 +02:00
tomFlowee aede168236 Fixes in saving / encryption. 2022-07-14 17:45:09 +02:00
tomFlowee 6e4aa0065e Switch to the string type for saving mnemonics
This solves a recently introduced debt.
2022-07-14 17:03:00 +02:00
tomFlowee 0d08e7b3e4 Make a pin-to-pay wallet get auto-closed after 200s
This is one of the last features needed for the task.
Closes: #1
2022-07-14 16:11:20 +02:00
tomFlowee d4658564ff Use secure allocator for mnemonic
This ensures that we not swap out this value.
2022-07-14 15:28:23 +02:00
tomFlowee b41fd2b72b Make error logging of this more verbose. 2022-07-14 14:55:39 +02:00
tomFlowee 38ff068dcc Make QR blank when the wallet is encrypted. 2022-07-14 14:55:21 +02:00
tomFlowee 524f47dbf2 Catch and log saving errors on exit. 2022-07-14 14:54:27 +02:00
tomFlowee 67be029cb7 Fix comment. 2022-07-14 14:43:38 +02:00
tomFlowee 2da9274036 On archive, also close wallet. 2022-07-14 14:43:10 +02:00
tomFlowee e0fe6fe532 Fix missing emit.
Now the balances and 'last transaction' fields are updated on decrypt.
2022-07-14 10:52:43 +02:00
tomFlowee 05a4ee34f8 Trap against race-condition on closing a wallet.
Also add some suggestions to avoid work.
2022-07-13 14:16:36 +02:00
tomFlowee 1a5f2541cd Add debug 2022-07-13 13:54:29 +02:00
tomFlowee e610f9d354 Fix logic
This meant to only send an updated filter after 25 mismatches, make it do that now.
2022-07-13 13:54:29 +02:00
tomFlowee 0c9136be3b Refactor wallet encryption
This stops re-loading of the wallet-data on decrypt but instead keeps
the encrypted data in memory next to the (possibly) decrypted data.

This then means we can save a wallet that has its secrets still
encrypted (no password supplied) which is needed in order to propery
support the concept of xpub.

So, now a HD wallet that is closed can correctly sync and create new
public keys (which are needed to sync), including the step of saving
those to disk.
The first time the user provides a password we'll then create the
matching private keys (and their encrypted counterparts) which will then
be saved, and naturally can be used to sign transactions.
2022-07-13 13:54:29 +02:00
tomFlowee 01a5bca7a9 Add more initialiation of crypto lib 2022-07-11 23:26:59 +02:00