Commit Graph

1283 Commits

Author SHA1 Message Date
tomFlowee 9b1ec8e271 Make coinbase maturation smarter.
Instead of recalculating every single block, we now use the existing
locking of UTXOs feature to lock coinbase outputs to a certain
maturation height.
This is the traditional trade-off where we store some more data to
avoid work in the common codepath.
2023-02-02 12:49:18 +01:00
tomFlowee 8b4e264c1d Make grammar of comment easier to understand. 2023-02-02 12:48:57 +01:00
tomFlowee d5d5c74cb4 Fixlet in unit test. 2023-02-02 12:46:30 +01:00
tomFlowee 28d787b9c1 On app shutdown, unsubscribe listeners. 2023-01-31 20:36:40 +01:00
tomFlowee caa340768f Make 'chainHeight' property on Pay work better
We now show the estimated tip until the headers chain has been synched.

This follows p2pnet listener interfaces changes.
This uses the nicer interfaces setup to make available for FloweePay
the signal that we have reached the tip of the headerChain
2023-01-31 20:36:12 +01:00
tomFlowee 50e2176efd Remove unused property 2023-01-31 16:25:48 +01:00
tomFlowee ca1cd4a998 Avoid possible deadlock. 2023-01-31 14:06:10 +01:00
tomFlowee 7d9be8026b Update 'behind' text to make progress clearer.
We now update per day instead of per week. Nice for old imports.
2023-01-30 19:11:23 +01:00
tomFlowee 9338013398 [UX] don't use 'unconfirmed' in the UI
Instead use 'seen' for incoming and 'sending' for outgoing transactions.
2023-01-30 18:52:01 +01:00
tomFlowee 46531d06cb UX fix: show account sync widget on importing wallet
Seems like the Column is better for usage in a listview header as it
actually honors the height change.
2023-01-30 17:58:11 +01:00
tomFlowee 8a72fd1e6a Fix first blockheight property value on AccountInfo
Now we correctly have the first blockheight for wallets on creation.
2023-01-30 17:42:27 +01:00
tomFlowee 90cdfd8059 Add some comments on state 2023-01-30 17:12:22 +01:00
tomFlowee f80540b7e9 Another cleanup, like parent commit. 2023-01-30 17:11:35 +01:00
tomFlowee aea1ba28f7 Cleanup
After introduction of pay_mobile, we now have a static lib of all
classes that get linked to the unit tests, as such we can remove
optimizations that tried to keep the set of files to compile in tests
smaller.
2023-01-30 16:47:54 +01:00
tomFlowee d4413dad05 Enable freezing of the listview model on showing popup 2023-01-18 19:20:57 +01:00
tomFlowee 07908f2aae [Mobile] Make 'to top' button appear earlier.
The button to move the view to the top of the list is hidden when we are
at the top of the list. This new version makes the appearing if the
button happen based on the amount of rows we scrolled down, making it
appear faster and be more predicatable.
2023-01-18 19:18:45 +01:00
tomFlowee 57cae42300 Add freeze of model feature.
This is a bit of a violation of layers, as a result of the ListView not
having any way to do this. Even in a hacky way.

The usecase is that we need to stop the listview scrolling and showing
new items that are being inserted at the top in some cases.
Specifically when the user taps on a single transaction in order to get
more information about it, at that point the popup should be displayed
next to the item we tapped on and that item should not move due to
there being new transactions found.

The freezeModel property accomplishes that by simply not telling the
model new data has been found as long as the property is true.
Afterwards all the updates that have accumulate are flushed.
2023-01-18 19:15:52 +01:00
tomFlowee f1ff7f5e82 Minor fixes.
Keep it more local.
2023-01-18 19:03:26 +01:00
tomFlowee 15cf4732e3 Fix initial save of private wallet data
This makes sure that after initial setup of the wallet we save the
private data and the wallet that was not owned by the user is stored as
such.

