mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
blockchain: fix unwanted error when probing the pool for a tx
This commit is contained in:
parent
b928ead30e
commit
eb16755083
1 changed files with 11 additions and 2 deletions
|
@ -1765,9 +1765,18 @@ bool Blockchain::handle_alternative_block(const block& b, const crypto::hash& id
|
|||
{
|
||||
cryptonote::tx_memory_pool::tx_details td;
|
||||
cryptonote::blobdata blob;
|
||||
if (m_tx_pool.get_transaction_info(txid, td))
|
||||
if (m_tx_pool.have_tx(txid))
|
||||
{
|
||||
bei.block_cumulative_weight += td.weight;
|
||||
if (m_tx_pool.get_transaction_info(txid, td))
|
||||
{
|
||||
bei.block_cumulative_weight += td.weight;
|
||||
}
|
||||
else
|
||||
{
|
||||
MERROR_VER("Transaction is in the txpool, but metadata not found");
|
||||
bvc.m_verifivation_failed = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else if (m_db->get_pruned_tx_blob(txid, blob))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue