mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-09-07 22:40:50 +02:00
generate-seeds: update and add signet
This commit is contained in:
@@ -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>.onion:<port>
|
||||
<i2p>.b32.i2p:<port>
|
||||
|
||||
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')
|
||||
|
Reference in New Issue
Block a user