mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
tx_pool: remove unnecessary get_transaction_hash
This commit is contained in:
parent
593ef5981d
commit
4f005a77c2
1 changed files with 3 additions and 4 deletions
|
@ -290,10 +290,9 @@ namespace cryptonote
|
||||||
{
|
{
|
||||||
CRITICAL_REGION_LOCAL1(m_blockchain);
|
CRITICAL_REGION_LOCAL1(m_blockchain);
|
||||||
LockedTXN lock(m_blockchain);
|
LockedTXN lock(m_blockchain);
|
||||||
const crypto::hash txid = get_transaction_hash(tx);
|
m_blockchain.remove_txpool_tx(id);
|
||||||
m_blockchain.remove_txpool_tx(txid);
|
m_blockchain.add_txpool_tx(id, blob, meta);
|
||||||
m_blockchain.add_txpool_tx(txid, blob, meta);
|
if (!insert_key_images(tx, id, kept_by_block))
|
||||||
if (!insert_key_images(tx, txid, kept_by_block))
|
|
||||||
return false;
|
return false;
|
||||||
m_txs_by_fee_and_receive_time.emplace(std::pair<double, std::time_t>(fee / (double)tx_weight, receive_time), id);
|
m_txs_by_fee_and_receive_time.emplace(std::pair<double, std::time_t>(fee / (double)tx_weight, receive_time), id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue