contrib: Adjust generate-seeds.py to write inline constexpr

Otherwise, the changes in the previous commit will be reverted when this
script regenerates the header.

Co-Authored-By: l0rinc <pap.lorinc@gmail.com>
This commit is contained in:
MarcoFalke
2026-08-04 09:18:47 +02:00
parent fad753611b
commit fa08bbed8d

View File

@@ -22,9 +22,9 @@ These files must consist of lines in the format
The output will be several data structures with the peers in binary format:
static const uint8_t chainparams_seed_{main,signet,test,testnet4}[]={
...
}
inline constexpr uint8_t chainparams_seed_{main,signet,test,testnet4}[]{
...
};
These should be pasted into `src/chainparamsseeds.h`.
'''
@@ -137,7 +137,7 @@ def bip155_serialize(spec):
return r
def process_nodes(g, f, structname):
g.write('static const uint8_t %s[] = {\n' % structname)
g.write("inline constexpr uint8_t %s[]{\n" % structname)
for line in f:
comment = line.find('#')
if comment != -1: