Skip to content

Commit 98f84d6

Browse files
committed
generate-seeds: update and add signet
1 parent c4ed23e commit 98f84d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

contrib/seeds/generate-seeds.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
argument:
1010
1111
nodes_main.txt
12+
nodes_signet.txt
1213
nodes_test.txt
1314
nodes_testnet4.txt
1415
@@ -19,9 +20,9 @@
1920
<onion>.onion:<port>
2021
<i2p>.b32.i2p:<port>
2122
22-
The output will be two data structures with the peers in binary format:
23+
The output will be several data structures with the peers in binary format:
2324
24-
static const uint8_t chainparams_seed_{main,test}[]={
25+
static const uint8_t chainparams_seed_{main,signet,test,testnet4}[]={
2526
...
2627
}
2728
@@ -170,6 +171,9 @@ def main():
170171
with open(os.path.join(indir,'nodes_main.txt'), 'r', encoding="utf8") as f:
171172
process_nodes(g, f, 'chainparams_seed_main')
172173
g.write('\n')
174+
with open(os.path.join(indir,'nodes_signet.txt'), 'r', encoding="utf8") as f:
175+
process_nodes(g, f, 'chainparams_seed_signet')
176+
g.write('\n')
173177
with open(os.path.join(indir,'nodes_test.txt'), 'r', encoding="utf8") as f:
174178
process_nodes(g, f, 'chainparams_seed_test')
175179
g.write('\n')

0 commit comments

Comments
 (0)