Skip to content

Commit ca6f4b5

Browse files
authored
Merge pull request #626 from evoskuil/master
Parse database.interval_depth.
2 parents 4c7685d + 079eef8 commit ca6f4b5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/parser.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1333,6 +1333,11 @@ options_metadata parser::load_settings() THROWS
13331333
value<bool>(&configured.database.turbo),
13341334
"Allow indiviudal non-validation queries to use all CPUs, defaults to false."
13351335
)
1336+
(
1337+
"database.interval_depth",
1338+
value<uint8_t>(&configured.database.interval_depth),
1339+
"The interval depth for merkle proof optimization, defaults to '255' (disabled)."
1340+
)
13361341

13371342
/* header */
13381343
(

src/protocols/protocol_electrum.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,13 @@ std::string to_hex(const Object& object, size_t size, Args&&... args) NOEXCEPT
155155
// Handlers (blockchain).
156156
// ----------------------------------------------------------------------------
157157

158-
// electrum-protocol.readthedocs.io/en/latest/protocol-basics.html#block-headers
159158
void protocol_electrum::handle_blockchain_block_header(const code& ec,
160159
rpc_interface::blockchain_block_header, double height,
161160
double cp_height) NOEXCEPT
162161
{
163162
handle_blockchain_block_headers(ec, {}, height, 1, cp_height);
164163
}
165164

166-
// electrum-protocol.readthedocs.io/en/latest/protocol-basics.html#block-headers
167165
void protocol_electrum::handle_blockchain_block_headers(const code& ec,
168166
rpc_interface::blockchain_block_headers, double start_height, double count,
169167
double cp_height) NOEXCEPT

0 commit comments

Comments
 (0)