Skip to content

Commit 73c90c8

Browse files
Merge dashpay#5888: backport: trivial 2024 02 14
9940258 Merge bitcoin#25332: build: test for timingsafe_bcmp (laanwj) ca4b0fe Merge bitcoin#25320: util: modify Win32LockedPageAllocator to query windows for limit. (laanwj) edaf9cc Merge bitcoin#25359: doc: add distcc to productivity notes (laanwj) c1fa5a0 Merge bitcoin#25312: test: Fix port collisions caused by p2p_getaddr_caching.py (MacroFake) aaa83ae Merge bitcoin#25165: doc: Explain squashing with merge commits (laanwj) ef13101 Merge bitcoin#25210: doc: remove misleading AreInputsStandard() comment (laanwj) 0a847fd Merge bitcoin#25046: build: Fix `libmultiprocess` cross-compiling to Linux hosts (fanquake) 82eec21 Merge bitcoin#24754: build: specify cmake build dir for multiprocess depends build (fanquake) a91512e Merge bitcoin#24574: test: Actually print TSan tracebacks (fanquake) 2e01c11 Merge bitcoin-core/gui#568: options: flip listenonion to false if not listening (Hennadii Stepanov) 200d2d5 Merge bitcoin#24385: build: remove boost dep from libmultiprocess (MarcoFalke) 28ed1a2 Merge bitcoin#24316: ci: Rename Cirrus CI osx_instance to macos_instance (MarcoFalke) 8d3ecea Merge bitcoin#23130: doc: Revert "Remove outdated comments" and place comment correctly (W. J. van der Laan) 5fbdfa1 Merge bitcoin#23094: doc: Remove outdated comments (W. J. van der Laan) Pull request description: ## Issue being fixed or feature implemented Small batch of trivial backports ## What was done? _Describe your changes in detail_ ## How Has This Been Tested? Previous versions had been build and tested locally I believe. Please wait for CI ## Breaking Changes None ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ Top commit has no ACKs. Tree-SHA512: 0e3cfb7aab0a6373cf4167ae18849262fc4a5a62c0d301f558c7efd7c5db5a18e025aec0eba7b642829b2102133f92eda15aa5263319c65d158c2dd1506a13a2
2 parents c75fff6 + 9940258 commit 73c90c8

File tree

15 files changed

+51
-23
lines changed

15 files changed

+51
-23
lines changed

.cirrus.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ env:
1212
MAKEJOBS: "-j4"
1313
DANGER_RUN_CI_ON_HOST: "1" # Containers will be discarded after the run, so there is no risk that the ci scripts modify the system
1414
TEST_RUNNER_PORT_MIN: "14000" # Must be larger than 12321, which is used for the http cache. See https://cirrus-ci.org/guide/writing-tasks/#http-cache
15+
CI_FAILFAST_TEST_LEAVE_DANGLING: "1" # Cirrus CI does not care about dangling process and setting this variable avoids killing the CI script itself on error
1516
CCACHE_SIZE: "200M"
1617
CCACHE_DIR: "/tmp/ccache_dir"
1718

@@ -122,7 +123,7 @@ task:
122123
macos_brew_addon_script:
123124
- brew install boost libevent berkeley-db4 qt miniupnpc ccache zeromq qrencode sqlite libtool automake pkg-config gnu-getopt
124125
<< : *GLOBAL_TASK_TEMPLATE
125-
osx_instance:
126+
macos_instance:
126127
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
127128
image: catalina-xcode-12.1 # https://cirrus-ci.org/guide/macOS
128129
env:

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@ Please update the resulting commit message, if needed. It should read as a
190190
coherent message. In most cases, this means not just listing the interim
191191
commits.
192192

193-
If you have problems with squashing or other git workflows, you can enable
194-
"Allow edits from maintainers" in the right-hand sidebar of the GitHub web
195-
interface and ask for help in the pull request.
193+
If your change contains a merge commit, the above workflow may not work and you
194+
will need to remove the merge commit first. See the next section for details on
195+
how to rebase.
196196

197197
Please refrain from creating several pull requests for the same change.
198198
Use the pull request that is already open (or was created earlier) to amend
@@ -205,7 +205,9 @@ pull request to pull request.
205205
### Rebasing Changes
206206

207207
When a pull request conflicts with the target branch, you may be asked to rebase it on top of the current target branch.
208-
The `git rebase` command will take care of rebuilding your commits on top of the new base.
208+
209+
git fetch https://github.com/bitcoin/bitcoin # Fetch the latest upstream commit
210+
git rebase FETCH_HEAD # Rebuild commits on top of the new base
209211

210212
Avoid rebasing a non-conflicting pull request on top of the updated target
211213
branch if you requested a review already. If you need to tweak some commit in

configure.ac

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,8 @@ AC_CHECK_DECLS([daemon])
10161016

10171017
AC_CHECK_DECLS([pipe2])
10181018

