change tombstone, revert LOCK, problem isnt that.
This commit is contained in:
@@ -107,7 +107,7 @@ void AddImportTombstone(const CTransaction &importTx, CCoinsViewCache &inputs, i
|
|||||||
uint256 burnHash = importTx.vin[0].prevout.hash;
|
uint256 burnHash = importTx.vin[0].prevout.hash;
|
||||||
CCoinsModifier modifier = inputs.ModifyCoins(burnHash);
|
CCoinsModifier modifier = inputs.ModifyCoins(burnHash);
|
||||||
modifier->nHeight = nHeight;
|
modifier->nHeight = nHeight;
|
||||||
modifier->nVersion = 1;
|
modifier->nVersion = 4;
|
||||||
modifier->vout.push_back(CTxOut(0, CScript() << OP_0));
|
modifier->vout.push_back(CTxOut(0, CScript() << OP_0));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3852,7 +3852,7 @@ bool static DisconnectTip(CValidationState &state, bool fBare = false) {
|
|||||||
if ((i == (block.vtx.size() - 1)) && (ASSETCHAINS_STAKED != 0 && (komodo_isPoS((CBlock *)&block) != 0)))
|
if ((i == (block.vtx.size() - 1)) && (ASSETCHAINS_STAKED != 0 && (komodo_isPoS((CBlock *)&block) != 0)))
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
LOCK(cs_main);
|
LOCK2(cs_main, pwalletMain->cs_wallet);
|
||||||
pwalletMain->EraseFromWallet(tx.GetHash());
|
pwalletMain->EraseFromWallet(tx.GetHash());
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user