Avoid asmap copies in initialization

This commit is contained in:
Pieter Wuille
2020-01-29 13:55:40 -08:00
parent 7fcaa8291c
commit d58bcdc4b5
2 changed files with 2 additions and 2 deletions

View File

@@ -331,7 +331,7 @@ public:
*/
int64_t PoissonNextSendInbound(int64_t now, int average_interval_seconds);
void SetAsmap(std::vector<bool> asmap) { addrman.m_asmap = asmap; }
void SetAsmap(std::vector<bool> asmap) { addrman.m_asmap = std::move(asmap); }
private:
struct ListenSocket {