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
    }
}
예제 #2
0
void BtcSendDlg::Update()
{
    RefreshBalances();
}