From 9db4b7b99d78391fb8e5dc4db7ee7cfdf01c293c Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Tue, 14 May 2019 14:16:12 -0700 Subject: [PATCH] Allow pending payments to run immediately --- src/rpc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpc.cpp b/src/rpc.cpp index f5bdfab..761ffc1 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -557,6 +557,9 @@ void RPC::getInfoThenRefresh(bool force) { int version = reply["version"].get(); Settings::getInstance()->setZcashdVersion(version); + // See if recurring payments needs anything + Recurring::getInstance()->processPending(main); + if ( force || (curBlock != lastBlock) ) { // Something changed, so refresh everything. lastBlock = curBlock; @@ -564,9 +567,6 @@ void RPC::getInfoThenRefresh(bool force) { // See if the turnstile migration has any steps that need to be done. turnstile->executeMigrationStep(); - // See if recurring payments needs anything - Recurring::getInstance()->processPending(main); - refreshBalances(); refreshAddresses(); // This calls refreshZSentTransactions() and refreshReceivedZTrans() refreshTransactions();