From 176a9e1c7a20458e6cc1f61f329ee49323f7d436 Mon Sep 17 00:00:00 2001 From: Duke Date: Tue, 17 Jan 2023 08:01:14 -0500 Subject: [PATCH] Add 'make seeds' to make it easy to add seeds --- Makefile.am | 3 +++ contrib/seeds/generate-seeds.py | 4 +++- src/chainparamsseeds.h | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 48c498853..9c4036ba4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -247,6 +247,9 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-man clean-local: rm -rf test_bitcoin.coverage/ total.coverage/ +seeds: + ./contrib/seeds/generate-seeds.py contrib/seeds > src/chainparamsseeds.h + manpages: ./util/gen-manpages.sh @echo "Please review the man pages changes to see if they look correct, then commit and push" diff --git a/contrib/seeds/generate-seeds.py b/contrib/seeds/generate-seeds.py index f50114d01..974a8e0d4 100755 --- a/contrib/seeds/generate-seeds.py +++ b/contrib/seeds/generate-seeds.py @@ -164,7 +164,9 @@ def main(): g.write('// Distributed under the GPLv3 software license, see the accompanying\n') g.write('// file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html\n') g.write('// THIS FILE IS AUTOGENERATED, DO NOT MODIFY DIRECTLY\n') - g.write('// Instead, run: ./contrib/seeds/generate-seeds.py contrib/seeds\n') + g.write('// Instead, update contrib/seeds/nodes_main.txt then run\n') + g.write('// ./contrib/seeds/generate-seeds.py contrib/seeds > src/chainparamsseeds.h\n') + g.write('// OR run: make seeds\n') g.write('#ifndef HUSH_CHAINPARAMSSEEDS_H\n') g.write('#define HUSH_CHAINPARAMSSEEDS_H\n') g.write('// List of fixed seed nodes for the Hush network\n') diff --git a/src/chainparamsseeds.h b/src/chainparamsseeds.h index ae5eb60af..072789af0 100644 --- a/src/chainparamsseeds.h +++ b/src/chainparamsseeds.h @@ -2,7 +2,9 @@ // Distributed under the GPLv3 software license, see the accompanying // file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html // THIS FILE IS AUTOGENERATED, DO NOT MODIFY DIRECTLY -// Instead, run: ./contrib/seeds/generate-seeds.py contrib/seeds +// Instead, update contrib/seeds/nodes_main.txt then run +// ./contrib/seeds/generate-seeds.py contrib/seeds > src/chainparamsseeds.h +// OR run: make seeds #ifndef HUSH_CHAINPARAMSSEEDS_H #define HUSH_CHAINPARAMSSEEDS_H // List of fixed seed nodes for the Hush network