Skip to content

Commit 04adac6

Browse files
authored
Merge pull request #397 from evoskuil/version3
version 3.2.0
2 parents 0330928 + dee04a4 commit 04adac6

22 files changed

+127
-97
lines changed

builds/msvc/resource.rc

0 Bytes
Binary file not shown.

configure.ac

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
AC_PREREQ([2.65])
1414

1515
# Process command-line arguments and perform initialization and verification.
16-
AC_INIT([libbitcoin-server], [3.1.0], [[email protected]])
16+
AC_INIT([libbitcoin-server], [3.2.0], [[email protected]])
1717

1818
# Do compilation tests.
1919
AC_LANG(C++)
@@ -157,10 +157,10 @@ AS_CASE([${bash_completiondir}], [yes],
157157
AC_MSG_NOTICE([bash_completion_LIBS : ${bash_completion_LIBS}])],
158158
[AC_SUBST([bash_completion_PKG], [])])
159159

160-
# Require bitcoin-node of at least version 3.1.0 and output ${bitcoin_node_CPPFLAGS/LIBS/PKG}.
160+
# Require bitcoin-node of at least version 3.2.0 and output ${bitcoin_node_CPPFLAGS/LIBS/PKG}.
161161
#------------------------------------------------------------------------------
162-
PKG_CHECK_MODULES([bitcoin_node], [libbitcoin-node >= 3.1.0])
163-
AC_SUBST([bitcoin_node_PKG], ['libbitcoin-node >= 3.1.0'])
162+
PKG_CHECK_MODULES([bitcoin_node], [libbitcoin-node >= 3.2.0])
163+
AC_SUBST([bitcoin_node_PKG], ['libbitcoin-node >= 3.2.0'])
164164
AC_SUBST([bitcoin_node_CPPFLAGS], [${bitcoin_node_CFLAGS}])
165165
AC_MSG_NOTICE([bitcoin_node_CPPFLAGS : ${bitcoin_node_CPPFLAGS}])
166166
AC_MSG_NOTICE([bitcoin_node_LIBS : ${bitcoin_node_LIBS}])

