X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=88d661e1fb39de14f0d5bc560a0651f0aaee1150;hp=b484fc23d381a48adba7c7cff6c0d176448f2dd5;hb=24c742a46d44c8f10a2a94d1bd5227e8a0ae30ed;hpb=f02547bce92166ebf05ef58795ee48111abbbece diff --git a/src/wallet.cpp b/src/wallet.cpp index b484fc2..88d661e 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1081,7 +1081,7 @@ void CWallet::ResendWalletTransactions() { // Do this infrequently and randomly to avoid giving away // that these are our transactions. - static int64_t nNextTime; + static int64_t nNextTime = GetRand(GetTime() + 30 * 60); if (GetTime() < nNextTime) return; bool fFirst = (nNextTime == 0); @@ -1090,7 +1090,7 @@ void CWallet::ResendWalletTransactions() return; // Only do it if there's been a new block since last time - static int64_t nLastTime; + static int64_t nLastTime = 0; if (nTimeBestReceived < nLastTime) return; nLastTime = GetTime();