ReacceptWalletTransactions don't remove from wallet if initial block download

This commit is contained in:
jl777
2019-02-08 01:20:00 -11:00
parent e5198d57b2
commit 35daec70b1
2 changed files with 6 additions and 2 deletions

View File

@@ -116,6 +116,7 @@
// todo: // todo:
// verify playerdata is usable // verify playerdata is usable
// detect playerdeath/quit to prevent illegal keystrokes vector
// verify keystrokes tx is in mempool and confirmed // verify keystrokes tx is in mempool and confirmed
// check that bailout is legal, ie. proper gametxid vin // check that bailout is legal, ie. proper gametxid vin
// verify amulet possession in pack // verify amulet possession in pack

View File

@@ -2810,11 +2810,14 @@ void CWallet::ReacceptWalletTransactions()
} }
} }
} }
if ( IsInitialBlockDownload() == 0 )
{
for (auto hash : vwtxh) for (auto hash : vwtxh)
{ {
EraseFromWallet(hash); EraseFromWallet(hash);
} }
} }
}
bool CWalletTx::RelayWalletTransaction() bool CWalletTx::RelayWalletTransaction()
{ {