Skip to content

Commit bd49362

Browse files
committed
[Refactor] Move zerocoin checks out of main
This moves all zerocoin checking methods out of main.cpp/h into two new files in the `consensus` subdir: zerocoin_verify.cpp/h
1 parent d00ac8c commit bd49362

File tree

11 files changed

+414
-375
lines changed

11 files changed

+414
-375
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ set(COMMON_SOURCES
451451
./src/compressor.cpp
452452
./src/consensus/merkle.cpp
453453
./src/consensus/tx_verify.cpp
454+
./src/consensus/zerocoin_verify.cpp
454455
./src/primitives/block.cpp
455456
./src/zpiv/deterministicmint.cpp
456457
./src/primitives/transaction.cpp

src/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ BITCOIN_CORE_H = \
104104
consensus/merkle.h \
105105
consensus/validation.h \
106106
consensus/tx_verify.h \
107+
consensus/zerocoin_verify.h \
107108
consensus/params.h \
108109
primitives/block.h \
109110
primitives/transaction.h \
@@ -214,6 +215,7 @@ libbitcoin_server_a_SOURCES = \
214215
chain.cpp \
215216
checkpoints.cpp \
216217
consensus/tx_verify.cpp \
218+
consensus/zerocoin_verify.cpp \
217219
httprpc.cpp \
218220
httpserver.cpp \
219221
init.cpp \

src/consensus/tx_verify.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "tx_verify.h"
66

77
#include "consensus/consensus.h"
8+
#include "consensus/zerocoin_verify.h"
89
#include "main.h"
910
#include "script/interpreter.h"
1011

0 commit comments

Comments
 (0)