Browse Source

More debugging when resending txs

pull/361/head
Duke 7 months ago
parent
commit
b73297f1f5
  1. 6
      src/wallet/wallet.cpp

6
src/wallet/wallet.cpp

@ -3116,6 +3116,7 @@ std::vector<uint256> CWallet::ResendWalletTransactionsBefore(int64_t nTime)
// Sort them in chronological order // Sort them in chronological order
multimap<unsigned int, CWalletTx*> mapSorted; multimap<unsigned int, CWalletTx*> mapSorted;
uint32_t now = (uint32_t)time(NULL); uint32_t now = (uint32_t)time(NULL);
LogPrintf("%s: nTime=%ld now=%d\n", __func__, nTime, now);
// vector of wallet transactions to delete // vector of wallet transactions to delete
std::vector<uint256> vwtxh; std::vector<uint256> vwtxh;
@ -3183,6 +3184,7 @@ std::vector<uint256> CWallet::ResendWalletTransactionsBefore(int64_t nTime)
void CWallet::ResendWalletTransactions(int64_t nBestBlockTime) void CWallet::ResendWalletTransactions(int64_t nBestBlockTime)
{ {
LogPrintf("%s: nBestBlockTime=%ld nNextResend=%ld nLastResend=%ld time=%ld\n", __func__, nBestBlockTime, nNextResend, nLastResend, GetTime());
// Do this infrequently and randomly to avoid giving away // Do this infrequently and randomly to avoid giving away
// that these are our transactions. // that these are our transactions.
if (GetTime() < nNextResend || !fBroadcastTransactions) if (GetTime() < nNextResend || !fBroadcastTransactions)
@ -3207,15 +3209,11 @@ void CWallet::ResendWalletTransactions(int64_t nBestBlockTime)
/** @} */ // end of mapWallet /** @} */ // end of mapWallet
/** @defgroup Actions /** @defgroup Actions
* *
* @{ * @{
*/ */
CAmount CWallet::GetBalance() const CAmount CWallet::GetBalance() const
{ {
CAmount nTotal = 0; CAmount nTotal = 0;

Loading…
Cancel
Save