diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-25 17:11:47 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-08-25 17:09:32 +0200 |
commit | 99995cfe8da6ea2b93a6cd0e0bc84bb34cbb9d8c (patch) | |
tree | 3c4a0d329ccbad50f4947404bb3e261361d26a3a /src/init.cpp | |
parent | 5555aa2d0ddcc478b95a431a57821199ef2c40ac (diff) |
refactor: Use HashWriter over legacy CHashWriter (via SerializeHash)
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 35c37dac38..616883c3a1 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1195,7 +1195,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info) InitError(strprintf(_("Could not parse asmap file %s"), fs::quoted(fs::PathToString(asmap_path)))); return false; } - const uint256 asmap_version = SerializeHash(asmap); + const uint256 asmap_version = (HashWriter{} << asmap).GetHash(); LogPrintf("Using asmap version %s for IP bucketing\n", asmap_version.ToString()); } else { LogPrintf("Using /16 prefix for IP bucketing\n"); |