Skip to content

Commit 6ddf0a2

Browse files
authored
Merge pull request #650 from evoskuil/master
In electrum block_headers return count of headers returned.
2 parents e4a1612 + 8229ae8 commit 6ddf0a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/protocols/protocol_electrum.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,15 @@ void protocol_electrum::blockchain_block_headers(size_t starting,
228228
if (multiplicity)
229229
{
230230
result["headers"] = std::move(headers);
231-
result["count"] = uint64_t{ quantity };
231+
result["count"] = headers.size();
232232
result["max"] = maximum;
233233
}
234234
else
235235
{
236236
result["header"] = headers.front();
237237
}
238238

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

0 commit comments

Comments
 (0)