src/lib/rpccntrl.cpp
int rpcCntrl::getCoinIndex(int orderNum, daeObj *daemon, wrkObj *dOrder){
        for(int i=0; i<daemon->size; i++){
            if( daemon->getCoin(i) == dOrder->getCoin(orderNum) && daemon->getEnabled(i) == "true"){
                coinIndex =  i;
                qDebug() << coinIndex << endl;
                return i;
            }else{
                /// coin not found in index
            }
        }
}
/*
 *  Match current Order Coin with index of Coin in list of daemons
 */
Match current Order Coin with index of Coin in list of daemons
Match current Order Coin with index of Coin in list of daemons
int rpcCntrl::getCoinIndex(int orderNum, daeObj *daemon, wrkObj *dOrder){
        for(int i=0; i<daemon->size; i++){
            if( daemon->getCoin(i) == dOrder->getCoin(orderNum) && daemon->getEnabled(i) == "true"){
                coinIndex =  i;
                qDebug() << coinIndex << endl;
                return i;
            }else{
            }
        }
}
int rpcCntrl :: getCoinIndex ( int orderNum , daeObj * daemon , wrkObj * dOrder ) { for ( int i = 0 ; i < daemon -> size ; i ++ ) { if ( daemon -> getCoin ( i ) == dOrder -> getCoin ( orderNum ) && daemon -> getEnabled ( i ) == " " ) { coinIndex = i ; qDebug ( ) << coinIndex << endl ; return i ; } else { } } }
Match current Order Coin with index of Coin in list of daemons
Match current Order Coin with index of Coin in list of daemons
/// coin not found in index