Skip to content

Commit 520ae4b

Browse files
committed
Move network-msg-processing code out of main to its own file
>>> based on bitcoin/bitcoin@e736772
1 parent 9b894ed commit 520ae4b

17 files changed

+2255
-2192
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ set(SERVER_SOURCES
201201
./src/merkleblock.cpp
202202
./src/miner.cpp
203203
./src/net.cpp
204+
./src/net_processing.cpp
204205
./src/noui.cpp
205206
./src/policy/fees.cpp
206207
./src/policy/policy.cpp

src/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ BITCOIN_CORE_H = \
212212
messagesigner.h \
213213
miner.h \
214214
net.h \
215+
net_processing.h \
215216
netaddress.h \
216217
netbase.h \
217218
netmessagemaker.h \
@@ -315,6 +316,7 @@ libbitcoin_server_a_SOURCES = \
315316
merkleblock.cpp \
316317
miner.cpp \
317318
net.cpp \
319+
net_processing.cpp \
318320
noui.cpp \
319321
policy/fees.cpp \
320322
policy/policy.cpp \

src/init.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "messagesigner.h"
3535
#include "miner.h"
3636
#include "netbase.h"
37-
#include "net.h"
37+
#include "net_processing.h"
3838
#include "policy/policy.h"
3939
#include "rpc/server.h"
4040
#include "script/standard.h"
@@ -63,6 +63,7 @@
6363

6464
#endif
6565

66+
#include <atomic>
6667
#include <fstream>
6768
#include <stdint.h>
6869
#include <stdio.h>

0 commit comments

Comments
 (0)