Skip to content

Commit 82d5d4c

Browse files
authored
Merge pull request #1446 from evoskuil/master
Fix parameter name.
2 parents 2e886ee + 6a38d7e commit 82d5d4c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/bitcoin/system/wallet/neutrino_filter.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct BC_API block_filter
4242
bool BC_API compute_filter(data_chunk& out,
4343
const chain::block& block) NOEXCEPT;
4444

45-
hash_digest BC_API compute_filter_header(const hash_digest& previous_block,
45+
hash_digest BC_API compute_filter_header(const hash_digest& previous_header,
4646
const data_chunk& filter) NOEXCEPT;
4747

4848
bool BC_API match_filter(const block_filter& filter,

src/wallet/neutrino_filter.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ bool compute_filter(data_chunk& out, const chain::block& block) NOEXCEPT
4141
{
4242
const auto hash = block.hash();
4343
const auto key = to_siphash_key(slice<zero, to_half(hash_size)>(hash));
44-
data_stack scripts;
44+
data_stack scripts{};
4545

4646
for (const auto& tx: *block.transactions_ptr())
4747
{
@@ -89,10 +89,10 @@ bool compute_filter(data_chunk& out, const chain::block& block) NOEXCEPT
8989
return true;
9090
}
9191

92-
hash_digest compute_filter_header(const hash_digest& previous_block_hash,
92+
hash_digest compute_filter_header(const hash_digest& previous_header,
9393
const data_chunk& filter) NOEXCEPT
9494
{
95-
return bitcoin_hash(splice(bitcoin_hash(filter), previous_block_hash));
95+
return bitcoin_hash(splice(bitcoin_hash(filter), previous_header));
9696
}
9797

9898
bool match_filter(const block_filter& filter,

0 commit comments

Comments
 (0)