console/executor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ executor::executor(parser& metadata, std::istream& input,
5454
: metadata_(metadata), output_(output), error_(error)
5555
{
5656
const auto& network = metadata_.configured.network;
57+
const auto verbose = network.verbose;
5758

5859
const log::rotable_file debug_file
5960
{
@@ -78,7 +79,7 @@ executor::executor(parser& metadata, std::istream& input,
7879
log::stream console_out(&output_, null_deleter());
7980
log::stream console_err(&error_, null_deleter());
8081

81-
log::initialize(debug_file, error_file, console_out, console_err);
82+
log::initialize(debug_file, error_file, console_out, console_err, verbose);
8283
handle_stop(initialize_stop);
8384
}
8485

data/bs.cfg

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ priority = true
107107
use_libconsensus = false
108108
# The maximum reorganization depth, defaults to 256 (0 for unlimited).
109109
reorganization_limit = 256
110-
# The block version for block creation and transaction pool validation, defaults to 4.
111-
block_version = 4
112110
# A hash:height checkpoint, multiple entries allowed, defaults shown.
113111
checkpoint = 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f:0
114112
checkpoint = 0000000069e244f73d78e8fd29ba2fd2ed618bd6fa2ee92559f542fdb26e7c1d:11111
@@ -154,12 +152,18 @@ bip65 = true
154152
bip90 = true
155153

156154
[node]
157-
# The time period for block polling after initial block download, defaults to 1 (0 disables).
158-
block_poll_seconds = 1
159-
# The minimum fee per byte required for transaction acceptance, defaults to 1.
160-
minimum_byte_fee_satoshis = 1
161-
# Request that peers relay transactions, defaults to false.
162-
relay_transactions = false
155+
# The time to wait for a requested block, defaults to 60.
156+
block_latency_seconds = 60
157+
# Disable relay when top block age exceeds, defaults to 24 (0 disables).
158+
notify_limit_hours = 24
159+
# The minimum fee per byte, cumulative for conflicts, defaults to 1.
160+
byte_fee_satoshis = 1
161+
# The minimum fee per sigop, additional to byte fee, defaults to 100.
162+
sigop_fee_satoshis = 100
163+
# The minimum output value, defaults to 500.
164+
minimum_output_satoshis = 500
165+
# Request that peers relay transactions, defaults to true.
166+
relay_transactions = true
163167
# Request transactions on each channel start, defaults to true.
164168
refresh_transactions = true
165169

@@ -176,16 +180,16 @@ handshake_seconds = 30
176180
secure_only = false
177181
# The number of query worker threads per endpoint, defaults to 1 (0 disables service).
178182
query_workers = 1
179-
# The maximum number of query subscriptions, defaults to 0 (subscription disabled).
180-
subscription_limit = 0
181-
# The query subscription expiration time, defaults to 10.
183+
# The maximum number of query subscriptions, defaults to 1000 (0 disables subscribe).
184+
subscription_limit = 1000
185+
# The query subscription expiration time, defaults to 10 (0 disables expiration).
182186
subscription_expiration_minutes = 10
183-
# The heartbeat service interval, defaults to 0 (service disabled).
184-
heartbeat_service_seconds = 0
185-
# Enable the block publishing service, defaults to false.
186-
block_service_enabled = false
187-
# Enable the transaction publishing service, defaults to false.
188-
transaction_service_enabled = false
187+
# The heartbeat service interval, defaults to 5 (0 disables service).
188+
heartbeat_service_seconds = 5
189+
# Enable the block publishing service, defaults to true.
190+
block_service_enabled = true
191+
# Enable the transaction publishing service, defaults to true.
192+
transaction_service_enabled = true
189193

190194
# The secure query endpoint, defaults to 'tcp://*:9081'.
191195
secure_query_endpoint = tcp://*:9081

include/bitcoin/server/interface/blockchain.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class BCS_API blockchain
8888
const chain::history_compact::list& history, const message& request,
8989
send_handler handler);
9090

91-
static void transaction_fetched(const code& ec, transaction_ptr tx, size_t,
91+
static void transaction_fetched(const code& ec, transaction_const_ptr tx, size_t,
9292
size_t, const message& request, send_handler handler);
9393

9494
static void last_height_fetched(const code& ec, size_t last_height,
@@ -128,7 +128,7 @@ class BCS_API blockchain
128128
const chain::stealth_compact::list& stealth_results,
129129
const message& request, send_handler handler);
130130

131-
static void stealth_transaction_fetched(const code& ec,
131+
static void stealth_transaction_hashes_fetched(const code& ec,
132132
const chain::stealth_compact::list& stealth_results,
133133
const message& request, send_handler handler);
134134

include/bitcoin/server/interface/transaction_pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class BCS_API transaction_pool
4545
send_handler handler);
4646

4747
private:
48-
static void transaction_fetched(const code& ec, transaction_ptr tx,
48+
static void transaction_fetched(const code& ec, transaction_const_ptr tx,
4949
size_t, size_t, const message& request, send_handler handler);
5050

5151
static void handle_broadcast(const code& ec, const message& request,

include/bitcoin/server/services/block_service.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ class BCS_API block_service
5858

5959
private:
6060
bool handle_reorganization(const code& ec, size_t fork_height,
61-
block_const_ptr_list_const_ptr new_blocks,
62-
block_const_ptr_list_const_ptr old_blocks);
61+
block_const_ptr_list_const_ptr incoming,
62+
block_const_ptr_list_const_ptr outgoing);
6363

6464
void publish_blocks(uint32_t fork_height,
6565
block_const_ptr_list_const_ptr blocks);
@@ -68,7 +68,6 @@ class BCS_API block_service
6868

6969
// These are thread safe.
7070
const bool secure_;
71-
const bool verbose_;
7271
const std::string security_;
7372
const bc::server::settings& settings_;
7473
const bc::protocol::settings& external_;

include/bitcoin/server/services/heartbeat_service.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class BCS_API heartbeat_service
6060

6161
// These are thread safe.
6262
const bool secure_;
63-
const bool verbose_;
6463
const std::string security_;
6564
const bc::server::settings& settings_;
6665
const bc::protocol::settings& external_;

include/bitcoin/server/services/transaction_service.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ class BCS_API transaction_service
6161

6262
// These are thread safe.
6363
const bool secure_;
64-
const bool verbose_;
6564
const std::string security_;
6665
const bc::server::settings& settings_;
6766
const bc::protocol::settings& external_;

include/bitcoin/server/version.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* For interpretation of the versioning scheme see: http://semver.org
1313
*/
1414

15-
#define LIBBITCOIN_SERVER_VERSION "3.1.0"
15+
#define LIBBITCOIN_SERVER_VERSION "3.2.0"
1616
#define LIBBITCOIN_SERVER_MAJOR_VERSION 3
17-
#define LIBBITCOIN_SERVER_MINOR_VERSION 1
17+
#define LIBBITCOIN_SERVER_MINOR_VERSION 2
1818
#define LIBBITCOIN_SERVER_PATCH_VERSION 0
1919

2020
#endif

0 commit comments

Comments
 (0)