Ejemplo n.º 1
0
bool CTxDB::ReadTxIndex(uint256 hash, CTxIndex& txindex)
{
    assert(!fClient);
    txindex.SetNull();
    if(TXReadWritePool)
    {
        boost::unordered_map<uint256, CTxIndex, BlockHasher>::iterator iter = TXReadWritePool->find(hash);
        if(iter == TXReadWritePool->end())
            return Read(make_pair(string("tx"), hash), txindex);
        txindex = iter->second;
        return true;
    }
    return Read(make_pair(string("tx"), hash), txindex);
}
Ejemplo n.º 2
0
bool CTxDB::ReadTxIndex(uint256 hash, CTxIndex& txindex)
{
    assert(!fClient);
    txindex.SetNull();
    return Read(make_pair(string("tx"), hash), txindex);
}