mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
tx_pool: add a few std::move where it can make a difference
This commit is contained in:
parent
7bb6c00b5e
commit
36da8397f8
1 changed files with 4 additions and 3 deletions
|
@ -663,7 +663,8 @@ namespace cryptonote
|
||||||
// continue
|
// continue
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
txs.push_back(tx);
|
tx.set_hash(txid);
|
||||||
|
txs.push_back(std::move(tx));
|
||||||
return true;
|
return true;
|
||||||
}, true, include_unrelayed_txes);
|
}, true, include_unrelayed_txes);
|
||||||
}
|
}
|
||||||
|
@ -803,7 +804,7 @@ namespace cryptonote
|
||||||
txi.last_relayed_time = include_sensitive_data ? meta.last_relayed_time : 0;
|
txi.last_relayed_time = include_sensitive_data ? meta.last_relayed_time : 0;
|
||||||
txi.do_not_relay = meta.do_not_relay;
|
txi.do_not_relay = meta.do_not_relay;
|
||||||
txi.double_spend_seen = meta.double_spend_seen;
|
txi.double_spend_seen = meta.double_spend_seen;
|
||||||
tx_infos.push_back(txi);
|
tx_infos.push_back(std::move(txi));
|
||||||
return true;
|
return true;
|
||||||
}, true, include_sensitive_data);
|
}, true, include_sensitive_data);
|
||||||
|
|
||||||
|
@ -885,7 +886,7 @@ namespace cryptonote
|
||||||
}
|
}
|
||||||
|
|
||||||
const crypto::key_image& k_image = kee.first;
|
const crypto::key_image& k_image = kee.first;
|
||||||
key_image_infos[k_image] = tx_hashes;
|
key_image_infos[k_image] = std::move(tx_hashes);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue