Commit Graph

1351 Commits

Author SHA1 Message Date
tomFlowee b15f0f651d Fix a copy paste error, make this work more than once. 2023-04-17 16:17:03 +02:00
tomFlowee 2799ccb151 Make model a bit more robust in an async world.
Since recently the wallet can delete stuff, we need the model to
be more robust in accepting data not being there.

The "async" statement refers to the fact that the wallet acts
one messages from the network, which may be in any thread.
The signals from the wallet get handled by the WalletHistoryModel in the
Qt-UI-thread, asynchronous.
2023-04-17 16:16:31 +02:00
tomFlowee 9a6b9686b9 UX; move most complicated to bottom. 2023-04-17 14:27:54 +02:00
tomFlowee 35445e8e5c Reduce scope of variable. 2023-04-17 13:14:49 +02:00
tomFlowee d10db500ab Add detection of state problem
If we are lacking transactions this may cause some data inconsistencies
for the UI. Possibly causing a nullptr dereference.
This helps with early detection.
2023-04-17 12:33:42 +02:00
tomFlowee a8725ec4a9 new version 2023-04-09 11:30:26 +02:00
tomFlowee 939a22a015 Show 'payment to self' better 2023-04-08 14:19:01 +02:00
tomFlowee ab779242aa Add scroll thumb to the history list.
This allows us to navigate a longer list much easier.
2023-04-08 14:05:44 +02:00
tomFlowee b5dce3070a Make ScrollThumb better suited for mobile. 2023-04-08 14:03:23 +02:00
tomFlowee bb94edee23 Only show the title "your wallets" when you have > 1 2023-04-08 12:53:04 +02:00
tomFlowee 0970d45cc4 Fix ordering of transaction history
Move the emits of newly found transactions in order to make the
(semi-)recursive call of adding transactions be done in the right
order.
2023-04-07 12:44:22 +02:00
tomFlowee adc7edb250 Make the wallet emit tx removals
Now the wallet handles inserts-in-place by making removing and then
re-adding of transactions, the 'txIndex' is no longer guarenteed to live
forever.
So we now tell the world, and specifically the history model, about the
removal of txIIndexes.
2023-04-05 19:41:40 +02:00
tomFlowee 88f1d81443 Make sure we send the bloom filter a lot less often
One notable behavior change is that we increase the 'change' gap
considerably for wallets that are known to have 'cashfusion'
transactions as those use a lot of change addresses.

This chang also increases the normal gap to avoid people losing history
when importing from another wallet.
2023-04-05 18:07:09 +02:00
tomFlowee 515b09e721 Add some logging for the new code. 2023-04-04 22:33:28 +02:00
tomFlowee e20b476357 Update fusion comment on recheck
When we notice we used all HD keys on finding a transaction, we check
it again after creating a bunch of extra keys.
Now we also use the re-created comment which is where fusion transactions
place the amount of outputs matched.

This is a purely visual change.
2023-04-04 21:55:42 +02:00
tomFlowee 9f201a2627 Start using logging categories.
Instead of dumping everything in zero, use actually distinct categories
which allows logViewer to use them better.
2023-04-04 16:24:28 +02:00
tomFlowee 73e10f8bef Fix reordering of finding transactions
In our wallet we very rarely end up in a situation where we have to ask
the same transactions twice from a peer due to us having generated a
bunch of new keys from a HD wallet in the middle of a series we asked
that peer. Making the filter we sent at the start of the series be
outdated halfway through.

This is now handled properly.

This adds a unit test which tests that we now reach the right balance
and can add the same block multiple times without it failing.

Fixes: #12
2023-04-04 13:36:07 +02:00
tomFlowee a06a073595 Fix assert, as found by linter. 2023-04-03 11:46:32 +02:00
tomFlowee 6f46a18608 Follow flowee-libs changes
This implements the new API needed for the change in flowee libs.
The commit there is: 1d309cd7ae9bb668b481fe650e17e15fad037b2b
2023-04-01 23:01:37 +02:00
tomFlowee ec8fa4b95d Minor spacing fix 2023-03-29 16:06:12 +02:00
tomFlowee d0f56c85ee Don't send bloom filter more often than needed. 2023-03-29 15:43:22 +02:00
tomFlowee 082cba55ae Comments and const fixes. 2023-03-29 15:42:53 +02:00
tomFlowee dac5cf1222 Replace circle with simple progresbar
Built a simple progresbar from rectangles.
2023-03-23 20:03:39 +01:00
tomFlowee 67d2553d2e Fixes and cleanups
The dialog now visually looks the same as others on mobile.
2023-03-23 12:55:53 +01:00
tomFlowee e6efedee87 Fix positioning
Anchors are not fully declarative.
See report on jira at bugreports.qt.io with issue-code: QTBUG-112230
2023-03-23 12:34:16 +01:00
tomFlowee 01f87acc28 Add address on QR
This exports the payment-request address to the QML side.
We use this to show under the QR the address we are requesting to send
to.

This is quite useful for users wanting to manually check if things are
going well.
2023-03-21 23:33:23 +01:00
tomFlowee 3bdebe7b8d Introduce GUI settting: show bch.
On the main screen, also known as the "Activity view" this allows the
user to choose to only see fiat or see both Bitcoin Cash and fiat values
listed next to each transaction.
2023-03-21 22:28:41 +01:00
tomFlowee c4836213e5 Remove unused include 2023-03-21 21:55:41 +01:00
tomFlowee 4f595b5a36 Document "Pay" properties. 2023-03-21 21:43:34 +01:00
tomFlowee 80c365f3c4 Avoid cutting off large balances
Split the BCH and fiat prices over two lines.
2023-03-21 21:39:36 +01:00
tomFlowee bfac327fb1 Make the font smaller to make it fit. 2023-03-21 21:27:08 +01:00
tomFlowee 969ed7a4d4 Move to Qt 6.4.3 for Android 2023-03-21 19:18:24 +01:00
tomFlowee 7b35d70e53 Update Qt version 2023-03-21 18:23:11 +01:00
tomFlowee 9508df00dc fix isMoved check 2023-03-15 19:19:16 +01:00
tomFlowee 9bfbb3ea51 Replace placeholder with some basic icons. 2023-03-15 18:41:54 +01:00
tomFlowee 84fde61373 Give credit to a very active beta tester. 2023-03-15 17:17:29 +01:00
tomFlowee 0f11944b03 Iterate on account history look.
This show the bch price on the front page too and shows 'moved' as a
label in the popup.
We give the full width to cashfusion transactions, no point is listing
the amount of sats fee paid.

This always puts a plus or minus in front of the price indicating the
receiving vs sending of funds.
2023-03-15 16:27:12 +01:00
tomFlowee 4b74e8234c Coding style; use 'return' in JS. 2023-03-15 16:04:59 +01:00
tomFlowee f05f3d52a3 Fix rounding for negative numbers. 2023-03-15 16:03:19 +01:00
tomFlowee fde8cad597 Be consistent with usage of 'pixelSize'.
Also make the unit-label follow the widget property for font sizing.
2023-03-15 15:36:45 +01:00
tomFlowee 3171898c8c Fix "hamburger menu too hard to touch"
This enlarges the touch area by 3x in order to make it
much easier to hit.
Notice that we are still limiting this to the header-area only, so only
3 times as wide, really.

Thanks fly to fshinetop for reporting it (and lots more).
2023-03-15 13:35:03 +01:00
tomFlowee e032e79f96 Make single items also have the 'grouping' rect
Feedback has shown that it is prettier to simply have a single rect for
an item that is ungrouped.
2023-03-15 11:19:55 +01:00
tomFlowee a9c781c8d7 Add explanation header 2023-03-15 10:55:36 +01:00
tomFlowee cfdc72a2f2 Fix centering of text in case of hamburgermenu. 2023-03-15 10:55:36 +01:00
tomFlowee fbe7a74b36 Transform the Schnorr tooltip from hover to click
This allows it to be used on a mouse-less interface as well.
2023-03-15 10:55:36 +01:00
tomFlowee 0b99ad1742 Make showing the hd-index possible
This adds a config option on mobile and makes it again show up properly
on desktop.

HDIndex is the derivation-index of a private key.
2023-03-15 10:55:36 +01:00
tomFlowee da2cdb4cda Improve description of feature.
The old was technically not entirely correct.
2023-03-15 10:28:17 +01:00
tomFlowee d7963e4d82 Make pasting a payment url work in more usecases
This moves the code simply to a detail, allowing us to parse things like
the amount as well in a bip21 compatible URL in such usage.
2023-03-13 18:17:23 +01:00
tomFlowee 09b03faab7 Make sure that the hamburger menu is removed on broadcast
We now make sure that the menu accessible from the header is only
there when we are actually on the page where it is relevant.
2023-03-13 18:17:23 +01:00
tomFlowee b133c8fec3 Minor UX fixes 2023-03-13 18:17:23 +01:00