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 afa307f commit 6370b49Copy full SHA for 6370b49
src/electrumx/server/session.py
@@ -747,6 +747,9 @@ async def _merkle_branch(
747
mccache = self._merkle_wtxid_cache if wtxid else self._merkle_txid_cache
748
tx_hash_count = len(tx_hashes)
749
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
753
754
if tx_hash_count >= 200:
755
mccache.num_lookups += 1
0 commit comments