mirror of
https://github.com/monero-project/monero.git
synced 2026-01-22 04:22:55 +01:00
protocol: fix wrong tx being looked up from fluffy block
Found by smooth
This commit is contained in:
@@ -548,7 +548,16 @@ namespace cryptonote
|
|||||||
tx_ids.push_back(tx_hash);
|
tx_ids.push_back(tx_hash);
|
||||||
if (m_core.get_transactions(tx_ids, txes, missing) && missing.empty())
|
if (m_core.get_transactions(tx_ids, txes, missing) && missing.empty())
|
||||||
{
|
{
|
||||||
have_tx.push_back(tx_to_blob(tx));
|
if (txes.size() == 1)
|
||||||
|
{
|
||||||
|
have_tx.push_back(tx_to_blob(txes.front()));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MERROR("1 tx requested, none not found, but " << txes.size() << " returned");
|
||||||
|
m_core.resume_mine();
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user