Commit Graph

2020 Commits

Author SHA1 Message Date
Luke Dashjr
c5aecd96fc Merge 18223 via blockfilter_v0 2023-11-15 23:49:11 +00:00
Luke Dashjr
e4bc1dba68 Merge 15421 via tor_subprocess-25+knots 2023-11-15 23:49:11 +00:00
Luke Dashjr
6e1ffe36dc Merge 15218 via postibd_flush-25 2023-11-15 23:49:11 +00:00
Luke Dashjr
e2c665fd58 Merge 10554 via zmq_wtx-25+knots 2023-11-15 23:49:11 +00:00
Luke Dashjr
68a8c2448c Merge 8501 via old_stats_rpc-25 2023-11-15 23:49:11 +00:00
Luke Dashjr
b1d438a241 Merge 28101 via torcontrol_help_defport-23 2023-11-15 23:49:11 +00:00
Luke Dashjr
024d8fc86d Merge 27114 via whitelist_outgoing-mini-25+knots 2023-11-15 23:49:11 +00:00
Luke Dashjr
9213782194 Merge 28167 via rpccookieperms-25+knots 2023-11-15 23:49:11 +00:00
Luke Dashjr
bfa6e78d5b Merge 22372 via multinotify 2023-11-15 23:49:11 +00:00
Luke Dashjr
93ade4c20b Merge 22072 via autoreindex 2023-11-15 23:49:11 +00:00
Luke Dashjr
c433f09bab Merge 21780 via rpc_maxmempool 2023-11-15 23:49:11 +00:00
Luke Dashjr
e7f3fe121b Merge 20407 via rpcauthfile 2023-11-15 23:49:11 +00:00
Luke Dashjr
8c38e853e2 Merge 19873 via mempressure 2023-11-15 23:49:11 +00:00
Luke Dashjr
877baf1c3e Merge 19242 via uaappend 2023-11-15 23:49:11 +00:00
Luke Dashjr
68df3d26ed Merge 18972 via neutrino_whitelist-mini 2023-11-15 23:49:11 +00:00
Luke Dashjr
76ce07a347 Merge 26375 via zmq_optimise_duplread-25+k 2023-11-15 23:49:11 +00:00
Luke Dashjr
c5c82e96e5 Merge fix_doc_upnp_def_post26896 2023-11-15 23:49:11 +00:00
Luke Dashjr
065a317c68 Bugfix: doc: Correct default for -upnp following removal of configure flag 2023-11-16 01:07:54 +00:00
Luke Dashjr
7dde653676 Merge 28858 via fix_doc_par_opt-21 2023-11-15 23:49:11 +00:00
fanquake
089621b2e0 doc: rewrite explanation for -par=
The negative bound for script threads comes from the machine which
generates the man pages, so may only be correct for that machine. Any
other placeholder value will also be wrong for some machines. Fix this
be removing the value. This also fixes help2man incorrectly bolding the
value, as if it were a paramater.

Closes #28850.

Github-Pull: #28858
Rebased-From: d799ea26ed
2023-11-16 00:41:00 +00:00
Luke Dashjr
c9467913ac Merge 28020 via fix_zmq_ipc_noportcheck-25 2023-11-15 23:49:11 +00:00
Luke Dashjr
1cd6d7f8ed Merge 27708 via postinit_exit_failure_code-25 2023-11-15 23:49:11 +00:00
Luke Dashjr
a681628604 Merge fee_est_stalecheck-25+knots 2023-11-15 23:49:11 +00:00
Luke Dashjr
0e56163487 Merge 27302 via ignoredconf_err_def0-25 2023-11-15 23:49:11 +00:00
Luke Dashjr
b54d824dcf Merge 26331 via origin-pull/26331/head 2023-11-15 23:49:11 +00:00
Luke Dashjr
74144bcf53 Adjust -whitelist to default to both incoming and outgoing connections 2023-10-19 16:43:54 +00:00
Luke Dashjr
7ca26240f1 Accept "in" and "out" flags to -whitelist to allow whitelisting outgoing connections
Github-Pull: #27114
Rebased-From: 22e64e8ab55310fa613946eaf3861b7211a493e1
2023-10-19 14:57:44 +00:00
Luke Dashjr
5d9255a4ee Validate zmqpubhashwallettx and zmqpubrawwallettx port numbers
Based on 04526787b5
2023-10-17 01:51:04 +00:00
Doron Somech
65ce3d7b5f 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)
2023-10-17 01:51:04 +00:00
Jonas Schnelli
3ff8478866 Add configuration options for mempool stats 2023-10-17 01:46:16 +00:00
Luke Dashjr
bc80448c03 init: Optimise -startupnotify slightly 2023-10-17 01:36:12 +00:00
Luke Dashjr
daa32813b8 Allow acceptstalefeeestimates on all networks 2023-10-02 21:26:12 +00:00
ismaelsadeeq
37764d3300
tx fees, policy: read stale fee estimates with a regtest-only option
If -acceptstalefeeestimates option is passed stale fee estimates can now
be read when operating in regtest environments.

