Skip to content

Commit

Permalink
Increase timeout to avoid wallet overload
Browse files Browse the repository at this point in the history
Signed-off-by: tran <nguyenhoangtran11@yahoo.com>
  • Loading branch information
nguyenhoangtran11 committed Jan 13, 2019
1 parent 03c9055 commit c4e0590
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/qt/guiconstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define BITCOIN_QT_GUICONSTANTS_H

/* Milliseconds between model updates */
static const int MODEL_UPDATE_DELAY = 250;
static const int MODEL_UPDATE_DELAY = 1000;

/* AskPassphraseDialog -- Maximum passphrase length */
static const int MAX_PASSPHRASE_SIZE = 1024;
Expand Down
2 changes: 1 addition & 1 deletion src/qt/lux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ void BitcoinApplication::initializeResult(int retval)
window, SLOT(message(QString, QString, unsigned int)));
QTimer::singleShot(100, paymentServer, SLOT(uiReady()));
#endif
pollShutdownTimer->start(150);
pollShutdownTimer->start(300);
} else {
Q_EMIT splashFinished(window);
quit(); // Exit main loop
Expand Down
2 changes: 1 addition & 1 deletion src/qt/overviewpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget* parent)
}
timer = new QTimer(this);
connect(timer, SIGNAL(timeout()), this, SLOT(darkSendStatus()));
timer->start(1000);
timer->start(2000);
}
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/qt/walletmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ WalletModel::WalletModel(const PlatformStyle *platformStyle, CWallet* wallet, Op
// This timer will be fired repeatedly to update the balance
pollTimer = new QTimer(this);
connect(pollTimer, SIGNAL(timeout()), this, SLOT(pollBalanceChanged()));
pollTimer->start(MODEL_UPDATE_DELAY);
pollTimer->start(MODEL_UPDATE_DELAY * 4);

subscribeToCoreSignals();
}
Expand Down

0 comments on commit c4e0590

Please sign in to comment.