Browse Source

Add 'make seeds' to make it easy to add seeds

pull/256/head
Duke 1 year ago
parent
commit
176a9e1c7a
  1. 3
      Makefile.am
  2. 4
      contrib/seeds/generate-seeds.py
  3. 4
      src/chainparamsseeds.h

3
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"

4
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')

4
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

Loading…
Cancel
Save