Commit Graph

204 Commits

Author SHA1 Message Date
Luke Dashjr
316cbcd41d Qt/Options: Configure minrelaytxfee using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
a778132a3f Qt/Options: Configure blockmaxsize, blockprioritysize, and blockmaxweight using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
4c6add3e87 Qt/Options: Implement Mining tab design in code 2024-06-22 17:48:01 +00:00
Luke Dashjr
dbf79b08ab Qt/Options: Configure datacarrier[size] using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
12d03cfb6e Qt/Options: Configure permitbaremultisig using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
3c46fd0673 Qt/Options: Configure limitdescendant{count,size} using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
177664c58d Qt/Options: Configure limitancestorsize using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
a910e46610 Qt/Options: Configure limitancestorcount using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
72ce0246fd Qt/Options: Configure bytespersigopstrict using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
d7336e8555 Qt/Options: Configure acceptnonstdtxn using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
c04a2343e0 Qt/Options: Configure mempoolexpiry using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
99b88ab6d7 Qt/Options: Configure maxmempool using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
aaba268912 Qt/Options: Configure maxorphantx using rwconf 2024-06-22 17:48:01 +00:00
Luke Dashjr
a78b0fd056 Qt/Options: Configure mempoolreplacement using rwconf 2024-06-22 17:48:00 +00:00
Luke Dashjr
f0f7adfb0c Qt/Options: Implement Mempool tab design in code 2024-06-22 17:48:00 +00:00
Luke Dashjr
ca7b26f9f1 Qt/Options: Helper functions to build options programatically 2024-06-22 17:48:00 +00:00
Luke Dashjr
4b2f0d41ee Merge 5861 via gui_restore_addresses 2024-06-21 19:28:12 +00:00
Luke Dashjr
507ca2fc6b Merge 7510 via rwconf_gui-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
9eec411d55 Merge 7107 via qtnetworkport-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
476a6f9082 Merge g820 via qt_fontsel_qrcodes-27+knots 2024-06-21 19:28:12 +00:00
Luke Dashjr
9e5858caec Merge g307 via gui_peers_rowcolouropt 2024-06-21 19:28:12 +00:00
Luke Dashjr
f46671e574 Bugfix: GUI/Options: Handle PruneTristate manually
QDataWidgetMapper apparently doesn't handle tristate checkboxes correctly
2024-05-31 18:33:31 +00:00
Luke Dashjr
1e22b20fba Bugfix: GUI/Options: Prune size field should be disabled for manual-prune checkbox state 2024-05-31 18:33:31 +00:00
Luke Dashjr
76521ce6a6 Bugfix: GUI/Options: Correct maxuploadtarget label to use MiB 2024-05-31 18:33:31 +00:00
Luke Dashjr
aca27db6fc GUI: Options: Replace addresstype radioboxes with a combobox to match Receive dialog 2024-05-31 18:33:31 +00:00
Luke Dashjr
535de1e2d0 Qt/Options: Expose peerblockfilters in GUI using rwconf
For now, enables basic block filters permanently (can't be disabled)
2024-05-31 18:33:31 +00:00
Luke Dashjr
c0d77c4898 Qt/Options: Handle manual pruning cleanly 2024-05-31 18:33:31 +00:00
Luke Dashjr
00ba8da08c Qt/Options: Switch prune setting from GB to MiB 2024-05-31 18:33:31 +00:00
Luke Dashjr
a4be7b4a92 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.
2024-05-31 18:33:31 +00:00
Luke Dashjr
c86b5230b9 Qt/Options: Expose peerbloomfilters in GUI using rwconf 2024-05-31 18:33:31 +00:00
Luke Dashjr
d8f84f26ff Qt/Options: Expose maxuploadtarget in GUI using rwconf 2024-05-31 18:33:31 +00:00
Luke Dashjr
d158536ab1 Qt/Options: Allow an "invalid" network port if it is the current value already 2024-05-30 13:40:50 +00:00
Luke Dashjr
a87e53b484 Qt/Options: Actually check validator acceptability for network port 2024-05-30 13:40:50 +00:00
Luke Dashjr
26fc47e10b Qt/Options: Don't allow setting a port below 1024 2024-05-30 13:40:50 +00:00
Hampus Sjöberg
7d3303a554 [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
2024-05-30 13:40:49 +00:00
Luke Dashjr
52ecf5b65e GUI: Enable customisation of QR Code font 2024-05-16 00:34:35 +00:00
Hennadii Stepanov
9166bb76d5 qt: Add "Alternating Row Color" settings for the Peers Tab
Github-Pull: gui#307
Rebased-From: b124c2fe600b343a2bc66ff8eb0aaf43aa99f4db
2024-05-15 23:48:12 +00:00
willcl-ark
dedf319b08
gui: don't permit port in proxy IP option
Fixes: #809

Previously it was possible through the GUI to enter an IP address:port
into the "Proxy IP" configuration box. After the node was restarted the
errant setting would prevent the node starting back up until manually
removed from settings.json.

Github-Pull: https://github.com/bitcoin-core/gui/pull/813
Rebased-From: 10c5275ba4
2024-05-13 11:58:00 +08:00
Hennadii Stepanov
60ac503800
Merge bitcoin-core/gui#497: Enable users to configure their monospace font specifically
a17fd33edd GUI: OptionsDialog: Replace verbose two-option font selector with simple combobox with Custom... choice (Luke Dashjr)
98e9ac5199 GUI: Use FontChoice type in OptionsModel settings abstraction (Luke Dashjr)
3a6757eed9 GUI: Load custom FontForMoney from QSettings (Luke Dashjr)
49eb97eff9 GUI: Add possibility for an explicit QFont for FontForMoney in OptionsModel (Luke Dashjr)
f2dfde80b8 GUI: Move "embedded font or not" decision into new OptionsModel::getFontForMoney method (Luke Dashjr)

Pull request description:

  This replaces the overly-verbose radio-button font setting (which only allows embedded or autodetected from system) with a simple combobox providing both existing options as well as a custom option to allow the user to select any font of their choice/style.

ACKs for top commit:
  pablomartin4btc:
    tested ACK  a17fd33edd
  hebasto:
    ACK a17fd33edd, I have reviewed the code and tested it on Ubuntu 22.04. This is a UX improvement. https://github.com/bitcoin-core/gui/pull/497#issuecomment-1341222673 might be addressed in a follow-up.

Tree-SHA512: 2f0a8bc1242a374c4b7dc6e34014400428b6d36063fa0b01c9f62a8bd6078adfbbca93d95c87e4ccb580d982fe10173e1d9a28bcec586591dd3f966c7b90fc5d
2024-02-07 19:28:37 +00:00
Hennadii Stepanov
5b3ea5fa2e
refactor: Move {MAX,DEFAULT}_SCRIPTCHECK_THREADS constants 2023-10-03 10:52:17 +01:00
Luke Dashjr
3ad197c5c6 Restore ability to display addresses in GUI
This reverts commit bdba2dd000.
2023-08-08 22:53:59 +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
Andrew Chow
71300489af
Merge bitcoin/bitcoin#26261: p2p: cleanup LookupIntern, Lookup and LookupHost
5c832c3820 p2p, refactor: return `std::optional<CNetAddr>` in `LookupHost` (brunoerg)
34bcdfc6a6 p2p, refactor: return vector/optional<CService> in `Lookup` (brunoerg)
7799eb125b p2p, refactor: return `std::vector<CNetAddr>` in `LookupHost` (brunoerg)
5c1774a563 p2p, refactor: return `std::vector<CNetAddr>` in `LookupIntern` (brunoerg)

Pull request description:

  Continuation of #26078.

  To improve readability instead of returning a bool and passing stuff by reference, this PR changes:

  - `LookupHost` to return `std::vector<CNetAddr>`
  - `LookupHost` to return `std::optional<CNetAddr>`
  - `Lookup` to return `std::vector<CService>`
  - `Lookup` to return `std::optional<CService>`.
  - `LookupIntern` to return `std::vector<CNetAddr>`

  As discussed in #26078, it would be better to avoid using `optional` in some cases, but for specific `Lookup` and `LookupHost` functions it's necessary to use `optional` to verify if they were able to catch some data from their overloaded function.

ACKs for top commit:
  achow101:
    ACK 5c832c3820
  stickies-v:
    re-ACK 5c832c3820 - just addressing two nits, no other changes
  theStack:
    re-ACK 5c832c3820

Tree-SHA512: ea346fdc54463999646269bd600cd4a1590ef958001d2f0fc2be608ca51e1b4365efccca76dd4972b023e12fcc6e67d226608b0df7beb901bdeadd19948df840
2023-05-30 11:39:59 -04:00
brunoerg
5c832c3820 p2p, refactor: return std::optional<CNetAddr> in LookupHost 2023-05-26 13:41:07 -03:00
TheCharlatan
7d3b35004b
refactor: Move system from util to common library
Since the kernel library no longer depends on the system file, move it
to the common library instead in accordance to the diagram in
doc/design/libraries.md.
2023-05-20 12:08:13 +02:00
Andrew Chow
35fbc97208
Merge bitcoin/bitcoin#25619: net: avoid overriding non-virtual ToString() in CService and use better naming
c9d548c91f net: remove CService::ToStringPort() (Vasil Dimov)
fd4f0f41e9 gui: simplify OptionsDialog::updateDefaultProxyNets() (Vasil Dimov)
96c791dd20 net: remove CService::ToString() use ToStringAddrPort() instead (Vasil Dimov)
944a9de08a net: remove CNetAddr::ToString() and use ToStringAddr() instead (Vasil Dimov)
043b9de59a scripted-diff: rename ToStringIP[Port]() to ToStringAddr[Port]() (Vasil Dimov)

Pull request description:

  Before this PR we had the somewhat confusing combination of methods:

  `CNetAddr::ToStringIP()`
  `CNetAddr::ToString()` (duplicate of the above)
  `CService::ToStringIPPort()`
  `CService::ToString()` (duplicate of the above, overrides a non-virtual method from `CNetAddr`)
  `CService::ToStringPort()`

  Avoid [overriding non-virtual methods](https://github.com/bitcoin/bitcoin/pull/25349/#issuecomment-1185226396).

  "IP" stands for "Internet Protocol" and while sometimes "IP addresses" are called just "IPs", it is incorrect to call Tor or I2P addresses "IPs". Thus use "Addr" instead of "IP".

  Change the above to:

  `CNetAddr::ToStringAddr()`
  `CService::ToStringAddrPort()`

  The changes touch a lot of files, but are mostly mechanical.

ACKs for top commit:
  sipa:
    utACK c9d548c91f
  achow101:
    ACK c9d548c91f
  jonatack:
    re-ACK c9d548c91f only change since my previous reviews is rebase, but as a sanity check rebased to current master and at each commit quickly re-reviewed and re-verified clean build and green unit tests
  LarryRuane:
    ACK c9d548c91f

Tree-SHA512: 633fb044bdecf9f551b5e3314c385bf10e2b78e8027dc51ec324b66b018da35e5b01f3fbe6295bbc455ea1bcd1a3629de1918d28de510693afaf6a52693f2157
2023-02-17 13:34:40 -05:00
Hennadii Stepanov
b7f6a89a3e
Merge bitcoin-core/gui#686: clang-tidy: Force checks for headers in src/qt
7b7cd11244 clang-tidy, qt: Force checks for headers in `src/qt` (Hennadii Stepanov)
69eacf2c5e clang-tidy, qt: Fix `modernize-use-default-member-init` in headers (Hennadii Stepanov)

Pull request description:

  This PR split from bitcoin/bitcoin#26705 and contains only changes in `src/qt`.

  Effectively, it fixes the clang-tidy's `modernize-use-default-member-init` errors, and forces clang-tidy checks for all headers in the `src/qt` directory.

ACKs for top commit:
  jarolrod:
    ACK 7b7cd11244

Tree-SHA512: 79525bb0f31ae7cad88c781e55091a21467c0485ddc1ed03ad62e051480fda3b3710619ea11af480437edba3c6e038f7c40edc6b373e3a37408c006d11b34686
2023-01-17 09:54:56 +00: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
Hennadii Stepanov
69eacf2c5e
clang-tidy, qt: Fix modernize-use-default-member-init in headers
See https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-default-member-init.html
2022-12-16 11:58:38 +00:00