mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-11 21:20:39 +02:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user