Additionally, this commit updates all declarations of the CBlockPolicyEstimator
class to include a the second constructor variable.

Github-Pull: #27622
Rebased-From: cf219f29f3
2023-10-02 13:09:01 +01:00
ismaelsadeeq
c4dd5989b3
tx fees, policy: periodically flush fee estimates to fee_estimates.dat
This reduces chances of having old estimates in fee_estimates.dat.

Github-Pull: #27622
Rebased-From: 5b886f2b43
2023-10-02 13:09:01 +01:00
Luke Dashjr
2418b3324c torcontrol: Launch a private Tor instance when not already running 2023-09-15 21:14:21 +00:00
Luke Dashjr
fbd31d1e78 Merge branch 'torcontrol_help_defport-23' into tor_subprocess-25+knots 2023-09-15 21:13:09 +00:00
kevkevin
2a3756d2ef doc, refactor: Changing -torcontrol help to specify that a default port is used
Right now when we get the help for -torcontrol it says that there is a
default ip and port we dont specify if there is a specified ip that we
would also use port 9051 as default

Github-Pull: #28101
Rebased-From: 9a84200cfc
2023-09-15 21:05:05 +00:00
Andrew Toth
51544ee85d validation: sync utxo state after block sync
Github-Pull: #15218
Rebased-From: 0c7ee166463ae589f90fa2cd0cf5d2e524b0ce6a
2023-08-28 17:42:09 +00:00
Luke Dashjr
76f055d909 net: Add blockfilters white{bind,list} permission flag 2023-08-24 19:07:26 +00:00
Luke Dashjr
973cdab768 Only include full CBlock in UpdatedBlockTip when it will be used
Avoid keeping it around (increasing memory usage) when nothing will use it
2023-08-02 00:51:32 +00:00
Luke Dashjr
27827c9b89 Only enable basic blockfilterindex if enabled with type omitted 2023-07-30 00:04:10 +00:00
Aurèle Oulès
bfe9843ae5 init: Add option for rpccookie permissions
Adds a bitcoind launch option `-rpccookieperms` to configure
the file permissions of the cookie.

Github-Pull: #26088
Rebased-From: cc0d0aeca684c73c8f8538ca67ccc6866b786b25
2023-07-26 18:56:52 +00:00
Luke Dashjr
2c4cbac933 Support multiple -*notify commands 2023-07-20 15:13:30 +00:00
Luke Dashjr
937191ff61 Abstract minimum maxmempool to maxmempoolMinimumBytes function (in txmempool) 2023-07-20 14:53:10 +00:00
João Barbosa
4ebd67ccc1 rpc: Support -rpcauthfile argument
This argument is similar to -rpcauth but takes the value from the
specified file content
2023-07-18 23:38:02 +00:00
Luke Dashjr
6399e4c638 Make lowmem threshold configurable 2023-07-08 01:59:19 +00:00
JayBitron
defe61d32a exclude ipc scheme port check
Github-Pull: #28020
Rebased-From: 0b1762c90d
2023-07-04 16:56:51 +00:00
furszy
1edcbb9ae5 Return EXIT_FAILURE on post-init fatal errors
It seems odd to return `EXIT_SUCCESS` when the node aborted
execution due a fatal internal error or any post-init problem
that triggers an unrequested shutdown.

