Inside Bitcoin
Opening the selected file…
Inside Bitcoin
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1commit 2e8a6ccb414ca79636392604893c79c3b0d00dc42Author: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>3Date: Sat Jul 4 09:11:11 2026 +02005Add missing <new> includes for std::nothrow7Without the <new> include, compilation may fail:9```10src/polling_util.hpp:28:30: error: no member named 'nothrow' in namespace 'std'1128 | _buf = new (std::nothrow) T[nitems_];12| ^~~~~~~13```15diff --git a/src/norm_engine.cpp b/src/norm_engine.cpp16index 1e3ae179..02483f0b 10064417--- a/src/norm_engine.cpp18+++ b/src/norm_engine.cpp19@@ -1,6 +1,7 @@21#include "precompiled.hpp"23+#include <new>24#include "platform.hpp"26#if defined ZMQ_HAVE_NORM27diff --git a/src/polling_util.hpp b/src/polling_util.hpp28index 13a4911f..3536be9a 10064429--- a/src/polling_util.hpp30+++ b/src/polling_util.hpp31@@ -4,6 +4,7 @@32#define __ZMQ_SOCKET_POLLING_UTIL_HPP_INCLUDED__34#include <stdlib.h>35+#include <new>36#include <vector>38#if defined ZMQ_HAVE_WINDOWS39diff --git a/src/proxy.cpp b/src/proxy.cpp40index 78d6ba61..85e4db4a 10064441--- a/src/proxy.cpp42+++ b/src/proxy.cpp43@@ -3,6 +3,7 @@44#include "precompiled.hpp"46#include <stddef.h>47+#include <new>48#include "poller.hpp"49#include "proxy.hpp"50#include "likely.hpp"51diff --git a/src/reaper.cpp b/src/reaper.cpp52index 4361a7e9..1484a926 10064453--- a/src/reaper.cpp54+++ b/src/reaper.cpp55@@ -2,6 +2,7 @@57#include "precompiled.hpp"58#include "macros.hpp"59+#include <new>60#include "reaper.hpp"61#include "socket_base.hpp"62#include "err.hpp"63diff --git a/src/session_base.cpp b/src/session_base.cpp64index 5a81b076..618443d5 10064465--- a/src/session_base.cpp66+++ b/src/session_base.cpp67@@ -1,6 +1,7 @@68/* SPDX-License-Identifier: MPL-2.0 */70#include "precompiled.hpp"71+#include <new>72#include "macros.hpp"73#include "session_base.hpp"74#include "i_engine.hpp"75diff --git a/src/socket_poller.cpp b/src/socket_poller.cpp76index b5c330e8..3feb452e 10064477--- a/src/socket_poller.cpp78+++ b/src/socket_poller.cpp79@@ -7,6 +7,7 @@80#include "macros.hpp"82#include <limits.h>83+#include <new>85static bool is_thread_safe (const zmq::socket_base_t &socket_)86{87diff --git a/src/stream_connecter_base.cpp b/src/stream_connecter_base.cpp88index 8dd9a6d6..6b733b4d 10064489--- a/src/stream_connecter_base.cpp90+++ b/src/stream_connecter_base.cpp91@@ -15,6 +15,7 @@92#endif94#include <limits>95+#include <new>97zmq::stream_connecter_base_t::stream_connecter_base_t (98zmq::io_thread_t *io_thread_,99diff --git a/src/stream_listener_base.cpp b/src/stream_listener_base.cpp100index 350093ad..b4e02027 100644101--- a/src/stream_listener_base.cpp102+++ b/src/stream_listener_base.cpp103@@ -13,6 +13,8 @@104#include <winsock2.h>105#endif107+#include <new>108+109zmq::stream_listener_base_t::stream_listener_base_t (110zmq::io_thread_t *io_thread_,111zmq::socket_base_t *socket_,112diff --git a/src/ws_engine.cpp b/src/ws_engine.cpp113index 9eec0d92..55590cdc 100644114--- a/src/ws_engine.cpp115+++ b/src/ws_engine.cpp116@@ -26,6 +26,7 @@117#endif119#include <cstring>120+#include <new>122#include "compat.hpp"123#include "tcp.hpp"
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.