git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
f02547b
)
Unitialized memory shouldn't be used as entropy source, stun module fix in commit...
author
CryptoManiac
<balthazar@yandex.ru>
Tue, 14 Apr 2015 19:51:08 +0000 (22:51 +0300)
committer
CryptoManiac
<balthazar@yandex.ru>
Tue, 14 Apr 2015 19:51:08 +0000 (22:51 +0300)
src/wallet.cpp
patch
|
blob
|
history
diff --git
a/src/wallet.cpp
b/src/wallet.cpp
index
b484fc2
..
88d661e
100644
(file)
--- 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();