Fabian Jahr
cf4943fdcd
refactor: Use span instead of vector for data in util/asmap
...
This prevents holding the asmap data in memory twice.
The version hash changes due to spans being serialized without their size-prefix (unlike vectors).
2026-01-20 23:59:41 +01:00
Fabian Jahr
385c34a052
refactor: Unify asmap version calculation and naming
...
Calculate the asmap version only in one place: A dedicated function in util/asmap.
The version was also referred to as asmap checksum in several places. To avoid confusion call it asmap version everywhere.
2026-01-20 23:45:29 +01:00
Fabian Jahr
fa41fc6a1a
refactor: Operate on bytes instead of bits in Asmap code
...
Co-authored-by: Hodlinator <172445034+hodlinator@users.noreply.github.com>
2026-01-20 23:45:28 +01:00
MarcoFalke
fa5f297748
scripted-diff: [doc] Unify stale copyright headers
...
-BEGIN VERIFY SCRIPT-
sed --in-place --regexp-extended \
's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \
$( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' )
-END VERIFY SCRIPT-
2025-12-16 22:21:15 +01:00
Fabian Jahr
3ea54e5db7
net: Add continuous ASMap health check logging
2023-12-02 22:03:08 +01:00
John Newbery
36f814c0e8
[netgroupman] Remove NetGroupManager::GetAsmap()
...
asmap no longer needs to be exposed anywhere outside NetGroupManager.
2022-04-20 14:35:53 +01:00
John Newbery
4709fc2019
[netgroupman] Move asmap checksum calculation to NetGroupManager
2022-04-20 14:35:53 +01:00
John Newbery
1b978a7e8c
[netgroupman] Move GetMappedAS() and GetGroup() logic to NetGroupManager
...
Reviewer hint: use:
`git diff --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space`
2022-04-20 14:35:52 +01:00
John Newbery
6b2268162e
[netgroupman] Add GetMappedAS() and GetGroup()
...
These currently call through to the CNetAddr methods. The logic will be moved in a future commit.
2022-04-20 14:35:52 +01:00
John Newbery
19431560e3
[net] Move asmap into NetGroupManager
2022-04-20 14:29:29 +01:00
John Newbery
9b3836710b
[build] Add netgroup.cpp|h
...
These aren't used yet.
2022-04-19 10:25:39 +01:00