Navigation Menu

Skip to content

Commit

Permalink
Wrap hash param in DEBUG_ONLY for block_database::unindex
Browse files Browse the repository at this point in the history
  • Loading branch information
kulpreet committed Nov 19, 2018
1 parent 9ec99dc commit 5aa45fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/databases/block_database.cpp
Expand Up @@ -439,7 +439,7 @@ bool block_database::index(const hash_digest& hash, size_t height,
return true;
}

bool block_database::unindex(const hash_digest& hash, size_t height,
bool block_database::unindex(const hash_digest& DEBUG_ONLY(hash), size_t height,
bool candidate)
{
BITCOIN_ASSERT(height != max_uint32);
Expand Down
1 change: 1 addition & 0 deletions test/databases/block_database.cpp
Expand Up @@ -58,6 +58,7 @@ BOOST_FIXTURE_TEST_SUITE(block_database_tests, block_database_directory_setup_fi

BOOST_AUTO_TEST_CASE(block_database__test)
{
// TODO: replace.
static const auto settings = bc::settings(bc::config::settings::mainnet);
chain::block block0 = settings.genesis_block;
block0.set_transactions(
Expand Down

0 comments on commit 5aa45fc

Please sign in to comment.