File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1979,8 +1979,8 @@ bool AppInitMain()
19791979 UIError (strprintf (_ (" Could not find or parse specified asmap: '%s'" ), asmap_path));
19801980 return false ;
19811981 }
1982- connman.SetAsmap (asmap);
19831982 const uint256 asmap_version = SerializeHash (asmap);
1983+ connman.SetAsmap (std::move (asmap));
19841984 LogPrintf (" Using asmap version %s for IP bucketing.\n " , asmap_version.ToString ());
19851985 } else {
19861986 LogPrintf (" Using /16 prefix for IP bucketing.\n " );
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ class CConnman
271271
272272 unsigned int GetReceiveFloodSize () const ;
273273
274- void SetAsmap (std::vector<bool > asmap) { addrman.m_asmap = asmap; }
274+ void SetAsmap (std::vector<bool > asmap) { addrman.m_asmap = std::move ( asmap) ; }
275275private:
276276 struct ListenSocket {
277277 SOCKET socket;
You can’t perform that action at this time.
0 commit comments