Commit Graph

40768 Commits

Author SHA1 Message Date
Ava Chow
423bd6dc68
windeploy: Renew certificate
Github-Pull: #30149
Rebased-From: 9f4ff1e965
2024-05-23 13:28:44 +01:00
Hennadii Stepanov
77b2321ca0
depends: Fetch miniupnpc sources from an alternative website
The https://miniupnp.tuxfamily.org website is unavailable now.

Github-Pull: #30151
Rebased-From: 21b8a14d37
2024-05-23 09:44:19 +01:00
Jon Atack
31adcfa171
test: add GetAddedNodeInfo() CJDNS regression unit test
Github-Pull: #30085
Rebased-From: d0b047494c
2024-05-23 09:44:19 +01:00
Jon Atack
9cdb9edfb8
p2p, bugfix: detect addnode cjdns peers in GetAddedNodeInfo()
Addnode (manual) peers connected to us via the cjdns network are currently not
detected by CConnman::GetAddedNodeInfo(), i.e. fConnected is always false.

This causes the following issues:

- RPC `getaddednodeinfo` incorrectly shows them as not connected

- CConnman::ThreadOpenAddedConnections() continually retries to connect them

Github-Pull: #30085
Rebased-From: 684da97070
2024-05-22 09:49:00 +01:00
Luke Dashjr
15680a2e73 GUI: Omit DbDump option for backup of BDB wallets 2024-05-16 17:42:10 +00:00
Luke Dashjr
6b1898af6d GUI: Support backup to DumpWallet format 2024-05-16 17:42:10 +00:00
Luke Dashjr
ce88a6dea4 interfaces/Wallet: Add DumpWallet format to backupWallet interface 2024-05-16 17:42:10 +00:00
Cory Fields
3c26058da2
crypto: disable asan for sha256_sse4 with clang and -O0
Clang is unable to compile the Transform function for that combination of
options.

