From 98f84d6c233385c3ee8d9a300f7f7be597b2768b Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Tue, 4 Mar 2025 15:10:47 -0600 Subject: [PATCH] generate-seeds: update and add signet --- contrib/seeds/generate-seeds.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/seeds/generate-seeds.py b/contrib/seeds/generate-seeds.py index 72dd5d28cc5..a3ce0122519 100755 --- a/contrib/seeds/generate-seeds.py +++ b/contrib/seeds/generate-seeds.py @@ -9,6 +9,7 @@ This script expects three text files in the directory that is passed as an argument: nodes_main.txt + nodes_signet.txt nodes_test.txt nodes_testnet4.txt @@ -19,9 +20,9 @@ These files must consist of lines in the format .onion: .b32.i2p: -The output will be two data structures with the peers in binary format: +The output will be several data structures with the peers in binary format: - static const uint8_t chainparams_seed_{main,test}[]={ + static const uint8_t chainparams_seed_{main,signet,test,testnet4}[]={ ... } @@ -170,6 +171,9 @@ def main(): with open(os.path.join(indir,'nodes_main.txt'), 'r', encoding="utf8") as f: process_nodes(g, f, 'chainparams_seed_main') g.write('\n') + with open(os.path.join(indir,'nodes_signet.txt'), 'r', encoding="utf8") as f: + process_nodes(g, f, 'chainparams_seed_signet') + g.write('\n') with open(os.path.join(indir,'nodes_test.txt'), 'r', encoding="utf8") as f: process_nodes(g, f, 'chainparams_seed_test') g.write('\n')