Commit Graph

41053 Commits

Author SHA1 Message Date
Luke Dashjr
2c52c86284 zmq: Remove duplicate category from LogPrint output
Inspired-by: d40550d725
2024-06-17 20:05:19 +00:00
Luke Dashjr
294c3f56e2 Bugfix: QA: interface_zmq: Compare txid correctly when it is a Segwit tx 2024-06-17 20:05:19 +00:00
Luke Dashjr
09e8f6b99e Validate zmqpubhashwallettx and zmqpubrawwallettx port numbers
Based on 04526787b5
2024-06-17 20:05:19 +00:00
Luke Dashjr
f48b0476c3 Bugfix: zmq: Fix implicit-integer-sign-change in CZMQPublishHashTransactionNotifier 2024-06-17 20:05:19 +00:00
Luke Dashjr
c5aa0b35c0 doc/zmq: Add detailed descriptions for {hash,raw}wallettx topics 2024-06-17 20:05:19 +00:00
Doron Somech
2b16311ef5 ZMQ: add publishers of wallet tx
Topic will indicate if transaction came from mempool or block so developers can handle the transaction accordingly without a RPC round trip to bitcoind.

(includes ZMQ: Making CWallet::TransactionAddedToWallet static)
2024-06-17 20:05:18 +00:00
MarcoFalke
9691293934 refactor: performance-for-range-copy in psbt.h
Github-Pull: #30253
Rebased-From: fab01b5220
2024-06-12 20:50:06 +00:00
merge-script
1088a98f5a
Merge bitcoin/bitcoin#30222: [27.1] Finalize
d756a384d2 doc: update manual pages for 27.1 (fanquake)
93bb18f1c8 build: bump version to v27.1 final (fanquake)
fcf1241971 doc: update release notes for v27.1 final (fanquake)
f2e05cd2a9 depends: Update Boost download link (Hennadii Stepanov)
ba35920542 build: Fix building `fuzz` binary on on SunOS / illumos (Hennadii Stepanov)

Pull request description:

  Backports:
  * https://github.com/bitcoin/bitcoin/pull/30216
  * https://github.com/bitcoin/bitcoin/pull/30217

  I don't think either of these changes warrants an `rc2` cycle.

ACKs for top commit:
  stickies-v:
    ACK d756a384d2
  willcl-ark:
    ACK d756a384d2

Tree-SHA512: b5662143283a49156403d865dee25f3b6c22741345a4c8ff10f16845ea7a1a6d9d1319a70a44d07f31263bf1a6d85701146e9cc697b82a5a58922c48504a552c
2024-06-11 14:18:57 +01:00
Luke Dashjr
15e48c9e98 Bugfix: GUI: Pairing: Only attach to non-null client model signals 2024-06-10 17:50:24 +00:00
Luke Dashjr
81080dd932 Bugfix: GUI: Pairing: Don't try to add layout to the wrong parent even temporarily 2024-06-10 17:50:24 +00:00
Luke Dashjr
c8d2ec6731 GUI: Add experimental-status warning to Pairing page 2024-06-10 17:50:24 +00:00
Luke Dashjr
b1a3eea7b1 GUI: Add Pairing tab to disablewallet mode 2024-06-10 17:50:23 +00:00
Luke Dashjr
7352aa3b20 GUI: Make RPCConsole tabs more flexible at runtime 2024-06-10 17:49:54 +00:00
Luke Dashjr
825216b0e5 GUI: Show onion address as text & QR code in Pairing tab 2024-06-10 17:49:54 +00:00
Luke Dashjr
2992c43db9 GUI: Add a new tab for pairing 2024-06-10 17:49:54 +00:00
Luke Dashjr
9e31abf46d GUI: Add an extra stack to WalletFrame so non-wallet tabs are possible 2024-06-10 17:49:54 +00:00
Luke Dashjr
23ad648e37 GUI: Add getTorInfo to ClientModel 2024-06-10 17:49:54 +00:00
Luke Dashjr
c3f772be36 Add signals for network local address added/removed 2024-06-10 17:49:54 +00:00
Luke Dashjr
4a0c435925 Merge branch 'qt_node_localaddrs-26' into tor_gui_pairing-27+knots 2024-06-10 17:49:41 +00:00
Luke Dashjr
7db4c5bb2a Merge branch 'gui_netwatch-27+knots' into tor_gui_pairing-27+knots 2024-06-10 17:49:37 +00:00
Luke Dashjr
d8bab70fcd Merge branch 'zmq_unix_uri_compat-25' into zmq_wtx-27+knots 2024-06-10 17:41:39 +00:00
Luke Dashjr
80f58145b1 GUI: Group "Watch network activity" and "Mempool Statistics" menu entries together nicely 2024-06-10 16:51:08 +00:00
Luke Dashjr
acd774fc81 Bugfix: Qt: NetWatch: Hold cs_main while getting blockindex.nStatus 2024-06-10 16:51:03 +00:00
Luke Dashjr
4d45d94891 NetWatch: Use BlockConnected instead of UpdatedBlockTip 2024-06-10 16:50:46 +00:00
Luke Dashjr
267a5309fa Qt: Network Watch tool
Simple realtime log of p2p network activity (blocks and transactions only)

