Commit graph

35003 commits

Author SHA1 Message Date
Pablo Greco
d45c79e6bb Bump version to 22.1.1-rc1 2023-02-24 14:22:36 -03:00
Pablo Greco
15a0f05628 Update manpages 2023-02-24 14:22:36 -03:00
Pablo Greco
7b3a48e14c Update copyright year to 2023 2023-02-24 14:22:36 -03:00
Pablo Greco
f8a7d37232 Cirrus dropped support for Intel macos, disable the unsupported test 2023-02-24 14:22:36 -03:00
Pieter Wuille
bdb6067fb1 BIP341 txdata cannot be precomputed without spent outputs
Github-Pull: #27122
Rebased-From: 95f12de925
(cherry picked from commit 95f12de925)
2023-02-24 14:22:36 -03:00
roconnor-blockstream
f8bf7c6269 test: Replace 0xC0 constant
Instead it should be the named constant `LEAF_VERSION_TAPSCRIPT`.

Github-Pull: #27143
Rebased-From: c3b4b5a142
(cherry picked from commit c3b4b5a142)
2023-02-24 14:22:36 -03:00
fanquake
8cec27d35c 23.x Add missing includes to fix gcc-13 compile error
Additional include fixes are required to make the 23.x branch compile
using GCC 13.

Github-Pull: #26921
Rebased-From: af86266165
(cherry picked from commit ea584a617c6853eb1f9740600cd9db75d77948eb)
2023-02-24 14:22:36 -03:00
MarcoFalke
3e2d88dc74 Add missing includes to fix gcc-13 compile error
Github-Pull: #26924
Rebased-From: fadeb6b103
(cherry picked from commit c21e6a9ce210e0b0d1f4081ebd5dfefbe3c7af2d)
2023-02-24 14:22:36 -03:00
Pablo Greco
6c01a50d94 Merge branch 'master' into elements-22_1_1_rc1 2023-02-24 13:25:20 -03:00
James Dorfman
8a179079e0
Merge pull request #1214 from psgreco/master-fix-linter
Fix linter (trailing whitespace)
2023-02-24 11:12:11 -05:00
Pablo Greco
a5976a6364 Fix linter (trailing whitespace) 2023-02-24 09:53:40 -03:00
James Dorfman
9e627b6ea4
Merge pull request #1212 from psgreco/master-trim-underflow
Fix underflow when blocks are ahead of headers
2023-02-21 13:31:13 -05:00
Pablo Greco
e7fea1d50b Fix underflow when blocks are ahead of headers 2023-02-21 06:22:25 -03:00
Glenn Willen
718ac5bd6b
Merge pull request #1118 from gwillen/feature-merge-workflow
Improvements to pr review script
2023-02-14 10:47:22 -08:00
James Dorfman
a47f465847
Merge pull request #1209 from psgreco/master-wsh-dynafed
Allow deploying regtest networks with p2wsh peg-ins
2023-02-13 09:46:42 -05:00
Pablo Greco
4cbe3d4322 Allow starting regtest networks with p2wsh peg-in addresses 2023-02-07 18:16:43 -03:00
Pablo Greco
07a45ba058 Avoid regenerating the full parameters when dynafed is always active 2023-02-07 18:16:43 -03:00
Byron Hambly
2f7bf3e1f1
Merge pull request #1206 from psgreco/master-hide-rpcpasswords
Obscure mainchain rpc fields in the logs, just like the local ones
2023-02-01 18:02:26 +02:00
Pablo Greco
ae4a990985 Obscure mainchain rpc fields in the logs, just like the local ones 2023-01-30 16:49:14 -03:00
Pablo Greco
0a20d6e327
Merge pull request #1203 from philippem/fix-getsidechaininfo-rpc-help
Correct help for getsidechaininfo RPC
2023-01-30 15:12:22 -03:00
Philippe McLean
0936031b9a Correct help for getsidechaininfo RPC
- described order of current_fedpegscripts array was incorrect
2023-01-26 17:54:48 -08:00
Jeff Frontz
554899781d
Merge pull request #1200 from psgreco/elements-22_1
Bump version to 22.1
2023-01-26 09:43:01 -05:00
Pablo Greco
ffeeddef54
Merge pull request #1190 from gwillen/fix-elements-memory-usage
Improve elements memory usage
2023-01-26 10:01:25 -03:00
Glenn Willen
15dbe64100 Remove stray comment 2023-01-25 09:31:03 -08:00
Glenn Willen
e62215628c Update documentation 2023-01-24 22:34:37 -08:00
Glenn Willen
e8475e7edd Fix stuck IBD when discarding unwanted headers from peers.
When receiving unwanted headers from a peer, first check whether we have
recent "best known block" state for that peer. If not, accept one batch
of headers to refresh it. Otherwise, we can become stuck in a state where
we need blocks, but we don't know which peers have those blocks available.
This especially happens during startup, when we don't have this information
for any peers until we start processing header messages.
2023-01-24 22:05:36 -08:00
Pablo Greco
39f936624b Bump version to 22.1 2023-01-13 10:06:15 -03:00
Glenn Willen
8cad8cda44 Further fixes from code review 2023-01-04 16:33:35 -08:00
Glenn Willen
b9b7f6543a Apply suggestions from code review
Co-authored-by: Byron Hambly <byron@hambly.dev>
2023-01-04 15:32:04 -08:00
Byron Hambly
111e6a4f18
Merge pull request #1197 from psgreco/elements_22_1_rc1
Elements 22.1-rc1
2022-12-13 13:55:59 +02:00
Glenn Willen
29345e9e12 pgreco's startup crash fix 2022-12-12 09:53:44 -08:00
Glenn Willen
fba37b74b4 Move enough-headers check up, rejecting excess headers when received. 2022-12-12 09:53:44 -08:00
Glenn Willen
394e59d38d Politely and safely refuse getheaders requests for headers we have trimmed. 2022-12-12 09:53:44 -08:00
Glenn Willen
763d29895f Fix deserialization issues in certain functional tests 2022-12-12 09:53:44 -08:00
Glenn Willen
a2db974044 Fix false-positive lint 2022-12-12 09:53:44 -08:00
Glenn Willen
7e6fe4a5ba Don't let header syncing get too far ahead of block syncing 2022-12-12 09:53:44 -08:00
Glenn Willen
f5c79950a1 When people ask us for headers we do not have (over REST or RPC), do something reasonable. 2022-12-12 09:53:42 -08:00
Glenn Willen
4f0da3ce3d Trim headers when flushing to disk, and reduce flush interval from 1h to 5min. 2022-12-12 09:46:07 -08:00
Glenn Willen
eff6be337f Trim headers when loading block index from disk. 2022-12-12 09:46:07 -08:00
Glenn Willen
7c555578b7 Add a flag for header-trimming; clear P2P network feature bits when enabled. 2022-12-12 09:46:07 -08:00
Glenn Willen
68eb0864cb Refactor CBlockIndex to make proof and dynafed fields optional. 2022-12-12 09:46:04 -08:00
Pablo Greco
6a80134c8e Update manpages 2022-12-07 20:13:57 +00:00
Pablo Greco
db42cc92d6 Bump version to 22.1rc1 2022-12-07 20:13:57 +00:00
BlackcoinDev
2ead479242 depends: update qt 5.12 url to archive location
QT 5.12 cannot be downloaded from https://download.qt.io/official_releases/qt/ It can be access from https://download.qt.io/archive/qt/