On Android the destructor often is not properly called, which leads to
us not saving this on shutdown and that showed this bug.
2023-01-15 18:31:39 +01:00
tomFlowee d93431d0ce Ensure we exit if the Qt tag (/branch) we try to build doesn't exist. 2023-01-15 16:52:50 +01:00
tomFlowee 73fa962150 Build boost quietly
Since its such a long list of just copying headers, better to just
log to file.
2023-01-15 16:52:18 +01:00
tomFlowee 051e21ef60 Fix testnet4 support 2023-01-06 00:47:13 +01:00
tomFlowee f45408163a Avoid iterator on container that is being modified.
Setting the wallet to null calls us again to remove it from our list, as
such it is better to not work on that live list but on a copy.
2023-01-06 00:45:12 +01:00
tomFlowee 8e7a135cc8 Add comment 2023-01-05 22:21:40 +01:00
tomFlowee 8809a7ac19 Use locale specific date formatting 2023-01-05 22:21:24 +01:00
tomFlowee 0b38d38176 Fix updating price when max is set. 2023-01-05 14:27:24 +01:00
tomFlowee 8d29aefbba Make this work.
Seems I forgot the derivation path entry field,
for a quick release just hardcode it.
2022-12-21 17:45:51 +01:00
tomFlowee 08189f9c7d Remove debug output 2022-12-21 17:45:40 +01:00
tomFlowee f86ea99a3a Add link to readme 2022-12-21 16:18:59 +01:00
tomFlowee 8f1cf1ad39 Correct typo in our package identifier. 2022-12-21 14:21:04 +01:00
tomFlowee a0cc58ecb1 Make slide less long. 2022-12-21 14:10:13 +01:00
tomFlowee d2213194d4 Add delay on camera init
Move to the next eventloop event the usage of the camera (finding out
resolutions etc) which looks to help stability.

Also remove the init-on-startup again, which had the nasty side-effect of
turning on the camera for a very brief time due to some Qt bug that
ignores the 'active' boolean on the camera object.
2022-12-21 13:46:14 +01:00
tomFlowee fb3d83f8f3 Make sure we print full date time on transaction popup
To make space we move the tx-size to the transaction details page.
2022-12-21 13:41:51 +01:00
tomFlowee 4259eede23 Keep working on Linux
QtMultimedia on Linux has the nasty bug that stopping the camera doens't
allow us to start it afterwards. So for now, while Qt is still buggy, lets
simply not stop it.
Notice that this is Linux only, where I expect this class to have very low
usage.
Android doesn't have this specific issue.
2022-12-21 13:17:34 +01:00
tomFlowee 3112912c57 New version. 2022-12-21 13:15:55 +01:00
tomFlowee a8695db759 Fix focus after QR scan. 2022-12-21 13:15:33 +01:00
tomFlowee 56d3b4fc36 Fill price from historical on startup.
On mobile its more visible that it takes a couple of seconds to fetch
the price from the network. The result is that no prices are visible on
unconfirmed transactions and wallet balances for that time.

This instead uses the last known correct price from the historical
database as the price, so in that couple of seconds we are showing the
mostly correct data instead of no data.
When the price feed comes in, all values on screen get automatically
updated.
2022-12-21 12:58:01 +01:00
tomFlowee e78bfe1c8a Fix lastSyncIndicator when there are unconfirmed TXs 2022-12-21 12:49:51 +01:00
tomFlowee 5cb29d39ef Print proper fiat prices for unconfirmed transactions. 2022-12-21 12:28:58 +01:00
tomFlowee 0f993e07ca Fix copy paste error. 2022-12-21 12:25:28 +01:00
tomFlowee 7cedf20844 Move parsing of '--offline' to be as soon as possible 2022-12-21 12:24:21 +01:00
tomFlowee 5a88fcbe04 Follow the rowproxy new data storage.
We inverted the rowProxy ordering 2 weeks ago, but not all usages of
this change were updated. This should cover those unupdated usages.
2022-12-20 16:28:49 +01:00
tomFlowee e3a9c6a84e Add support for 'max price'
This changes the payment screen to also have a 'max' button. Indecating
we'll want to sent all available funds in the payment.
2022-12-20 15:20:16 +01:00
tomFlowee ed918d6039 Small API fixes
Move the signals to the right class and remove an include from the
header file.
Also provide a context object in QTimer::singleShot. Useful to avoid
dangling pointers being dereferenced on shutdown.
2022-12-20 15:20:16 +01:00
tomFlowee 1cad0fc3e9 Special case 'yesterday' here too. 2022-12-19 23:43:08 +01:00
tomFlowee 6c82e6cd4f Fix being able to run 'make check'.
Make the name here match the name registerd in the child cmakelists.txt
2022-12-19 23:29:38 +01:00
tomFlowee edab1e09f0 Use non-singleton buffer
As this call can be made on deletion of the FloweePay singleton, avoid
using the thread-local singletons and avoid deletion-order issues.
2022-12-19 23:29:01 +01:00
tomFlowee 6922ed4e0c Remove no longer needed task. 2022-12-19 22:07:00 +01:00
tomFlowee 95458646c6 Start Transaction Details page 2022-12-19 22:06:35 +01:00
tomFlowee 192b178989 Encode url before entering in QR.
Turns out that the image-source concept takes a special URL which then
decodes our earlier encoded bip21 string. So we need to make sure we
encode it again before pushing it into a QR.
2022-12-19 16:53:52 +01:00