- Doesn't begin logging until opened; limited to 0x400 entries (outputs)
- Automatically scrolls if left at the bottom of the log; maintains position if left elsewhere
- Memory-efficient circular buffer; CTransaction references become weak after they're 0x200 entries back in the log
- Search function that selects all matching log entries, including ongoing
2024-06-10 15:38:52 +00:00
Luke Dashjr
fe1bc97906 CValidationInterface: ValidationInterfaceUnregistering, called when being unregistered 2024-06-10 15:38:48 +00:00
Luke Dashjr
b46fa59111 Merge branch 'old_stats_qt-27+knots' into gui_netwatch-27+knots 2024-06-10 15:38:43 +00:00
Luke Dashjr
5f111fde36 Bugfix: Restore <string> include in rest.cpp 2024-06-10 14:36:41 +00:00
Andrew Toth
793e8f5f87 rest: read raw block in rest_block and deserialize for json
Note that for speed this commit also removes the proof of work and
signet signature checks before returning the block in getblock.
It is assumed if a block is stored it will be valid.

Github-Pull: #26415
Rebased-From: e710cefd57
2024-06-10 14:05:11 +00:00
Andrew Toth
5417597c6c rpc: read raw block in getblock and deserialize for verbosity > 0
Note that for speed this commit also removes the proof of work and
signet signature checks before returning the block in getblock.
It is assumed if a block is stored it will be valid.

Github-Pull: #26415
Rebased-From: 95ce0783a6
2024-06-10 14:05:11 +00:00
Andrew Toth
b31a4a2a73 test: check more details on zmq raw block response
Github-Pull: #26415
Rebased-From: 0865ab8712
2024-06-10 14:05:11 +00:00
Andrew Toth
bbbcf92de2 zmq: read raw block with ReadRawBlockFromDisk
Github-Pull: #26415
Rebased-From: 38265cc14e
2024-06-10 14:05:11 +00:00
Andrew Toth
18aa12fb5c blockstorage: check nPos in ReadRawBlockFromDisk before seeking back
ReadRawBlockFromDisk assumes a non-null pos that has an nPos >= 8.
This simple check makes the function safer to call in the future,
so callers don't need to worry about causing UB if the pos is null.

Github-Pull: #26415
Rebased-From: da338aada7
2024-06-10 14:05:11 +00:00
fanquake
d756a384d2
doc: update manual pages for 27.1 2024-06-10 13:03:33 +01:00
fanquake
93bb18f1c8
build: bump version to v27.1 final 2024-06-10 13:03:33 +01:00
fanquake
fcf1241971
doc: update release notes for v27.1 final 2024-06-10 13:03:30 +01:00
fanquake
8d3448c59b build: ignore deprecated-declaration warnings in objc++ macOS code
These come from GUI code, and haven't/aren't being fixed, see discussion
in https://github.com/bitcoin-core/gui/issues/112. For now, just ignore
them entirely. Note that this only applies to ObjCXX code, so will not
hide any relevant warnings coming from C or CXX code (and they would be
unlikely in any case).

Alternative to #29362, which disables all compiler warnings, for macOS
builds in the CI.