(cherry picked from commit 28fc72f7819768db13a01744731dd609553939c8)
2022-12-07 20:13:57 +00:00
John Moffett
7b99ac7a69 Fixes bitcoin#26490 by preventing notifications
MacOS 13 sends a window focus change notification after the main
window has been destroyed but before the QTApplication has been
destroyed. This results in the menu bar receiving a notification
despite it no longer existing. The solution is to pass the main
window as context when subscribing to the notifications. Qt
automatically unsubscribes to notifications if the sender OR
context is destroyed.

Github-Pull: bitcoin-core/gui#680
Rebased-From: 8a5014cd8a
(cherry picked from commit 272fa2530493b13e4bf7c978e9768162f10ddf7f)
2022-12-07 20:13:57 +00:00
Andrew Chow
a12aceedf7 Disallow encryption of watchonly wallets
Watchonly wallets do not have any private keys to encrypt. It does not
make sense to encrypt such wallets, so disable the option to encrypt
them.

This avoids an assertion that can be hit when encrypting watchonly descriptor
wallets.

Github-Pull: bitcoin-core/gui#631
Rebased-From: 4c495413e1
(cherry picked from commit 7b7bbc145aedf149c6d8675c7e252b0767bb8652)
2022-12-07 20:13:57 +00:00
Hennadii Stepanov
47a07facdf qt: 22.1rc1 translations update
(cherry picked from commit 0bba3a70a1366f03f7cd90f51516aa3ef12cf2eb)
2022-12-07 20:13:57 +00:00
Pablo Greco
5bbdb64af8 Fix tests after backport of #26275 2022-12-07 20:13:57 +00:00
muxator
7ffaf1b573 rpc: add non-regression test about deriveaddresses crash when index is 2147483647
This test would cause a crash in bitcoind (see #26274) if the fix given in the
previous commit was not applied.

Github-Pull: #26275
Rebased-From: 9153ff3e27
(cherry picked from commit 403de22119f5c65a9fd43a665c469512b967ed38)
2022-12-07 20:13:57 +00:00
muxator
8d24f56227 rpc: fix crash in deriveaddresses when derivation index is 2147483647
2147483647 is the maximum positive value of a signed int32, and - currently -
the maximum value that the deriveaddresses bitcoin RPC call accepts as
derivation index due to its input validation routines.

Before this change, when the derivation index (and thus range_end) reached
std::numeric_limits<int_32_t>::max(), the "i" variable in the for cycle (which
is declared as int, and as such 32 bits in size on most platforms) would be
incremented at the end of the first iteration and then warp back to
-2147483648. This caused SIGABRT in bitcoind and a core dump.

This change assigns "i" an explicit size of 64 bits on every platform,
sidestepping the problem.

Fixes #26274.

Github-Pull: #26275
Rebased-From: addf9d6502
(cherry picked from commit db20d278e212b2a393a331624184a61fab6c05c9)
2022-12-07 20:13:57 +00:00