diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-29 13:55:40 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2020-01-31 14:51:37 -0800 |
commit | d58bcdc4b569a667b6974c3547b7ff6f665afce9 (patch) | |
tree | 3ddcf6f9514819e53de8d197d4af798b55c7085c /src/net.h | |
parent | 7fcaa8291c6e155e6f5fba42e2ee8ec0bee046a3 (diff) |
Avoid asmap copies in initialization
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |