Initial Zetacoin checkin

This commit is contained in:
zetacoin
2013-08-03 20:35:51 +02:00
parent 6d89611c3a
commit d65257c0b9
111 changed files with 5130 additions and 5025 deletions
+8 -6
View File
@@ -892,17 +892,19 @@ void CWallet::ResendWalletTransactions()
{
// Do this infrequently and randomly to avoid giving away
// that these are our transactions.
if (GetTime() < nNextResend)
static int64 nNextTime;
if (GetTime() < nNextTime)
return;
bool fFirst = (nNextResend == 0);
nNextResend = GetTime() + GetRand(30 * 60);
bool fFirst = (nNextTime == 0);
nNextTime = GetTime() + GetRand(30 * 60);
if (fFirst)
return;
// Only do it if there's been a new block since last time
if (nTimeBestReceived < nLastResend)
static int64 nLastTime;
if (nTimeBestReceived < nLastTime)
return;
nLastResend = GetTime();
nLastTime = GetTime();
// Rebroadcast any of our txes that aren't in a block yet
printf("ResendWalletTransactions()\n");
@@ -1194,7 +1196,7 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend,
LOCK2(cs_main, cs_wallet);
{
nFeeRet = nTransactionFee;
while (true)
loop
{
wtxNew.vin.clear();
wtxNew.vout.clear();