Skip to content

Commit d902187

Browse files
committed
follow-up prev
1 parent 849bf9d commit d902187

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

electrumx/server/session.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,9 @@ async def _merkle_branch(
735735
mccache = self._merkle_wtxid_cache if wtxid else self._merkle_txid_cache
736736
tx_hash_count = len(tx_hashes)
737737
cost = tx_hash_count
738+
if wtxid:
739+
tx_hashes = list(tx_hashes)
740+
tx_hashes[0] = bytes(32) # The wtxid of coinbase tx is assumed to be 0x0000....0000
738741

739742
if tx_hash_count >= 200:
740743
mccache.num_lookups += 1

0 commit comments

Comments
 (0)