diff options
author | laanwj <126646+laanwj@users.noreply.github.com> | 2022-04-15 17:14:40 +0200 |
---|---|---|
committer | laanwj <126646+laanwj@users.noreply.github.com> | 2022-05-31 11:57:49 +0200 |
commit | b54180303de0df9be7023577f35648225cf95443 (patch) | |
tree | fc4986f60f2b760edffa18d9865f12e4a0ffe021 /contrib/seeds/.gitignore | |
parent | bd6c5e410829764ea0a3c4251e42f86242e043a2 (diff) | |
download | bitcoin-b54180303de0df9be7023577f35648225cf95443.tar.xz |
contrib: Use asmap for ASN lookup in makeseeds
Add an argument `-a` to provide a asmap file to do the IP to ASN
lookups.
This speeds up the script greatly, and makes the output deterministic.
Also removes the dependency on `dns.lookup`.
I've annotated the output with ASxxxx comments to provide a way to
verify the functionality.
For now I've added instructions in README.md to download and use the
`demo.map` from the asmap repository. When we have some other mechanism
for distributing asmap files we could switch to that.
This continues #24824. I've removed all the fallbacks and extra
complexity, as everyone will be using the same instructions anyway.
Co-authored-by: Pieter Wuille <pieter.wuille@gmail.com>
Co-authored-by: James O'Beirne <james.obeirne@pm.me>
Co-authored-by: russeree <reese.russell@ymail.com>
Diffstat (limited to 'contrib/seeds/.gitignore')
-rw-r--r-- | contrib/seeds/.gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/seeds/.gitignore b/contrib/seeds/.gitignore index e4a39d6093..d9a2451f70 100644 --- a/contrib/seeds/.gitignore +++ b/contrib/seeds/.gitignore @@ -1 +1,2 @@ seeds_main.txt +asmap-filled.dat |