Allow pending payments to run immediately
This commit is contained in:
@@ -557,6 +557,9 @@ void RPC::getInfoThenRefresh(bool force) {
|
|||||||
int version = reply["version"].get<json::number_integer_t>();
|
int version = reply["version"].get<json::number_integer_t>();
|
||||||
Settings::getInstance()->setZcashdVersion(version);
|
Settings::getInstance()->setZcashdVersion(version);
|
||||||
|
|
||||||
|
// See if recurring payments needs anything
|
||||||
|
Recurring::getInstance()->processPending(main);
|
||||||
|
|
||||||
if ( force || (curBlock != lastBlock) ) {
|
if ( force || (curBlock != lastBlock) ) {
|
||||||
// Something changed, so refresh everything.
|
// Something changed, so refresh everything.
|
||||||
lastBlock = curBlock;
|
lastBlock = curBlock;
|
||||||
@@ -564,9 +567,6 @@ void RPC::getInfoThenRefresh(bool force) {
|
|||||||
// See if the turnstile migration has any steps that need to be done.
|
// See if the turnstile migration has any steps that need to be done.
|
||||||
turnstile->executeMigrationStep();
|
turnstile->executeMigrationStep();
|
||||||
|
|
||||||
// See if recurring payments needs anything
|
|
||||||
Recurring::getInstance()->processPending(main);
|
|
||||||
|
|
||||||
refreshBalances();
|
refreshBalances();
|
||||||
refreshAddresses(); // This calls refreshZSentTransactions() and refreshReceivedZTrans()
|
refreshAddresses(); // This calls refreshZSentTransactions() and refreshReceivedZTrans()
|
||||||
refreshTransactions();
|
refreshTransactions();
|
||||||
|
|||||||
Reference in New Issue
Block a user