Commit Graph

132 Commits

Author SHA1 Message Date
Luke Dashjr
f58d281cde Qt/Options: Configure blockmintxfee using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
43dc306389 Qt/Options: Configure dustrelayfee using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
21fb3f523a Qt/Options: Configure incrementalrelayfee using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
b0ed9c2b22 Qt/Options: Configure blockreconstructionextratxn using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
7a31573d08 Qt/Options: Configure walletrbf using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
b2645bf424 Qt/Options: Configure minrelaytxfee using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
299fc01c3b Qt/Options: Configure blockmaxsize, blockprioritysize, and blockmaxweight using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
f6291cf31a Qt/Options: Configure datacarrier[size] using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
9f09a18e82 Qt/Options: Configure permitbaremultisig using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
a0aeb7b065 Qt/Options: Configure limitdescendant{count,size} using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
2b9e07c44f Qt/Options: Configure limitancestorsize using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
6bc2bb3520 Qt/Options: Configure limitancestorcount using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
9e181c6f75 Qt/Options: Configure bytespersigopstrict using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
96d0355590 Qt/Options: Configure acceptnonstdtxn using rwconf 2023-11-16 01:14:28 +00:00
Luke Dashjr
4a80bf0af1 Qt/Options: Configure mempoolexpiry 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
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
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
a2bcbef77f Qt/Intro: Allow changing prune setting even when specified on commandline 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
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
d32c3f2b62 GUI: Change default QR Code font to embedded
Rebased-From: 3bfdd05fcfdcc69b20381f43a1a2f0ba2878f455
2023-07-21 17:53:49 +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
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
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
284f339de6 Migrate -dbcache setting from QSettings to settings.json
This is just the first of multiple settings that will be stored in the bitcoin
persistent setting file and shared with bitcoind, instead of being stored as Qt
settings backed by the windows registry or platform specific config files which
are ignored by bitcoind.

Co-Authored-By: furszy <matiasfurszyfer@protonmail.com>
2022-05-26 11:05:10 -04:00
Hennadii Stepanov
1368634433
Merge bitcoin-core/gui#601: refactor: Pass interfaces::Node references to OptionsModel constructor
31122aa979 refactor: Pass interfaces::Node references to OptionsModel constructor (Ryan Ofsky)

Pull request description:

  Giving OptionsModel access to the node interface is needed as part of #602 to get bitcoind and bitcoin-qt to use the same settings instead of different settings.

  It has been split off from #602 to simplify that PR. Previously these commits were part of bitcoin/bitcoin#15936 and also had some review discussion there.

ACKs for top commit:
  promag:
    Code review ACK 31122aa979.
  furszy:
    Code ACK 31122aa9
  jarolrod:
    ACK 31122aa979

Tree-SHA512: b8529322fd7ba97e19864129e6cf5f9acc58c124f2e5a7c50aca15772c8549de3c24e8b0c27e8cf2c06fd26529e9cdb898b0788a1de3cbfdfbdd3f85c9f0fe69
2022-05-24 10:48:27 +02:00
Ryan Ofsky
31122aa979 refactor: Pass interfaces::Node references to OptionsModel constructor
Will allow OptionsModel to read/write settings to the node settings.json
file and share settings with the node, instead of storing them
externally in QSettings.

Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
2022-05-19 11:32:56 -04:00