void BtcTransactionManager::Update() { std::string poolName = Modules::poolManager->selectedPool; SampleEscrowClientPtr client = Modules::sampleEscrowClient; if(refreshTransactionsCount-- == 0) { // ask pool for new transactions refreshTransactionsCount = 15; client->CheckPoolTransactions(Modules::poolManager->GetPoolByName(poolName)); } if(static_cast<uint32_t>(this->ui->tableTxPool->rowCount()) < client->poolTxCountMap[poolName]) { RefreshPoolTransactions(); } else if(refreshAllCount-- == 0) { refreshAllCount = 15; RefreshBitcoinTransactions(); // ask bitcoind for list of transactions RefreshPoolTransactions(true); // check confirmations of pool transactions RefreshBalances(); // update balances } }
void BtcSendDlg::Update() { RefreshBalances(); }