This is a follow-up to #36215. I noticed the possible improvement in exportasmap and went through everything to see where else we could make changes where we can use this as an advantage.
rpc: Reuse AsmapVersion in exportasmap:exportasmaphashed the file by hand to show the hash, instead we can useAsmapVersion()which is the same value.init: Log asmap version from NetGroupManager: Drop the version variable in init and log the version by getting it fromNetGroupManagerinsteadtest: Check embedded asmap version log and addrman re-bucketing: We didn't cover rebucketing behavior in the functional test yet. Also gets rid of stale comment.rpc: Add asmap_version to getnetworkinfo: Getting access to the asmap version from the logs may be a bit tedious for some users and now it may be even more interesting for them to compare the version to the hash attested to inasmap-data. So let them get it viagetnetworkinfo.doc: Describe how to verify the asmap in use: Just mention the latest changes from above and the opportunity to compare the version to the hash in seen inasmap-data.