Commit Graph

1414 Commits

Author SHA1 Message Date
TomZ f24a6e0f84 Implement replacing transaction
When a unconfirmed transaction gets made invalid by a mined one spending
the same output, this updates the wallet balance and UTXO state
properly.
2020-11-03 20:16:36 +01:00
TomZ ae0c395d50 Make the wallet process mempool transactions
When a transaction is received by the p2pnet layer via a simple INV/
GetData we now process this and properly lock the outputs it spent to
avoid creating double spending transactions.

One task is left: properly recognize when a mined transaction
invalidates another transaction (like an unconfirmed one) and update the
datastructures.
2020-11-02 21:49:06 +01:00
TomZ 63902d2730 Add support for testnet addresses 2020-10-30 18:06:58 +01:00
TomZ 875717c760 Make future proof; use a lambda. 2020-10-30 09:42:55 +01:00
TomZ 31304be4b1 Add support for testnet4 2020-10-29 21:51:52 +01:00
TomZ e9df4c6e06 Hide the config dots until they do something 2020-10-29 21:51:19 +01:00
TomZ c3c70b266a Fix bug, now we show how far we are behind. 2020-10-24 17:09:10 +02:00
TomZ 4c01f8231c minor tweak. 2020-10-24 14:52:14 +02:00
TomZ a6f458a42b Forgot to uncomment... 2020-10-24 14:50:47 +02:00
TomZ 4ab3f0c7df Make 'max' button work in a sane manner. 2020-10-24 14:50:04 +02:00
TomZ 0f1138a80f Merge branch 'master' of banana:floweepay 2020-10-24 12:50:55 +02:00
TomZ 8dcaf9e668 [UX] fix font-size 2020-10-24 12:50:18 +02:00
TomZ 005c241344 Make backend able to accept a 'max' payment
The idea is that the user can empty out a wallet using the 'max' button.
2020-10-23 22:34:34 +02:00
TomZ 60a6bb5af0 update README 2020-10-23 20:41:18 +02:00
TomZ ca9845ae4f Handle user trying to send more than we have. 2020-10-23 20:20:42 +02:00
TomZ 96121c7081 Fixes in the UX 2020-10-23 19:45:21 +02:00
TomZ 0cd48d8809 Version 2 of UTXO selection algo
This avoids the far to CPU intensive perfect solution and instead does a
best effort comparisn between various semi-random selections of inputs.
2020-10-23 19:45:08 +02:00
TomZ 42ea3e5bb7 UX show how far in time an account is behind 2020-10-19 17:59:04 +02:00
TomZ b92a4a2393 Make sure only one wallet has 'first' prio
This allows us to use it as the favourite wallet we open on startup.
2020-10-19 16:50:36 +02:00
TomZ 42f5906137 save the priority of a wallet
Also allow setting it through a heart-icon
2020-10-19 16:38:05 +02:00
TomZ b144e4f6e8 Fix typo 2020-10-18 16:57:13 +02:00
TomZ 7763df2843 Show in the networking dialog which wallet a peer is attached to. 2020-10-18 16:57:06 +02:00
TomZ 0d123eced9 Show historical transactions on account. 2020-10-17 20:34:51 +02:00
TomZ 19e941ce14 Show the sync-height of a wallet. 2020-10-17 17:34:40 +02:00
TomZ 2a057fbeec Remove logging of debug 2020-10-17 16:43:08 +02:00
TomZ 1c94c34582 Add copyright headers 2020-10-17 16:40:48 +02:00
TomZ 2c8954eafa Fix reorg-tx algo and add unit test for it.
The code to re-org all transactions in a block so transactions that
depend on others are processed after those they depend on had a silly
bug (missing line), fixed that but also made it unit-testable to
demonstrate the bug.
2020-10-17 16:38:37 +02:00
TomZ 1cb913c3e6 Make debugging the wallet easier. 2020-10-16 19:25:52 +02:00
TomZ a5c641b665 Add a way to go back to the main list of accounts. 2020-10-16 18:28:54 +02:00
TomZ 202ea2439a Add way to create new wallets
Including the import of an existing private key.
2020-10-16 18:28:33 +02:00
TomZ 9a43d52321 Forgot the licence header. 2020-10-16 13:18:01 +02:00
TomZ e04be32531 UX: make disabled buttons look different.
IMOHO a bug in Qt components, which makes this hacky.
2020-10-15 20:49:50 +02:00
TomZ ed73cc1713 Re-enable check for sanity 2020-10-15 20:06:17 +02:00
TomZ 5e27d6f1e9 Provide a menu to change the unit
Now we allow BCH / mBch/ etc to be set from the menu.
2020-10-15 20:04:10 +02:00
TomZ 99f5b728f5 Re-create the send page
This brings back a new GUI for sending payments.
2020-10-15 19:18:54 +02:00
TomZ 6abc92c898 Revive net window 2020-10-14 18:29:10 +02:00
TomZ 14cb4fa603 Start making this nice
* split the AccountInfo and Payment classes out into their own files.
* Start a 'color' file to switch between light and dark-theme.
* Start a new main GUI which isn't so hacky and ugly.
* Make this actually a desktop app, with menu and file->quit!
2020-10-14 17:02:45 +02:00
TomZ 8ee1ddbcab Fixlets in layout 2020-10-12 19:47:53 +02:00
TomZ b2d1486857 works with 1.14 just fine 2020.05.1 2020-08-12 23:00:59 +02:00
TomZ bbdb90148f Make compile, missing include 2020-08-11 22:42:32 +02:00
TomZ 62b658aad0 Suggest a 'build' dir for consistency 2020-08-11 22:42:16 +02:00
TomZ 7a470146c1 UX; show user-entered value 2020-06-22 12:52:49 +02:00
TomZ 8bd44ca3d7 Support parsing of legacy addresses
When a user enters a legacy address we parse it and reformat it to the
new style, which is then shown to the user in order to make clear this
is a Bitcoin-Cash payment.
The user-entered text is still visible as a tooltip on desktop.
2020-06-22 12:16:16 +02:00
TomZ ee99ec277d Allow pasting into the BitcoinValue UI 2020-06-22 12:14:13 +02:00
TomZ d3a5570c31 Fix fee calc
Forgot to actually re-sign the tx after adjusting fee to size.
2020-06-13 22:05:45 +02:00
TomZ bbf1daf155 fix typo 2020-06-13 19:27:12 +02:00
TomZ 9cd7ace0be Split signing and sending tx.
Also show more details in the 'approve' screen.
2020-06-13 19:22:08 +02:00
TomZ 8518f3493b Show dialog for approval of tx. 2020-06-13 11:04:34 +02:00
TomZ 86a51520ca Make entry of sending tx work better 2020-06-13 11:04:34 +02:00
TomZ 6cc11d94b0 Fixlets 2020-06-13 11:04:34 +02:00