Skip to content

Commit dfd073a

Browse files
authored
Merge pull request #648 from evoskuil/master
Fix lack of hash reversal in electrum block header/s.
2 parents b2fe75a + 537ed76 commit dfd073a

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
@@ -252,10 +252,10 @@ void protocol_electrum::blockchain_block_headers(size_t starting,
252252

253253
array_t branch(proof.size());
254254
std::ranges::transform(proof, branch.begin(),
255-
[](const auto& hash) { return encode_base16(hash); });
255+
[](const auto& hash) { return encode_hash(hash); });
256256

257257
result["branch"] = std::move(branch);
258-
result["root"] = encode_base16(root);
258+
result["root"] = encode_hash(root);
259259
size += two * hash_size * add1(proof.size());
260260
}
261261

0 commit comments

Comments
 (0)