Skip to content

Commit cccc78d

Browse files
committed
Merge pull request #49 from evoskuil/master
Update Makefile.am, and installer to not build node and chain utils.
2 parents 3c8d990 + eae13ec commit cccc78d

File tree

3 files changed

+39
-34
lines changed

3 files changed

+39
-34
lines changed

Makefile.am

Lines changed: 29 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,42 @@ doc_DATA = README INSTALL COPYING
88
#
99
pkgconfig_DATA = libbitcoin-server.pc
1010

11+
# look for macros in the m4 subdirectory
12+
ACLOCAL_AMFLAGS = -I m4
13+
1114
#
12-
# bash completion
15+
# console application
1316
#
17+
#if WITH_CONSOLE
18+
19+
# bash completion
1420
if BASH_COMPLETION_DIR
1521
bashcompletiondir = ${bash_completion_dir}
1622
dist_bashcompletion_DATA = data/bitcoin_server
1723
endif
1824

19-
# look for macros in the m4 subdirectory
20-
ACLOCAL_AMFLAGS = -I m4
21-
22-
#
23-
# console application
25+
# configuration file
2426
#
25-
bin_PROGRAMS = bitcoin_server
27+
# TODO: coordinate this dir and file name with source code to keep in sync.
28+
# Note that in a prefix install this file is placed relative to the prefix but
29+
# execution of the server will default to reading in the system-wide directory.
30+
confdir="${sysconfdir}/libbitcoin"
31+
conf_DATA = data/server.cfg
32+
33+
bin_PROGRAMS = \
34+
bitcoin_server
35+
36+
bitcoin_server_CPPFLAGS = \
37+
-I${srcdir}/include \
38+
${sodium_CFLAGS} \
39+
${czmq___CFLAGS} \
40+
${bitcoin_node_CFLAGS} \
41+
-DSYSCONFDIR=\"${sysconfdir}\"
42+
43+
bitcoin_server_LDADD = \
44+
${sodium_LIBS} \
45+
${czmq___LIBS} \
46+
${bitcoin_node_LIBS}
2647

2748
bitcoin_server_SOURCES = \
2849
src/message.cpp \
@@ -43,24 +64,4 @@ bitcoin_server_SOURCES = \
4364
src/service/protocol.cpp \
4465
src/service/transaction_pool.cpp
4566

46-
bitcoin_server_CPPFLAGS = \
47-
-I${srcdir}/include \
48-
${sodium_CFLAGS} \
49-
${czmq___CFLAGS} \
50-
${bitcoin_node_CFLAGS} \
51-
-DSYSCONFDIR=\"${sysconfdir}\"
52-
53-
bitcoin_server_LDADD = \
54-
${sodium_LIBS} \
55-
${czmq___LIBS} \
56-
${bitcoin_node_LIBS}
57-
58-
#
59-
# configuration file
60-
#
61-
# TODO: coordinate this dir and file name with source code to keep in sync.
62-
# Note that in a prefix install this file is placed relative to the prefix but
63-
# execution of the server will default to reading in the system-wide directory.
64-
confdir="${sysconfdir}/libbitcoin"
65-
conf_DATA = data/server.cfg
66-
67+
#endif

install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,15 @@ BITCOIN_OPTIONS=\
244244
#------------------------------------------------------------------------------
245245
BITCOIN_BLOCKCHAIN_OPTIONS=\
246246
"--without-tests "\
247+
"--without-tools "\
247248
"${with_boost} "\
248249
"${with_pkgconfigdir} "
249250

250251
# Define bitcoin-node options.
251252
#------------------------------------------------------------------------------
252253
BITCOIN_NODE_OPTIONS=\
253254
"--without-tests "\
255+
"--without-console "\
254256
"${with_boost} "\
255257
"${with_pkgconfigdir} "
256258

src/worker.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ send_worker::send_worker(czmqpp::context& context)
5454
void send_worker::queue_send(const outgoing_message& message)
5555
{
5656
czmqpp::socket socket(context_, ZMQ_PUSH);
57-
BITCOIN_ASSERT(socket.self());
57+
BITCOIN_ASSERT(socket.self() != nullptr);
5858
DEBUG_ONLY(int rc =) socket.connect("inproc://trigger-send");
5959
BITCOIN_ASSERT(rc == zmq_success);
6060
message.send(socket);
@@ -68,9 +68,9 @@ request_worker::request_worker()
6868
heartbeat_socket_(context_, ZMQ_PUB),
6969
sender_(context_)
7070
{
71-
BITCOIN_ASSERT(socket_.self());
72-
BITCOIN_ASSERT(wakeup_socket_.self());
73-
BITCOIN_ASSERT(heartbeat_socket_.self());
71+
BITCOIN_ASSERT(socket_.self() != nullptr);
72+
BITCOIN_ASSERT(wakeup_socket_.self() != nullptr);
73+
BITCOIN_ASSERT(heartbeat_socket_.self() != nullptr);
7474
DEBUG_ONLY(int rc =) wakeup_socket_.bind("inproc://trigger-send");
7575
BITCOIN_ASSERT(rc != zmq_fail);
7676
}
@@ -141,10 +141,12 @@ void request_worker::poll()
141141
{
142142
// Poll for network updates.
143143
czmqpp::poller poller(socket_, wakeup_socket_);
144-
BITCOIN_ASSERT(poller.self());
144+
BITCOIN_ASSERT(poller.self() != nullptr);
145145
czmqpp::socket which = poller.wait(poll_sleep_interval);
146146

147-
BITCOIN_ASSERT(socket_.self() && wakeup_socket_.self());
147+
BITCOIN_ASSERT(socket_.self() != nullptr &&
148+
wakeup_socket_.self() != nullptr);
149+
148150
if (which == socket_)
149151
{
150152
// Get message

0 commit comments

Comments
 (0)