src/MicroCore.cpp
/**
     * Get transaction tx from the blockchain using it hash
     */
Get transaction tx from the blockchain using it hash
Get transaction tx from the blockchain using it hash
bool
    MicroCore::get_tx(const crypto::hash& tx_hash, transaction& tx)
    {
        if (m_blockchain_storage.have_tx(tx_hash))
        {
            tx = m_blockchain_storage.get_db().get_tx(tx_hash);
        }
        else
        {
            cerr << "MicroCore::get_tx tx does not exist in blockchain: " << tx_hash << endl;
            return false;
        }
        return true;
    }
bool MicroCore :: get_tx ( const crypto :: hash & tx_hash , transaction & tx ) { if ( m_blockchain_storage . have_tx ( tx_hash ) ) { tx = m_blockchain_storage . get_db ( ) . get_tx ( tx_hash ) ; } else { cerr << " " << tx_hash << endl ; return false ; } return true ; }
Get transaction tx from the blockchain using it hash
Get transaction tx from the blockchain using it hash
// get transaction with given hash