Fix header wrappers generated by generate-seeds.py (#3793)

This commit is contained in:
UdjinM6 2020-11-08 17:45:32 +03:00 committed by GitHub
parent 24741ca3a6
commit d65dca574f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,8 +118,8 @@ def main():
sys.exit(1)
g = sys.stdout
indir = sys.argv[1]
g.write('#ifndef DASH_CHAINPARAMSSEEDS_H\n')
g.write('#define DASH_CHAINPARAMSSEEDS_H\n')
g.write('#ifndef BITCOIN_CHAINPARAMSSEEDS_H\n')
g.write('#define BITCOIN_CHAINPARAMSSEEDS_H\n')
g.write('/**\n')
g.write(' * List of fixed seed nodes for the dash network\n')
g.write(' * AUTOGENERATED by contrib/seeds/generate-seeds.py\n')
@ -132,7 +132,7 @@ def main():
g.write('\n')
with open(os.path.join(indir,'nodes_test.txt'), 'r', encoding="utf8") as f:
process_nodes(g, f, 'pnSeed6_test', 19999)
g.write('#endif // DASH_CHAINPARAMSSEEDS_H\n')
g.write('#endif // BITCOIN_CHAINPARAMSSEEDS_H\n')
if __name__ == '__main__':
main()