diff options
| author | Pieter Wuille <[email protected]> | 2020-01-29 13:55:40 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-01-31 14:51:37 -0800 |
| commit | d58bcdc4b569a667b6974c3547b7ff6f665afce9 (patch) | |
| tree | 3ddcf6f9514819e53de8d197d4af798b55c7085c /src/init.cpp | |
| parent | Merge #18009: tests: Add fuzzing harness for strprintf(…) (diff) | |
| download | discoin-d58bcdc4b569a667b6974c3547b7ff6f665afce9.tar.xz discoin-d58bcdc4b569a667b6974c3547b7ff6f665afce9.zip | |
Avoid asmap copies in initialization
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 49f472716..8720133b8 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1832,8 +1832,8 @@ bool AppInitMain(NodeContext& node) InitError(strprintf(_("Could not find or parse specified asmap: '%s'").translated, asmap_path)); return false; } - node.connman->SetAsmap(asmap); const uint256 asmap_version = SerializeHash(asmap); + node.connman->SetAsmap(std::move(asmap)); LogPrintf("Using asmap version %s for IP bucketing.\n", asmap_version.ToString()); } else { LogPrintf("Using /16 prefix for IP bucketing.\n"); |