src/CurrentBlockchainStatus.cpp
// this can be only used for updateding accont details
// of the same account. Cant be used to change the account
// to different addresses for example.
this can be only used for updateding accont details
of the same account. Cant be used to change the account
to different addresses for example.
this can be only used for updateding accont details of the same account . Cant be used to change the account to different addresses for example .
bool
CurrentBlockchainStatus::update_acc(
        const string& address, 
        XmrAccount const& _acc)
{
    std::lock_guard<std::mutex> lck (searching_threads_map_mtx);
    if (searching_threads.count(address) == 0)
    {
        OMERROR << address.substr(0,6)
                   + ": set_new_searched_blk_no failed:"
                   " thread does not exist";
        return false;
    }
    get_search_thread(address).update_acc(_acc);
    return true;
}
bool CurrentBlockchainStatus :: update_acc ( const string & address , XmrAccount const & _acc ) { std :: lock_guard < std :: mutex > lck ( searching_threads_map_mtx ) ; if ( searching_threads . count ( address ) == 0 ) { OMERROR << address . substr ( 0 , 6 ) + " " " " ; return false ; } get_search_thread ( address ) . update_acc ( _acc ) ; return true ; }
this can be only used for updateding accont details
of the same account.
this can be only used for updateding accont details of the same account .
// thread does not exist