e.g. blocks or coins db I/O errors, disconnect block failure,
failure during thread import (external blocks loading process
error), among others.

Co-authored-by: Ryan Ofsky <ryan@ofsky.org>

Github-Pull: #27708
Rebased-From: 3b2c61e819
2023-07-02 00:20:44 +00:00
Ryan Ofsky
d0000b6c55 init: Error if ignored bitcoin.conf file is found
Show an error on startup if a bitcoin datadir that is being used contains a
`bitcoin.conf` file that is ignored. There are two cases where this could
happen:

- One case reported in
  https://github.com/bitcoin/bitcoin/issues/27246#issuecomment-1470006043
  happens when a bitcoin.conf file in the default datadir (e.g.
  $HOME/.bitcoin/bitcoin.conf) has a "datadir=/path" line that sets different
  datadir containing a second bitcoin.conf file. Currently the second
  bitcoin.conf file is ignored with no warning.

- Another way this could happen is if a -conf= command line argument points
  to a configuration file with a "datadir=/path" line and that specified path
  contains a bitcoin.conf file, which is currently ignored.

This change only adds an error message and doesn't change anything about way
settings are applied. It also doesn't trigger errors if there are redundant
-datadir or -conf settings pointing at the same configuration file, only if
they are pointing at different files and one file is being ignored.

Github-Pull: #27302
Rebased-From: 3746f00be1
2023-07-01 01:03:19 +00:00
fanquake
369d4c03b7
Merge bitcoin/bitcoin#27254: refactor: Extract util/fs from util/system
00e9b97f37 refactor: Move fs.* to util/fs.* (TheCharlatan)
106b46d9d2 Add missing fs.h includes (TheCharlatan)
b202b3dd63 Add missing cstddef include in assumptions.h (TheCharlatan)
18fb36367a refactor: Extract util/fs_helpers from util/system (Ben Woosley)

Pull request description:

  This pull request is part of the `libbitcoinkernel` project https://github.com/bitcoin/bitcoin/issues/24303 https://github.com/bitcoin/bitcoin/projects/18 and more specifically its "Step 2: Decouple most non-consensus code from libbitcoinkernel". This commit was originally authored by empact and is taken from its parent PR #25152.

  #### Context

  There is an ongoing effort to decouple the `ArgsManager` used for command line parsing user-provided arguments from the libbitcoinkernel library (https://github.com/bitcoin/bitcoin/pull/25290, https://github.com/bitcoin/bitcoin/pull/25487, https://github.com/bitcoin/bitcoin/pull/25527, https://github.com/bitcoin/bitcoin/pull/25862, https://github.com/bitcoin/bitcoin/pull/26177, and https://github.com/bitcoin/bitcoin/pull/27125). The `ArgsManager` is defined in `system.h`. A similar pull request extracting functionality from `system.h` has been merged in https://github.com/bitcoin/bitcoin/pull/27238.

  #### Changes

  Next to providing better code organization, this PR removes some reliance of the tree of libbitcoinkernel header includes on `system.h` (and thus the `ArgsManager` definition) by moving filesystem related functions out of the `system.*` files.

  There is already a pair of `fs.h` / `fs.cpp` in the top-level `src/` directory. They were not combined with the files introduced here, to keep the patch cleaner and more importantly because they are often included without the utility functions. The new files are therefore named `fs_helpers` and the existing `fs` files are moved into the util directory.

  Further commits splitting more functionality out of `system.h` are still in #25152 and will be submitted in separate PRs once this PR has been processed.

ACKs for top commit:
  hebasto:
    ACK 00e9b97f37

Tree-SHA512: 31422f148d14ba3c843b99b1550a6fd77c77f350905ca324f93d4f97b652246bc58fa9696c64d1201979cf88733e40be02d262739bb7d417cf22bf506fdb7666
2023-04-03 14:41:22 +01:00