1019+
AC_CHECK_FUNCS([timingsafe_bcmp])
1020+
10191021
AC_CHECK_DECLS([le16toh, le32toh, le64toh, htole16, htole32, htole64, be16toh, be32toh, be64toh, htobe16, htobe32, htobe64],,,
10201022
[#if HAVE_ENDIAN_H
10211023
#include <endian.h>

depends/funcs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ $(1)_cmake=env CC="$$($(1)_cc)" \
176176
CXX="$$($(1)_cxx)" \
177177
CXXFLAGS="$$($(1)_cppflags) $$($(1)_cxxflags)" \
178178
LDFLAGS="$$($(1)_ldflags)" \
179-
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)"
179+
cmake -DCMAKE_INSTALL_PREFIX:PATH="$$($($(1)_type)_prefix)" $$($(1)_cmake_opts)
180180
ifeq ($($(1)_type),build)
181181
$(1)_cmake += -DCMAKE_INSTALL_RPATH:PATH="$$($($(1)_type)_prefix)/lib"
182182
else

depends/packages/libmultiprocess.mk

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,20 @@ $(package)_version=$(native_$(package)_version)
33
$(package)_download_path=$(native_$(package)_download_path)
44
$(package)_file_name=$(native_$(package)_file_name)
55
$(package)_sha256_hash=$(native_$(package)_sha256_hash)
6-
$(package)_dependencies=native_$(package) boost capnp
6+
$(package)_dependencies=native_$(package) capnp
7+
ifneq ($(host),$(build))
8+
$(package)_dependencies += native_capnp
9+
endif
10+
11+
define $(package)_set_vars :=
12+
ifneq ($(host),$(build))
13+
$(package)_cmake_opts := -DCAPNP_EXECUTABLE="$$(native_capnp_prefixbin)/capnp"
14+
$(package)_cmake_opts += -DCAPNPC_CXX_EXECUTABLE="$$(native_capnp_prefixbin)/capnpc-c++"
15+
endif
16+
endef
717

818
define $(package)_config_cmds
9-
$($(package)_cmake)
19+
$($(package)_cmake) .
1020
endef
1121

1222
define $(package)_build_cmds

depends/packages/native_libmultiprocess.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $(package)_sha256_hash=ac848db49a6ed53e423c62d54bd87f1f08cbb0326254a8667e10bbfe5
66
$(package)_dependencies=native_capnp
77

88
define $(package)_config_cmds
9-
$($(package)_cmake)
9+
$($(package)_cmake) .
1010
endef
1111

1212
define $(package)_build_cmds

doc/productivity.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Table of Contents
99
* [Disable features with `./configure`](#disable-features-with-configure)
1010
* [Make use of your threads with `make -j`](#make-use-of-your-threads-with-make--j)
1111
* [Only build what you need](#only-build-what-you-need)
12+
* [Compile on multiple machines](#compile-on-multiple-machines)
1213
* [Multiple working directories with `git worktrees`](#multiple-working-directories-with-git-worktrees)
1314
* [Interactive "dummy rebases" for fixups and execs with `git merge-base`](#interactive-dummy-rebases-for-fixups-and-execs-with-git-merge-base)
1415
* [Writing code](#writing-code)
@@ -81,6 +82,10 @@ make -C src dash_bench
8182

8283
(You can and should combine this with `-j`, as above, for a parallel build.)
8384

85+
### Compile on multiple machines
86+
87+
If you have more than one computer at your disposal, you can use [distcc](https://www.distcc.org) to speed up compilation. This is easiest when all computers run the same operating system and compiler version.
88+
8489
### Multiple working directories with `git worktrees`
8590

8691
If you work with multiple branches or multiple copies of the repository, you should try `git worktrees`.

src/crypto/chacha_poly_aead.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
// Distributed under the MIT software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5+
#if defined(HAVE_CONFIG_H)
6+
#include <config/bitcoin-config.h>
7+
#endif
8+
59
#include <crypto/chacha_poly_aead.h>
610

711
#include <crypto/poly1305.h>

src/init.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,15 +1261,15 @@ bool AppInitParameterInteraction(const ArgsManager& args)
12611261
nUserMaxConnections = args.GetArg("-maxconnections", DEFAULT_MAX_PEER_CONNECTIONS);
12621262
nMaxConnections = std::max(nUserMaxConnections, 0);
12631263

1264-
// Trim requested connection counts, to fit into system limitations
1265-
// <int> in std::min<int>(...) to work around FreeBSD compilation issue described in #2695
12661264
nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS + nBind + NUM_FDS_MESSAGE_CAPTURE);
12671265

12681266
#ifdef USE_POLL
12691267
int fd_max = nFD;
12701268
#else
12711269
int fd_max = FD_SETSIZE;
12721270
#endif
1271+
// Trim requested connection counts, to fit into system limitations
1272+
// <int> in std::min<int>(...) to work around FreeBSD compilation issue described in #2695
12731273
nMaxConnections = std::max(std::min<int>(nMaxConnections, fd_max - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS - NUM_FDS_MESSAGE_CAPTURE), 0);
12741274
if (nFD < MIN_CORE_FILEDESCRIPTORS)
12751275
return InitError(_("Not enough file descriptors available."));

src/qt/optionsmodel.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,11 @@ void OptionsModel::Init(bool resetSettings)
266266

267267
if (!settings.contains("fListen"))
268268
settings.setValue("fListen", DEFAULT_LISTEN);
269-
if (!gArgs.SoftSetBoolArg("-listen", settings.value("fListen").toBool()))
269+
if (!gArgs.SoftSetBoolArg("-listen", settings.value("fListen").toBool())) {
270270
addOverriddenOption("-listen");
271+
} else if (!settings.value("fListen").toBool()) {
272+
gArgs.SoftSetBoolArg("-listenonion", false);
273+
}
271274

272275
if (!settings.contains("fUseProxy"))
273276
settings.setValue("fUseProxy", false);

0 commit comments

Comments
 (0)