We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 849bf9d commit d902187Copy full SHA for d902187
electrumx/server/session.py
@@ -735,6 +735,9 @@ async def _merkle_branch(
735
mccache = self._merkle_wtxid_cache if wtxid else self._merkle_txid_cache
736
tx_hash_count = len(tx_hashes)
737
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
741
742
if tx_hash_count >= 200:
743
mccache.num_lookups += 1
0 commit comments