testnet: Introduce Testnet4

This commit is contained in:
Fabian Jahr
2024-03-31 23:50:42 +02:00
parent 902dd14382
commit 74a04f9e7a
26 changed files with 258 additions and 30 deletions

View File

@@ -5,11 +5,12 @@
'''
Script to generate list of seed nodes for kernel/chainparams.cpp.
This script expects two text files in the directory that is passed as an
This script expects three text files in the directory that is passed as an
argument:
nodes_main.txt
nodes_test.txt
nodes_testnet4.txt
These files must consist of lines in the format
@@ -171,6 +172,9 @@ def main():
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')
with open(os.path.join(indir,'nodes_testnet4.txt'), 'r', encoding="utf8") as f:
process_nodes(g, f, 'chainparams_seed_testnet4')
g.write('#endif // BITCOIN_CHAINPARAMSSEEDS_H\n')
if __name__ == '__main__':