X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=9ef3d649c876eb41cd2aa4df17be1f7695c5429a;hp=279609b61db689b5c7b26f8b2929a6ae42c0f742;hb=e78811a329c528498cf7e64e6957a4bcba52c713;hpb=09ccabeb1ace011357b4767aac6566d1cfc99eb6 diff --git a/src/main.cpp b/src/main.cpp index 279609b..9ef3d64 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -116,15 +116,6 @@ bool static IsFromMe(CTransaction& tx) return false; } -// get the wallet transaction with the given hash (if it exists) -bool static GetTransaction(const uint256& hashTx, CWalletTx& wtx) -{ - BOOST_FOREACH(CWallet* pwallet, setpwalletRegistered) - if (pwallet->GetTransaction(hashTx,wtx)) - return true; - return false; -} - // erases transaction with the given hash from all wallets void static EraseFromWallets(uint256 hash) { @@ -3912,7 +3903,7 @@ bool ProcessMessages(CNode* pfrom) } -bool SendMessages(CNode* pto, bool fSendTrickle) +bool SendMessages(CNode* pto) { TRY_LOCK(cs_main, lockMain); if (lockMain) { @@ -3942,7 +3933,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle) // Address refresh broadcast if (!IsInitialBlockDownload() && pto->nNextLocalAddrSend < nNow) { AdvertiseLocal(pto); - pto->nNextLocalAddrSend = PoissonNextSend(nNow, 14 * 60 * 60); + pto->nNextLocalAddrSend = PoissonNextSend(nNow, nOneDay); } //