mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 11:23:26 +01:00
Merge pull request #6045
86ac20f
blockchain: fix unwanted error when probing the pool for a tx (moneromooo-monero)
This commit is contained in:
commit
bb04201505
@ -1765,10 +1765,19 @@ bool Blockchain::handle_alternative_block(const block& b, const crypto::hash& id
|
|||||||
{
|
{
|
||||||
cryptonote::tx_memory_pool::tx_details td;
|
cryptonote::tx_memory_pool::tx_details td;
|
||||||
cryptonote::blobdata blob;
|
cryptonote::blobdata blob;
|
||||||
|
if (m_tx_pool.have_tx(txid))
|
||||||
|
{
|
||||||
if (m_tx_pool.get_transaction_info(txid, td))
|
if (m_tx_pool.get_transaction_info(txid, td))
|
||||||
{
|
{
|
||||||
bei.block_cumulative_weight += td.weight;
|
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))
|
else if (m_db->get_pruned_tx_blob(txid, blob))
|
||||||
{
|
{
|
||||||
cryptonote::transaction tx;
|
cryptonote::transaction tx;
|
||||||
|
Loading…
Reference in New Issue
Block a user