Commit Graph

211 Commits

Author SHA1 Message Date
Luke Dashjr
4a80bf0af1 Qt/Options: Configure mempoolexpiry using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
3d0f771518 Qt/Options: Configure maxmempool using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
04ac0eb698 Qt/Options: Configure maxmempool using rwconf 2023-11-16 01:14:27 +00:00
Luke Dashjr
a46bb3410f Qt/Options: Configure maxorphantx using rwconf 2023-11-16 01:14:27 +00:00
Luke Dashjr
8c9b30de19 Qt/Options: Configure mempoolreplacement using rwconf 2023-11-16 01:14:27 +00:00
Luke Dashjr
643e6f6ba1 Merge 5861 via gui_restore_addresses 2023-11-15 23:49:11 +00:00
Luke Dashjr
10d83963b5 Merge 929 via tbc 2023-11-15 23:49:11 +00:00
Luke Dashjr
bbd4c9ad42 GUI: Update nDisplayUnit to keep old versions in sync 2023-10-17 02:19:22 +00:00
Luke Dashjr
134d72187b GUI: If new DisplayBitcoinUnit is missing, migrate nDisplayUnit 2023-10-17 02:19:22 +00:00
Luke Dashjr
5145e1efeb GUI: Save any TBC settings in a parallel setting key 2023-10-17 02:19:22 +00:00
Luke Dashjr
4ec12d0690 Qt: Reformat name for OutputType::P2SH_SEGWIT 2023-10-17 02:17:18 +00:00
Luke Dashjr
7b72d3ae05 GUI: Re-word OutputType descriptions to give better advice 2023-10-17 02:17:18 +00:00
Luke Dashjr
c4da1f7279 GUI: Move OutputType descriptions to map in optionsmodel 2023-10-17 02:17:18 +00:00
Luke Dashjr
09c08072a1 GUI: When addresstype is changed, apply to all open receive dialogs immediately 2023-10-17 02:17:18 +00:00
Luke Dashjr
fc6e9161fb Qt/Options: When changing peerblockfilters, also set peercfilters for better downgrade compatibility
Only in bitcoin_rw.conf
2023-10-17 02:17:18 +00:00
Luke Dashjr
46875b0233 Qt/Options: Expose peerblockfilters in GUI using rwconf
For now, enables basic block filters permanently (can't be disabled)
2023-10-17 02:17:18 +00:00
Luke Dashjr
1a31a58497 Qt/Options: When resetting options, re-assign prune if it was configured via rwconf 2023-10-17 02:17:18 +00:00
Luke Dashjr
a2bcbef77f Qt/Intro: Allow changing prune setting even when specified on commandline 2023-10-17 02:17:18 +00:00
Luke Dashjr
6e564fe617 Qt/Options: Update rwconf for prune changes 2023-10-17 02:17:18 +00:00
Luke Dashjr
42e3bc0dd8 Qt/Options: Handle manual pruning cleanly 2023-10-03 02:19:37 +00:00
Luke Dashjr
c72cb20934 Qt/Options: Switch prune setting from GB to MiB 2023-10-03 02:19:37 +00:00
Luke Dashjr
a3b0c05098 Qt/Options: Expose addresstype in GUI using rwconf
NOTE: This doesn't update the receive dialog's "Generate Bech32 address" checkbox at all.
That's okay for Bitcoin Knots since it just affects the default checked state, but Core hides the checkbox entirely when addresstype=legacy, so you would want to show/hide it as necessary.
2023-10-03 02:19:37 +00:00
Luke Dashjr
554b7744b5 Qt/Options: Expose peerbloomfilters in GUI using rwconf 2023-10-03 02:19:37 +00:00
Luke Dashjr
e96f4148b9 Qt/Options: Expose maxuploadtarget in GUI using rwconf 2023-10-03 02:19:37 +00:00
Luke Dashjr
8288d92c0f Merge branch 'rwconf-25+knots' into rwconf_gui-25+knots 2023-10-03 02:19:28 +00:00
Luke Dashjr
b2ffa92131 Add new bitcoin_rw.conf file that is used for settings modified by this software itself 2023-10-03 02:18:47 +00:00
Luke Dashjr
3ad197c5c6 Restore ability to display addresses in GUI
This reverts commit bdba2dd000.
2023-08-08 22:53:59 +00:00
Hampus Sjöberg
84749bfb48 [Qt] Adding network port to GUI settings, fixes #7039
Adds Network port input box to the Network tab in the Options dialog.
-port takes priority over the GUI setting.
If left blank, it will default to the default port
2023-08-01 01:06:07 +00:00
Luke Dashjr
c15587936b GUI: Enable customisation of QR Code font 2023-07-21 17:53:46 +00:00
Luke Dashjr
61887d5ecf Merge branch 'qt_fontsel' into qt_fontsel-25+knots 2023-07-21 17:52:04 +00:00
Luke Dashjr
a17fd33edd GUI: OptionsDialog: Replace verbose two-option font selector with simple combobox with Custom... choice 2023-07-21 17:47:17 +00:00
Luke Dashjr
98e9ac5199 GUI: Use FontChoice type in OptionsModel settings abstraction 2023-07-21 17:45:36 +00:00
Luke Dashjr
3a6757eed9 GUI: Load custom FontForMoney from QSettings 2023-07-21 17:45:36 +00:00
Luke Dashjr
49eb97eff9 GUI: Add possibility for an explicit QFont for FontForMoney in OptionsModel 2023-07-21 17:45:36 +00:00
Luke Dashjr
f2dfde80b8 GUI: Move "embedded font or not" decision into new OptionsModel::getFontForMoney method 2023-07-21 17:45:21 +00:00
Hennadii Stepanov
f6aec24062 qt: Add "Alternating Row Color" settings for the Peers Tab
Github-Pull: gui#307
Rebased-From: b124c2fe600b343a2bc66ff8eb0aaf43aa99f4db
2023-07-20 15:00:31 +00:00
Andrew Chow
27772d8009
Merge bitcoin/bitcoin#26889: refactor: wallet, remove global 'ArgsManager' dependency
52f4d567d6 refactor: remove <util/system.h> include from wallet.h (furszy)
6c9b342c30 refactor: wallet, remove global 'ArgsManager' access (furszy)
d8f5fc4462 wallet: set '-walletnotify' script instead of access global args manager (furszy)
3477a28dd3 wallet: set keypool_size instead of access global args manager (furszy)

Pull request description:

  Structurally, the wallet class shouldn't access the global `ArgsManager` class, its internal behavior shouldn't be coupled to a global command line args parsing object.

  So this PR migrates the only two places where we depend on it: (1) the keypool size, and (2) the "-walletnotify" script. And cleans up the, now unneeded, wallet `ArgsManager` ref member.

  Extra note:
  In the process of removing the args ref member, discovered and fixed files that were invalidly depending on the wallet header including `util/system.h`.

ACKs for top commit:
  achow101:
    ACK 52f4d567d6
  TheCharlatan:
    Re-ACK 52f4d567d6
  hebasto:
    re-ACK 52f4d567d6

Tree-SHA512: 0cffd99b4dd4864bf618aa45aeaabbef2b6441d27b6dbb03489c4e013330877682ff17b418d07aa25fbe1040bdf2c67d7559bdeb84128c5437bf0e6247719016
2023-02-17 12:47:52 -05:00
furszy
52f4d567d6
refactor: remove <util/system.h> include from wallet.h
Since we no longer store a ref to the global `ArgsManager`
inside the wallet, we can move the util/system.h
include to the cpp.

This dependency removal opened a can of worms, as few
other places were, invalidly, depending on the wallet's
header including it.
2023-02-15 15:49:45 -03:00
Hennadii Stepanov
e43ff4eab2
Merge bitcoin-core/gui#603: Add settings.json prune-prev, proxy-prev, onion-prev settings
9d3127b11e Add settings.json prune-prev, proxy-prev, onion-prev settings (Ryan Ofsky)

Pull request description:

  With #602, if proxy and pruning settings are disabled in the GUI and the GUI is restarted, proxy and prune values are not stored anywhere. So if these settings are enabled in the future, default values will be shown, not previous values.

  This PR stores previous values so they will preserved across restarts. I'm not sure I like this behavior because showing default values seems simpler and safer to me. Previous values may just have been set temporarily and may have never actually worked, and it adds some code complexity to store them.

  This PR is one way of resolving #596. Other solutions are possible and could be implemented as alternatives.

ACKs for top commit:
  hebasto:
    ACK 9d3127b11e, tested on Ubuntu 22.04.
  vasild:
    ACK 9d3127b11e
  jarolrod:
    tACK 9d3127b11e

Tree-SHA512: 1778d1819443490c880cfd5c1711d9c5ac75ea3ee8440e2f0ced81d293247163a78ae8aba6027215110aec6533bd7dc6472aeead6796bfbd51bf2354e28f24a9
2023-02-15 12:21:31 +00:00
Hennadii Stepanov
1313b90735
Merge bitcoin-core/gui#701: Persist Mask Values option
4de02def84 qt: Persist Mask Values option (Andrew Chow)

Pull request description:

  The mask values option is memory only. If a user has enabled this option, it's reasonable to expect that they would want to have it enabled on the next start.

ACKs for top commit:
  RandyMcMillan:
    tACK 4de02def84
  jarolrod:
    tACK 4de02def84
  pablomartin4btc:
    > tACK [4de02de](4de02def84)
  john-moffett:
    tACK 4de02def84

Tree-SHA512: 247deb78df4911516625bf8b25d752feb480ce30eb31335cf9baeb07b7c6c225fcc37d5c45de62d6e6895ec10c7eefabb15527e3c9723a3b8ddda1e12ebbf46b
2023-02-09 20:11:11 +00:00
MarcoFalke
fa451d4b60
Fix clang-tidy readability-const-return-type violations 2023-02-01 11:33:35 +01:00
Andrew Chow
4de02def84 qt: Persist Mask Values option
The mask values option is memory only. If a user has enabled this
option, it's reasonable to expect that they would want to have it
enabled on the next start.
2023-01-23 20:59:05 -05:00
Hennadii Stepanov
306ccd4927
scripted-diff: Bump copyright headers
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-

Commits of previous years:
- 2021: f47dda2c58
- 2020: fa0074e2d8
- 2019: aaaaad6ac9
2022-12-24 23:49:50 +00:00
Ryan Ofsky
9d3127b11e Add settings.json prune-prev, proxy-prev, onion-prev settings
This provides a way for the GUI settings dialog box to retain previous pruning
and proxy settings when they are disabled, as requested by vasild:

https://github.com/bitcoin/bitcoin/pull/15936#pullrequestreview-937685759
https://github.com/bitcoin/bitcoin/pull/15936#discussion_r850568749
https://github.com/bitcoin/bitcoin/pull/15936#discussion_r852998379

Importantly, while this PR changes the settings.json format, it changes it in a
fully backwards compatible way, so previous versious of bitcoind and bitcoin-qt
will correctly interpret prune, proxy, and onion settins written by new
versions of bitcoin-qt.
2022-09-21 06:25:47 -04:00
Ryan Ofsky
e47c6c7656 Reset settings.json when GUI options are reset
Clear settings.json file and save settings.json.bak file when "Reset Options"
GUI button is pressed or -resetguisettings command line option is used.
2022-05-26 11:05:10 -04:00
Ryan Ofsky
504b06b1de Migrate -lang setting from QSettings to settings.json 2022-05-26 11:05:10 -04:00
Ryan Ofsky
9a016a3c07 Migrate -prune setting from QSettings to settings.json 2022-05-26 11:05:10 -04:00
Ryan Ofsky
f067e19433 Migrate -proxy and -onion settings from QSettings to settings.json 2022-05-26 11:05:10 -04:00
Ryan Ofsky
a09e3b7cf2 Migrate -listen and -server settings from QSettings to settings.json 2022-05-26 11:05:10 -04:00
Ryan Ofsky
d2ada6e635 Migrate -upnp and -natpmp settings from QSettings to settings.json
This also effectively reverts 58e8364dcd from
#18077, applying upnp and natpmp settings from the optionsmodel class instead
of the optionsdialog class. This makes sense because model code, not view code
is responsible for applying all other settings, and because leaving these
settings half-applied in optionsmodel seems error prone and could lead to bugs.
(These things were discussed a little in
https://github.com/bitcoin/bitcoin/pull/18077#discussion_r560381734)
2022-05-26 11:05:10 -04:00