X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;h=deb53767178638f570685ae35cd4a9b7b93b595e;hp=97648c88cad84afb5221ec2ca40f43114fc1111b;hb=9417ff30cae6ffffd1c4fc4f4b1a81551f04dbc5;hpb=c82230b0f0a00f1ce5d81f0750b60e2bbbca1deb diff --git a/src/wallet.cpp b/src/wallet.cpp index 97648c8..deb5376 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1079,7 +1079,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); @@ -1088,7 +1088,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();