File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -3736,21 +3736,13 @@ CWalletKey::CWalletKey(int64_t nExpires)
37363736 nTimeExpires = nExpires;
37373737}
37383738
3739- int CMerkleTx::SetMerkleBranch (const CBlockIndex* pindex, int posInBlock)
3739+ void CMerkleTx::SetMerkleBranch (const CBlockIndex* pindex, int posInBlock)
37403740{
3741- AssertLockHeld (cs_main);
3742-
37433741 // Update the tx's hashBlock
37443742 hashBlock = pindex->GetBlockHash ();
37453743
37463744 // set the position of the transaction in the block
37473745 nIndex = posInBlock;
3748-
3749- // Is the tx in a block that's in the main chain
3750- if (!chainActive.Contains (pindex))
3751- return 0 ;
3752-
3753- return chainActive.Height () - pindex->nHeight + 1 ;
37543746}
37553747
37563748int CMerkleTx::GetDepthInMainChain (const CBlockIndex* &pindexRet) const
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ class CMerkleTx
218218 READWRITE (nIndex);
219219 }
220220
221- int SetMerkleBranch (const CBlockIndex* pIndex, int posInBlock);
221+ void SetMerkleBranch (const CBlockIndex* pIndex, int posInBlock);
222222
223223 /* *
224224 * Return depth of transaction in blockchain:
You can’t perform that action at this time.
0 commit comments