Relevant output:
```bash
qt/macnotificationhandler.mm:27:9: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
        NSUserNotification* userNotification = [[NSUserNotification alloc] init];
        ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here
@interface NSUserNotification : NSObject <NSCopying> {
           ^
qt/macnotificationhandler.mm:27:50: warning: 'NSUserNotification' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
        NSUserNotification* userNotification = [[NSUserNotification alloc] init];
                                                 ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:24:12: note: 'NSUserNotification' has been explicitly marked deprecated here
@interface NSUserNotification : NSObject <NSCopying> {
           ^
qt/macnotificationhandler.mm:30:11: warning: 'NSUserNotificationCenter' is deprecated: first deprecated in macOS 11.0 - All NSUserNotifications API should be replaced with UserNotifications.frameworks API [-Wdeprecated-declarations]
        [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification: userNotification];
          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h:118:12: note: 'NSUserNotificationCenter' has been explicitly marked deprecated here
@interface NSUserNotificationCenter : NSObject {
           ^
3 warnings generated.
```

Github-Pull: #29577
Rebased-From: 8b7630cb1f
2024-06-08 01:56:52 +00:00
Hennadii Stepanov
cafe533fef build: Add missed definition for AM_OBJCXXFLAGS
Github-Pull: #29577
Rebased-From: bd8f0354ba
2024-06-08 01:56:49 +00:00
Andrew Toth
7ebe6085b8 test: add test for SyncCoinsTipAfterChainSync
Github-Pull: #15218
Rebased-From: 9843f2ca5913b7a043d3e78afb3a96f1443ab2dd
2024-06-04 18:23:39 +00:00
Andrew Toth
2cff3f267b validation: sync utxo state after block sync
Github-Pull: #15218
Rebased-From: 4862f294cd6edf062d991ae4d9a9ada1268c7532
2024-06-04 18:23:37 +00:00
Luke Dashjr
b4849c67c1 doc: Update Qt version to 5.15.14 2024-06-04 17:50:03 +00:00
fanquake
a0d864340a depends: qt 5.15.14
Github-Pull: #30198
Rebased-From: b018bd779d
2024-06-04 17:47:09 +00:00
Hennadii Stepanov
f2e05cd2a9
depends: Update Boost download link
See: https://github.com/boostorg/boost-tasks/pull/3

Github-Pull: #30217
Rebased-From: ffbc173ca1
2024-06-04 11:17:16 +01:00
Hennadii Stepanov
ba35920542
build: Fix building fuzz binary on on SunOS / illumos
Github-Pull: #30216
Rebased-From: 3299abce94
2024-06-04 11:17:16 +01:00
brunoerg
2c73e88c96 rpc, net: improve mapped_as doc for getrawaddrman/getpeerinfo
Use same text from `-netinfo` help doc which is more
complete and clear. Before, we did not explicity say that
both fields `{source_}mapped_as` (that are optional in
getrawaddrman) will be only available if the asmap config
flag is set.

Co-authored-by: Jon Atack <jon@atack.com>

Github-Pull: #30183
Rebased-From: 53f38f6fceec35819439e4b8491c4d7b700bf331
2024-05-29 18:58:46 +00:00
brunoerg
81566fa584 rpc, net: getrawaddrman "mapped_as" follow-ups
Github-Pull: #30183
Rebased-From: e84747f421c8d05c00ff545ffa2c3b40dba19c56
2024-05-29 18:58:32 +00:00
Luke Dashjr
cb461af1a8 QA: rpc_users: Test rpcauth wallet restrictions 2024-05-29 15:26:51 +00:00
Luke Dashjr
e6e67b2c59 Bugfix: Remove wallet restrictions on RPC calls via node interface (ie, GUI RPC console) 2024-05-29 15:26:51 +00:00
Luke Dashjr
cbce3e1bda RPC/Wallet: Restrict {backup,create,dump,import,load,migrate,restore,unload}wallet for wallet-restricted RPC users
Take extra care (context, -U30) cherry-picking this or going through a patch file - it's easy for limited context to move some parts between the wrong RPC methods!
2024-05-29 15:26:51 +00:00
Luke Dashjr
d1dd00b3fa RPC: Allow rpcauth configs to specify a 4th parameter naming a specific wallet 2024-05-29 15:26:51 +00:00