|
|
|
@ -466,13 +466,6 @@ CTransaction::GetLegacySigOpCount() const
@@ -466,13 +466,6 @@ CTransaction::GetLegacySigOpCount() const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int CMerkleTx::SetMerkleBranch(const CBlock* pblock) |
|
|
|
|
{ |
|
|
|
|
if (fClient) |
|
|
|
|
{ |
|
|
|
|
if (hashBlock == 0) |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
CBlock blockTmp; |
|
|
|
|
|
|
|
|
@ -507,7 +500,6 @@ int CMerkleTx::SetMerkleBranch(const CBlock* pblock)
@@ -507,7 +500,6 @@ int CMerkleTx::SetMerkleBranch(const CBlock* pblock)
|
|
|
|
|
// Fill in merkle branch
|
|
|
|
|
vMerkleBranch = pblock->GetMerkleBranch(nIndex); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Is the tx in a block that's in the main chain
|
|
|
|
|
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashBlock); |
|
|
|
@ -914,18 +906,9 @@ int CMerkleTx::GetBlocksToMaturity() const
@@ -914,18 +906,9 @@ int CMerkleTx::GetBlocksToMaturity() const
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool CMerkleTx::AcceptToMemoryPool(bool fCheckInputs) |
|
|
|
|
{ |
|
|
|
|
if (fClient) |
|
|
|
|
{ |
|
|
|
|
if (!IsInMainChain() && !ClientCheckInputs()) |
|
|
|
|
return false; |
|
|
|
|
return CTransaction::AcceptToMemoryPool(false); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
return CTransaction::AcceptToMemoryPool(fCheckInputs); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|