Skip to content

Commit 0760ae0

Browse files
committed
fix: resolve undefined reference linking error in bench_dash
The previous commit removes the invocation of `MakeCoinJoinLoader` from `init.cpp`. For some reason this makes the linker unhappy when working with `bench_dash`. Fix it by adding the wallet library to `test_util`. ``` /usr/bin/ld: libtest_util.a(libtest_util_a-setup_common.o): in function `DashPostChainstateSetup(NodeContext&)': /src/dash/src/test/util/setup_common.cpp:127:(.text+0x1a8e): undefined reference to `interfaces::MakeCoinJoinLoader(NodeContext&)' collect2: error: ld returned 1 exit status ```
1 parent 846dc67 commit 0760ae0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Makefile.test_util.include

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ LIBTEST_UTIL += $(LIBBITCOIN_SERVER)
4343
LIBTEST_UTIL += $(LIBBITCOIN_COMMON)
4444
LIBTEST_UTIL += $(LIBBITCOIN_UTIL)
4545
LIBTEST_UTIL += $(LIBBITCOIN_CRYPTO_BASE)
46+
if ENABLE_WALLET
47+
LIBTEST_UTIL += $(LIBBITCOIN_WALLET)
48+
endif

0 commit comments

Comments
 (0)