mirror of
https://github.com/monero-project/monero.git
synced 2024-12-14 04:16:32 +02:00
Blockfill - Sort tx pool correctly
This commit is contained in:
parent
5f7a8741b9
commit
58e825060e
@ -253,7 +253,7 @@ namespace cryptonote
|
|||||||
|
|
||||||
tvc.m_verifivation_failed = false;
|
tvc.m_verifivation_failed = false;
|
||||||
|
|
||||||
m_txs_by_fee_and_receive_time.emplace(std::pair<double, std::time_t>((double)blob_size / fee, receive_time), id);
|
m_txs_by_fee_and_receive_time.emplace(std::pair<double, std::time_t>(fee / (double)blob_size, receive_time), id);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -732,7 +732,7 @@ namespace cryptonote
|
|||||||
// no need to store queue of sorted transactions, as it's easy to generate.
|
// no need to store queue of sorted transactions, as it's easy to generate.
|
||||||
for (const auto& tx : m_transactions)
|
for (const auto& tx : m_transactions)
|
||||||
{
|
{
|
||||||
m_txs_by_fee_and_receive_time.emplace(std::pair<double, time_t>((double)tx.second.blob_size / tx.second.fee, tx.second.receive_time), tx.first);
|
m_txs_by_fee_and_receive_time.emplace(std::pair<double, time_t>(tx.second.fee / (double)tx.second.blob_size, tx.second.receive_time), tx.first);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ignore deserialization error
|
// Ignore deserialization error
|
||||||
|
Loading…
Reference in New Issue
Block a user