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)
3736
3736
nTimeExpires = nExpires;
3737
3737
}
3738
3738
3739
- int CMerkleTx::SetMerkleBranch (const CBlockIndex* pindex, int posInBlock)
3739
+ void CMerkleTx::SetMerkleBranch (const CBlockIndex* pindex, int posInBlock)
3740
3740
{
3741
- AssertLockHeld (cs_main);
3742
-
3743
3741
// Update the tx's hashBlock
3744
3742
hashBlock = pindex->GetBlockHash ();
3745
3743
3746
3744
// set the position of the transaction in the block
3747
3745
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 ;
3754
3746
}
3755
3747
3756
3748
int CMerkleTx::GetDepthInMainChain (const CBlockIndex* &pindexRet) const
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ class CMerkleTx
218
218
READWRITE (nIndex);
219
219
}
220
220
221
- int SetMerkleBranch (const CBlockIndex* pIndex, int posInBlock);
221
+ void SetMerkleBranch (const CBlockIndex* pIndex, int posInBlock);
222
222
223
223
/* *
224
224
* Return depth of transaction in blockchain:
You can’t perform that action at this time.
0 commit comments