mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-13 19:37:04 +01:00
generate-seeds: update and add signet
This commit is contained in:
parent
c4ed23e539
commit
98f84d6c23
1 changed files with 6 additions and 2 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue