Commit Graph

1457 Commits

Author SHA1 Message Date
tomFlowee 31953638d1 Display 'sent-to' address
For a transaction we sent elsewhere, show which address
was the recipient of the funds.
2023-05-06 17:51:53 +02:00
tomFlowee 24ccad719b Add senders/receivers to TransactionDetails screen 2023-05-06 17:27:24 +02:00
tomFlowee fadecb369c Expand the transaction-info page.
Add a lot more userful information to the mobile transaction-info page.
2023-05-06 17:02:06 +02:00
tomFlowee 463077e569 Mark tag as deprecated. 2023-05-06 16:59:41 +02:00
tomFlowee 24dcdefd8b Remove obsolete version check
This added support for an older version of Qt, but we moved to require
an even newer one. Making the check irrelevant.
2023-05-06 16:12:14 +02:00
tomFlowee faf8529f71 Show consistent minus' on prices
Both the 'price then' and 'price now' fields always show a positive
number.
2023-05-06 14:40:29 +02:00
tomFlowee 5c25710bbe Avoid work.
Don't load the currency files I'm not actually processing.
2023-05-06 14:32:49 +02:00
tomFlowee 5be3a6e1f1 Remove dead code. 2023-05-06 12:45:52 +02:00
tomFlowee 88440a6eff Various fixes in PriceDataHistory
Fixes: #16

* Don't store the initial dummy value '100,-' in the history.
* Don't store the 404 server reply as a price file.
* On switching of currency, instantly try downloading the
historical prices instead of waiting for the next restart.
2023-05-06 12:45:33 +02:00
tomFlowee d12618f6bc Fix days math
This avoids math problems when the two dates are in a different month.
2023-05-06 11:54:03 +02:00
tomFlowee b0c22c98e1 Fix regression; make green check show up again
On having a correct address we validate it and show that green check.
This follows the refactor where we moved the logic to the AddressInfo
QML class.
2023-05-06 11:34:42 +02:00
tomFlowee a6774ef8fc New Andoid release version 2023-05-04 20:09:43 +02:00
tomFlowee 2e4860f1c1 Fix unit test sometimes failing
As the code is by nature probabilistic, the unit test needed to be a
little more flexible in handling different outcomes.
2023.05.0
2023-05-02 20:07:39 +02:00
tomFlowee 4bebaa27eb Fix use after free.
The 'erase' actually deletes the wtx, so we should not reference the
txid from it after we call erase.

Found with valgrind.
2023-05-02 20:06:46 +02:00
tomFlowee 8534f6368f New version 2023-05-02 16:07:22 +02:00
tomFlowee 28c11cf067 Import translation updates from crowdin 2023-05-02 15:58:03 +02:00
tomFlowee 1aa3503b06 Fixlets in i18n 2023-05-02 15:55:00 +02:00
tomFlowee 2975b5e5d7 Make 'importing' not be for any new wallet. 2023-05-02 12:21:23 +02:00
tomFlowee 1929e99a4a Fix behavior on initial sync
After the sync is ended is now actually shows the QR.
2023-05-02 12:18:40 +02:00
tomFlowee bb4e0bc138 Always show BCH value on testnet
The feature to show only the exchange-rate based value on the
main screen doesn't make sense on anything but mainnet due to
the simple fact that thats the only one that has an exchange rate.

We hide the feature on testnet and make it always show the BCH
value on the overview screens.

Notice that the actuall setting, as written in the config file,
is shared between chains. We only have one confg file. So any
solution with default values would not work.
2023-05-02 11:14:15 +02:00
tomFlowee 527e7895ef Merge branch 'master' into PaymentRequest 2023-05-02 10:53:16 +02:00
tomFlowee 3dfb2b3d38 Port the startupscreen and desktop receive tab too
This makes the new PaymentRequest design be used by all components.
2023-05-02 10:52:37 +02:00
tomFlowee 4f93cdface Cleanup layout of receive tab 2023-05-02 10:52:37 +02:00
tomFlowee 4ba71ff870 Improve payment-request tracking
We introduce a new WalletkeyView which is a class that provides a
thread-safe view on a single private-key in the wallet. Detecting all
transactions depositing money in that key and thus being an ideal
backend for the PaymentRequest.
2023-05-02 10:52:37 +02:00
tomFlowee d0b5134527 Create a functional Payment Request screen.
We now use a better design where the PaymentRequest object is owned by
QML.
2023-05-02 10:52:37 +02:00
tomFlowee 1e73c5bee5 Step one of rebuilding the payment-requests
This mostly removes the less than successful architecture.

This architecture stems from my first attempts at mixing C++ and QML, and
its not great.
As we can see from the removals, it touches a lot of places and
especially the wallet owning them is messy, but in QML we have to do a
lot of null pointer checks, also not exactly readable.
Lets try something different.
2023-05-02 10:52:37 +02:00
tomFlowee 374480bfdb Detect problem and bail early.
When the wallet already noticed a new block but the blockchain database
doesn't have it, we should just bail.
The only way this is likely to happen is because a previous run of the
wallet didn't write out its data. We keep the assert for that case, but
in release builds we are now more robust.
2023-05-01 21:51:25 +02:00
tomFlowee 1b2ad144c1 Avoid hitting assert
QML tends to call our getters even in unrealistic scenarios, which means
an extra check is useful to avoid hitting an assert, or doing an out-of-
bounds access.
2023-05-01 21:51:25 +02:00
tomFlowee 167c590b78 Use triple equals in JS 2023-05-01 21:51:25 +02:00
tomFlowee 6ac8005ea7 Remove dupliacte option. 2023-05-01 21:51:25 +02:00
tomFlowee cd62fbcfe5 Move the info popup above the rest
We no longer show the feedback text below the address label
and additionally the tapping of the address label will also
cause the copying to be started.
2023-04-25 14:18:57 +02:00
tomFlowee c89f90d253 FIx startup race condition
Ah, seems that the signal 'ApplicationActive' is also sent at the app startup,
which this code didn't handle too well.
Now we ignore this signal until we are property started.
2023-04-24 15:36:17 +02:00
tomFlowee 924774eeca Honor offline requests for this new feature. 2023-04-24 12:24:23 +02:00
tomFlowee 4384d73d10 increase version 2023-04-20 10:04:13 +02:00
tomFlowee 534ea13b7b Handle waking up too. 2023-04-19 15:28:10 +02:00
tomFlowee 5d2671b772 Handle fast tapping on the keyboard
This solves the UX issue where tapping a certain button fast in
sequence, we only acted on every other one.
Turns out, half were registered as 'double clicks'.
2023-04-19 15:04:39 +02:00
tomFlowee 22d3cc1c5f Fix accidental refactor.
Moved this yesterday, should not have.
This method is called every single time the app is behind and reaches tip.
2023-04-19 13:56:04 +02:00
tomFlowee e9d425dc35 Notice a TODO for this to-be-rewritten class
The console output shows a warning about this code, so better
note down the source of this issue.
2023-04-19 13:54:49 +02:00
tomFlowee ec065fe32a fix whitespace indent 2023-04-19 13:53:50 +02:00
tomFlowee 0559a3b79d Fix constness cppcheck issue
Avoid using a non-const iterator on a const container.
2023-04-19 13:36:34 +02:00
tomFlowee 34292dbe96 Remove unused parameter. 2023-04-19 13:35:35 +02:00
tomFlowee 3346342784 Add 'max funds' feature to 'build transaction'
Allow the selection of all funds in a wallet to be sent to a
destination.

This also refreshes the UI layout a little.
2023-04-18 22:09:45 +02:00
tomFlowee 47b4e1ea0a Synchronize the errorRed colors
This adds a errorRedBg 'background' color for a popup with normal white
text on top of it.
2023-04-18 21:54:43 +02:00
tomFlowee 644556c74a Avoid referencing a const container as non-const
That may cause the CoW container to be copied for no good reason.
2023-04-18 21:22:21 +02:00
tomFlowee 686f4ab1af Fix wallet not showing in some cases.
This handles the special usecase where we replace the only existing
wallet with another one.
2023-04-18 21:21:01 +02:00
tomFlowee bd8ded906b Move away from std::rand()
Make sure everyone uses the randomness from openssl (via Flowee
libraries).
2023-04-18 21:09:45 +02:00
tomFlowee 0c6a35876b Fix a new wallet sometimes not seeing new transactions 2023-04-18 19:29:43 +02:00
tomFlowee 53166485c3 Add more background around logo
Some phones have rather extreme rounded edges around the image,
which cut off too much of the logo to be comfortable.
This makes the logo a bit smaller with more blue background that
is Ok to be cut off.
2023-04-18 14:52:53 +02:00
tomFlowee 79b9ec822a Avoid rounding. 2023-04-18 14:34:00 +02:00
tomFlowee 1ddcc3b05a Don't accept unconfirmed tx while doing the import 2023-04-18 14:18:01 +02:00