Commit Graph

10192 Commits

Author SHA1 Message Date
Jonas Schnelli
ea219cd59d [Wallet] Trivial cleanup of HD wallet changes 2018-01-07 13:37:11 +03:00
Wladimir J. van der Laan
77ea5eb519 wallet: Revert input selection post-pruning
This reverts PR #4906, "Coinselection prunes extraneous inputs from
ApproximateBestSubset".

Apparently the previous behavior of slightly over-estimating the set of
inputs was useful in cleaning up UTXOs.

See also #7664, #7657, as well as 2016-07-01 discussion on #bitcoin-core-dev IRC.
2018-01-07 13:36:04 +03:00
Patrick Strateman
e94e583f48 Improve CWallet API with new GetAccountPubkey function.
Remove one more caller that is passing CWalletDB.
2018-01-07 13:33:46 +03:00
Patrick Strateman
acf8c3d9ce Improve CWallet API with new AccountMove function. 2018-01-07 13:33:24 +03:00
Pieter Wuille
4db9e14749 Don't use assert for catching randomness failures 2018-01-07 13:28:01 +03:00
Pieter Wuille
f9d2d353ff Always require OS randomness when generating secret keys 2018-01-07 13:27:51 +03:00
Patrick Strateman
ee0b4321ff Move GetAccountBalance from rpcwallet.cpp into CWallet::GetAccountBalance 2018-01-07 13:22:45 +03:00
João Barbosa
26f8d58b92 Fix lockunspents help message 2018-01-07 13:16:18 +03:00
João Barbosa
395af2c291 Prevent multiple calls to CWallet::AvailableCoins 2018-01-07 13:15:46 +03:00
Alex Morcos
db8b7554fd Don't resend wallet txs that aren't in our own mempool 2018-01-07 13:11:12 +03:00
Wladimir J. van der Laan
289e2f80b4 wallet: Warn on unexpected EOF while salvaging wallet
Check for EOF before every getline, and warn when reading gets to EOF
before the end of the data.

Stricter error checking could shed more light on issues such as #7463
and #7379.
2018-01-07 12:57:13 +03:00
Chris Moore
412c8b9946 Reduce inefficiency of GetAccountAddress()
Don't scan the wallet to see if the current key has been used if we're going to make a new key anyway.
Stop scanning the wallet as soon as we see that the current key has been used.
Don't call isValid() twice on the current key.
2018-01-07 12:56:47 +03:00
janko33bd
de1a0db4cf Merge pull request #15 from lateminer/show-password
[ui] Add toggle for unblinding password fields
2018-01-07 00:00:07 +01:00
Thomas Snider
3b0604b58d [ui] Add toggle for unblinding password fields 2018-01-07 01:18:20 +03:00
janko33bd
c71b057f3b Merge pull request #12 from lateminer/remove-client-date
build: Get rid of `CLIENT_DATE`
2018-01-06 09:50:57 +01:00
janko33bd
2b915f62e3 Merge pull request #13 from lateminer/build-fix
auto_ptr → unique_ptr
2018-01-06 09:50:06 +01:00
Wladimir J. van der Laan
fb6d61317d auto_ptr → unique_ptr 2018-01-06 03:29:32 +03:00
janko33bd
b8609fc6e3 removing forgotten height 2018-01-06 00:44:43 +01:00
janko33bd
71c4f88bf9 fixing to compile 2018-01-06 00:37:31 +01:00
janko33bd
235a9b184b Add cache of coinbases for OP_COUNT_ACKS 2018-01-05 22:25:18 +01:00
janko33bd
a4fcc84396 Enforce limits to fields when deserializing 2018-01-05 22:11:53 +01:00
janko33bd
92bc14233f Implementation of OP_COUNT_ACK 2018-01-05 22:06:35 +01:00
janko33bd
10ef7d75f5 Revert "[Qt] Add dbcache migration path"
This reverts commit 921b8483da.
2018-01-05 21:58:03 +01:00
Wladimir J. van der Laan
106eaff884 build: Get rid of CLIENT_DATE
Putting the build date in the executable is a practice that has no place
in these days, now that deterministic building is increasingly common.

Continues #7732 which did this for the GUI.
2018-01-05 23:17:08 +03:00
janko33bd
58ae06661e Merge pull request #11 from lateminer/qt-updates-0.13
GUI updates from Bitcoin Core 0.13.x
2018-01-04 21:47:56 +01:00
lateminer
91252c3db6 Add missing "\n" in LicenseInfo() 2018-01-04 22:53:37 +03:00
matthias
2567f2f1ca Simple Update to File 'bitcoin-qt.desktop' 2018-01-04 22:13:00 +03:00
Wladimir J. van der Laan
ea3b89d1c4 qt: Use correct conversion function for boost::path datadir
Fixes #9089.
2018-01-04 22:12:28 +03:00
Jonas Schnelli
49ac458e35 [Qt] make warnings label selectable 2018-01-04 22:10:21 +03:00
rodasmith
1a0373c42c fix op order to append first alert 2018-01-04 21:52:17 +03:00
Jonas Schnelli
5a372293b8 [Qt] show network/chain errors in the GUI 2018-01-04 21:51:54 +03:00
Wladimir J. van der Laan
fcf8393c60 qt: Fix random segfault when closing "Choose data directory" dialog
The `pickDataDirectory()` function was calling `exit(0)` to quit
the application when the user closes the dialog without choosing
a data directory.

