Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/protocols/protocol_electrum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,15 @@ void protocol_electrum::blockchain_block_headers(size_t starting,
if (multiplicity)
{
result["headers"] = std::move(headers);
result["count"] = uint64_t{ quantity };
result["count"] = headers.size();
result["max"] = maximum;
}
else
{
result["header"] = headers.front();
}

// There is a very slim change of inconsistency given an intervening reorg
// There is a very slim chance of inconsistency given an intervening reorg
// because of get_merkle_root_and_proof() use of height-based calculations.
// This is acceptable as it must be verified by caller in any case.
if (prove)
Expand Down
Loading