Skip to content

Commit de4b7f2

Browse files
committed
Merge #20015: doc: Added default signet config for linearize script
8a4dcda doc: Added default signet config for linearize script (gr0kchain) Pull request description: Updated the example-linearize.cfg file to include support for the signet chain network config which is used by the ./linearize-data.py Problem: Without the signet magic, genesis hash and path config, the linearize-data.py script cannot generate a bootstrap.dat file. Example: ``` ./linearize-data.py ./linearize.cfg Read 4776 hashes Genesis block not found in hashlist ``` Solution: Added netmagic, genesis and input example parameters to file. Netmagic in terms of signet is derived from the signet-challenge and not static as with other networks. The provided signet magic is based on the default public signet. Resolution ``` ./linearize-hashes.py ./linearize.cfg > ./hashlist.txt ./linearize-data.py ./linearize.cfg $ ./linearize-data.py ./linearize.cfg Read 4776 hashes Input file /Users/gr0kchain/.bitcoin/signet/blocks/blk00000.dat Output file /Users/gr0kchain/Downloads/bootstrap.dat 1000 blocks scanned, 1000 blocks written (of 4776, 20.9% complete) 2000 blocks scanned, 2000 blocks written (of 4776, 41.9% complete) 3011 blocks scanned, 3000 blocks written (of 4776, 62.8% complete) 4010 blocks scanned, 4000 blocks written (of 4776, 83.8% complete) Done (4776 blocks written) ``` ACKs for top commit: laanwj: Tested ACK 8a4dcda Tree-SHA512: ad4d330358cf67e7424fb1d97ca828c28ca2758102e45747f4059c11a8acce801162da024a20cfb892f997fd4c3f4d5af988d1ca67c74efa78bf7d4ed27dd421
2 parents 9e6f56f + 8a4dcda commit de4b7f2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

contrib/linearize/example-linearize.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ port=8332
1313
#regtest default
1414
#port=18443
1515

16+
#signet default
17+
#port=38332
18+
1619
# bootstrap.dat hashlist settings (linearize-hashes)
1720
max_height=313000
1821

@@ -33,6 +36,11 @@ input=/home/example/.bitcoin/blocks
3336
#genesis=0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
3437
#input=/home/example/.bitcoin/regtest/blocks
3538

39+
# signet
40+
#netmagic=0a03cf40
41+
#genesis=00000008819873e925422c1ff0f99f7cc9bbb232af63a077a480a3633bee1ef6
42+
#input=/home/example/.bitcoin/signet/blocks
43+
3644
# "output" option causes blockchain files to be written to the given location,
3745
# with "output_file" ignored. If not used, "output_file" is used instead.
3846
# output=/home/example/blockchain_directory

0 commit comments

Comments
 (0)