Skip to content

Commit 6370b49

Browse files
committed
follow-up prev
1 parent afa307f commit 6370b49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/electrumx/server/session.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,9 @@ async def _merkle_branch(
747747
mccache = self._merkle_wtxid_cache if wtxid else self._merkle_txid_cache
748748
tx_hash_count = len(tx_hashes)
749749
cost = tx_hash_count
750+
if wtxid:
751+
tx_hashes = list(tx_hashes)
752+
tx_hashes[0] = bytes(32) # The wtxid of coinbase tx is assumed to be 0x0000....0000
750753

751754
if tx_hash_count >= 200:
752755
mccache.num_lookups += 1

0 commit comments

Comments
 (0)