mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
Simulate BlockConnected/BlockDisconnected for PS caches
This commit is contained in:
parent
db7f471c7d
commit
909d6a4ba5
@ -1313,6 +1313,12 @@ void CWallet::SyncTransaction(const CTransaction& tx, const CBlockIndex *pindex,
|
||||
{
|
||||
LOCK2(cs_main, cs_wallet);
|
||||
|
||||
// v0.14.0.x: Simulates the behavior found in the develop branch when ::BlockConnected/BlockDisconnected are called
|
||||
if (pindex != nullptr && (posInBlock == 0 || posInBlock == CMainSignals::SYNC_TRANSACTION_NOT_IN_BLOCK)) {
|
||||
fAnonymizableTallyCached = false;
|
||||
fAnonymizableTallyCachedNonDenom = false;
|
||||
}
|
||||
|
||||
if (!AddToWalletIfInvolvingMe(tx, pindex, posInBlock, true))
|
||||
return; // Not one of ours
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user