Github-Pull: #30097
Rebased-From: 141df0a288
2024-05-16 08:41:52 +08:00
Luke Dashjr
615033cfb8 Diff-minimise 2024-05-15 23:58:44 +00:00
Luke Dashjr
78ca914751 RPC/Wallet: Convert descriptorprocesspsbt to use options parameter 2024-05-15 23:58:43 +00:00
Luke Dashjr
9ea0d3d69d Merge branch 'rpcarg_type_per_name' into rpc_descriptorprocesspsbt_opts-27.1+k 2024-05-15 23:58:41 +00:00
Luke Dashjr
d1815ce04d Diff-minimise 2024-05-15 23:48:13 +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
Aaron Dewes
43c9a1772e Add reindex=auto flag to automatically reindex corrupt data
This PR allows the reindex flag to be set to auto, which automatically starts a reindex if the chain state or block index are corrupt.
This can be especially useful for  Raspberry Pi based full nodes, which often experience power outages or similar issues which can corrupt data.
It allows full node operators to make Bitcoin Core reindex automatically, without having to worry about removing the reindex flag again. (Which isn't much effort, but can be annoying to forget)

Github-Pull: #22072
Rebased-From: 602f4da9178dff11853431f9a7115194f6a016ac
2024-05-15 23:43:03 +00:00
Luke Dashjr
01dd32a709 interfaces/Wallet: Add the ability to choose a backup format
Also outputs a bilingual_str error (unused for now)
2024-05-15 23:34:17 +00:00
Luke Dashjr
111058215c Wallet: Pass dump_filename to DumpWallet as an argument 2024-05-15 23:34:16 +00:00
Luke Dashjr
0e6f6c7039 Bugfix: QA: When testing setfeerate, check approximate fee range with a span able to tolerate normal signature length variation 2024-05-15 23:06:59 +00:00
Jon Atack
ca39313f6d test: add more functional tests for setfeerate
Was: test: update functional tests from settxfee to setfeerate

Github-Pull: #20391
Rebased-From: d87f0f3a923dca2ce8d99aa700b0beda8e42d3ec (partial)
2024-05-15 23:06:59 +00:00
Jon Atack
70a334ddaf test: add setfeerate functional coverage in wallet_bumpfee.py
Github-Pull: #20391
Rebased-From: c907f158a6bf3cad782d4441e02abcbda210265b
2024-05-15 23:06:59 +00:00
Jon Atack
e3bad6d0d2 test: add setfeerate functional coverage in wallet_create_tx.py
Github-Pull: #20391
Rebased-From: 529bfc16ffb35c5356e27f61d59395fae6707bcd
2024-05-15 23:06:59 +00:00
Jon Atack
eda384078d wallet: introduce setfeerate, an improved settxfee in sat/vB
Github-Pull: #20391
Rebased-From: 8e863e3d3ce457c9ca26a12e8fd6beac2f50aa7d (diff-minimised)
2024-05-15 23:06:59 +00:00
Jon Atack
01e51a3976 test: add ValueFromFeeRate/CFeeRate unit tests
(partial: CFeeRate in 0.21 doesn't take FeeEstimateMode)
2024-05-15 23:06:59 +00:00
Luke Dashjr
8baf00e0c4 core_io: Add ValueFromFeeRate helper 2024-05-15 23:06:59 +00:00
Jon Atack
09c51e7f7d policy: add CFeeRate::SatsToString helper without units 2024-05-15 23:06:59 +00:00
Luke Dashjr
318c798852 Disable lowmem flushing in test that needs determinism 2024-05-15 23:01:19 +00:00
Luke Dashjr
1a01c95586 Make lowmem threshold configurable 2024-05-15 23:01:18 +00:00
Luke Dashjr
71eae9faab util: Log reasoning when returning true from SystemNeedsMemoryReleased 2024-05-15 23:00:40 +00:00
Luke Dashjr
aed813cc1b Flush dbcache early if system is under memory pressure
No point forcing memory to get pushed out to swap just to cache db changes when we can write the db changes out instead
2024-05-15 23:00:40 +00:00
Luke Dashjr
ea8bfa036c Diff-minimise 2024-05-15 22:58:12 +00:00
w0xlt
7ebac24002 test: add test for dump human-readable dumptxoutset
Co-authored-by: Luke Dashjr <luke-jr+git@utopios.org>
Co-authored-by: brunoerg <brunoely.gc@gmail.com>
2024-05-15 22:58:12 +00:00
w0xlt
ce9524f0b5 rpc: allow dumptxoutset to dump human-readable data
Co-authored-by: Shashwat Vangani <shaavan.github@gmail.com>
Co-authored-by: Luke Dashjr <luke-jr+git@utopios.org>
2024-05-15 22:58:11 +00:00
Luke Dashjr
21a3dd4198 Diff-minimise 2024-05-15 22:52:48 +00:00
Elichai Turkel
8463aef09f Optimized siphash implementation
Github-Pull: #18014
Rebased-From: 409c2e345225716a29c856b24e1c232a643a52ef
2024-05-15 22:52:41 +00:00
Luke Dashjr
25ea55c25d GUI: Add a warning prompt when sending to an already-used address 2024-05-15 22:40:50 +00:00
Luke Dashjr
668e18bf70 GUI: Use warning indicator for send coins entries with reused addresses 2024-05-15 22:40:50 +00:00
Luke Dashjr
bde17b6138 GUI: Implement BitcoinAddressUnusedInWalletValidator 2024-05-15 22:40:50 +00:00
Luke Dashjr
4b943c42fd GUI: QValidatedLineEdit: Add support for a warning-but-valid state 2024-05-15 22:40:50 +00:00
Luke Dashjr
42e4f13246 GUI: WalletModel: Wrap checkAddressForUsage and findAddressUsage 2024-05-15 22:40:50 +00:00
Luke Dashjr
0ba948aa4f GUI: SendConfirmationDialog: Enable changing the actual buttons used
Both buttons can be replaced with other standard buttons
2024-05-15 22:40:49 +00:00
Luke Dashjr
08ce9ecf45 GUI: SendConfirmationDialog: Defer button setup until exec 2024-05-15 22:40:49 +00:00
Luke Dashjr
86c5b4f00a GUI: Add GUIUtil::dateStr 2024-05-15 22:40:49 +00:00
Luke Dashjr
82908e28a5 interfaces/wallet: Add checkAddressForUsage and findAddressUsage 2024-05-15 22:40:49 +00:00
Luke Dashjr
9378ceaac6 Merge branch 'getaddressinfo_txids' into HEAD 2024-05-15 22:40:39 +00:00
Evan Klitzke
79e4722e62 Try to use posix_fadvise with CBufferedFile
This primarily affects blocks when bitcoin is launched with -reindex, as
that causes the block files to be loaded as CBufferedFile objects one at
a time as the reindex progresses.

Co-Authored-By: Luke Dashjr <luke-jr+git@utopios.org>

Github-Pull: #14485
Rebased-From: 289e88b3133107f8a54184d8316559c7cf8ddb12
2024-05-15 21:46:18 +00:00
Luke Dashjr
b2321063e0 Merge branch 'bufferedfile_fclose' into HEAD 2024-05-15 21:44:51 +00:00
furszy
6e24242027 wallet: default wallet migration, modify inconvenient backup filename
On default legacy wallets, the backup filename starts with an "-" due
to the wallet name being empty. This is inconvenient for systems who
treat what follows the initial "-" character as flags.

Github-Pull: #29586
Rebased-From: a951dba3a9
2024-05-15 21:09:13 +00:00
Luke Dashjr
38fc092d97 Diff-minimise 2024-05-15 20:02:17 +00:00
fanquake
0eeba0aa28 depends: qt 5.15.13
I need to try and patch around Qts buildsystem to keep #21778 moving
along (the issue being that even when you tell Qt to build using
Clang on Linux, it still calls out to GCC, breaking our ability to have
a macOS release build env that doesn't have a GCC toolchain installed,
and thus no ld binary).

Before trying to patch Qt any further, update to the latest LTS
release, and update the current patch set.

Github-Pull: #29732
Rebased-From: 430f319f73
2024-05-15 20:02:17 +00:00
Jon Atack
9f05a705fc test: AddNode() CJDNS regression unit tests
Rebased-From: be4541abe5
2024-05-15 19:54:45 +00:00
Jon Atack
b5efac03db p2p, bugfix: correctly detect CJDNS addnode entries in AddNode()
Rebased-From: 28823f30dc
2024-05-15 19:54:44 +00:00