This is a bad idea because a background thread is created (to
check free space on the drive of the currently selected datadir).
The thread is not stopped and unwound properly, resulting in a potential
race condition somewhere deep in Qt.

So replace the `exit()` by a boolean return value, and let the
stack unwind normally.
2018-01-04 21:49:41 +03:00
Jonas Schnelli
0b983c1820 [Qt][CoinControl] fix UI bug that could result in paying unexpected fee 2018-01-04 21:48:01 +03:00
Andrew Chow
b6d51eb3ab Load choose datadir dialog after options reset 2018-01-04 21:44:35 +03:00
Andrew Chow
c305d27605 Persist the datadir after option reset
After a reset is performed, the datadir setting is saved and readded to the settings so that it is persisted across option resets.
2018-01-04 21:44:26 +03:00
adlawren
708c740b1a Fix minimize and close bugs
refs #8225

To ensure the GUI closes when the "Minimize on close" window option is disabled, and the "Minimize to the tray instead of the taskbar" window option is enbaled, remove a check made against the "Minimize to the tray instead of the taskbar" value, made during GUI closure.

To ensure the GUI minimizes to the taskbar when the "Minimize on close" window option is enabled, and the "Minimize to the tray instead of the taskbar" window option is disabled, minimize the GUI and ignore the closure event.
2018-01-04 21:43:50 +03:00
MarcoFalke
4dae1df717 [doc] Add website links to about dialog 2018-01-04 21:33:20 +03:00
Jonas Schnelli
921b8483da [Qt] Add dbcache migration path 2018-01-04 21:28:36 +03:00
Wladimir J. van der Laan
213ba0e1a9 qt: Remove client name from debug window
Remove the client name from the debug window in the GUI. It is already
part of the user agent, so adding it separately doesn't add anything.
2018-01-04 21:28:19 +03:00
Jonas Schnelli
db7da64904 [Qt] Support for abandoned/abandoning transactions 2018-01-04 21:27:49 +03:00
Wladimir J. van der Laan
ae1775b6ae qt: Network-specific example address 2018-01-04 21:21:08 +03:00
Pieter Wuille
39cb6575c8 Do not ask a UI question from bitcoind 2018-01-04 21:19:16 +03:00
Jonas Schnelli
b63095623e [Qt] fix a bug where the SplashScreen will not be hidden during startup 2018-01-04 21:13:08 +03:00
Francesco 'makevoid' Canessa
67b56c68b5 Add address label to request payment QR Code (QT)
In the Receive 'Tab' of the QT wallet, when 'Show'ing a previously requested payment, add a label underneath the QR Code showing the bitcoin address where the funds will go to.

This way the user can be sure that the QR code scanner app the user using is reading the correct bitcoin address, preventing funds to be stolen.

Includes fix for HiDPI screens by @jonasschnelli.
2018-01-04 21:11:46 +03:00
UdjinM6
60375132bc PR #7772 is not enough to fix the issue with QCompleter, use event filter instead of connect 2018-01-04 21:11:17 +03:00
Tyler Hardin
4ecd5749b2 Qt: Sort transactions by date
Conflicted transactions can get stuck at the top. This fixes that.
2018-01-04 21:07:51 +03:00
Jonas Schnelli
f7cc3dddab [Qt] Disable some menu items during splashscreen/verification state 2018-01-04 21:07:27 +03:00
Jonas Schnelli
a0858c448c [Qt][OSX] Fix Cmd-Q / Menu Quit shutdown on OSX 2018-01-04 21:07:09 +03:00
Tyler Hardin
f50bfbf7fe Qt: Add option to hide the system tray icon
My changes leave all tray icon and menu creation/initialization logic
untouched. It only shows or hides the icon according to the setting.

A new checkbox was added to the OptionsDialog under the Window tab. A
bool option named "hideTrayIcon" was added to OptionsModel. This
checkbox was mapped like other all options to the OptionsModel.

A signal was added to the OptionsModel for broadcasting changes the the
hideTrayIcon option. This signal was connected to a new slot added to
BitcoinGUI named setTrayIconVisible(bool). The slot simply hides or
shows the trayIcon in BitcoinGUI according to the parameter recieved.
2018-01-04 21:06:00 +03:00
Tyler Hardin
89e8cc64bd Qt: Delay user confirmation of send
I made a subclass of QMessageBox that disables the send button in
exec() and starts a timer that calls a slot to re-enable it after a
configurable delay.

It also has a countdown in the send/yes button while it is disabled
to hint to the user why the send button is disabled (and that it is
actually supposed to be disabled).
2018-01-04 21:05:41 +03:00