Skip to content

Commit

Permalink
fix: max_height=1043000
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptozeny authored Oct 23, 2019
1 parent 82c4592 commit c01c0ab
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 13 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ run using Python 3 but are compatible with Python 2.

$ ./linearize-hashes.py linearize.cfg > hashlist.txt

Required configuration file settings for linearize-hashes:
Required configuration file `linearize.cfg` settings for linearize-hashes:
* RPC: `datadir` (Required if `rpcuser` and `rpcpassword` are not specified)
* RPC: `rpcuser`, `rpcpassword` (Required if `datadir` is not specified)

Optional config file setting for linearize-hashes:
Optional config file `linearize.cfg` setting for linearize-hashes:
* RPC: `host` (Default: `127.0.0.1`)
* RPC: `port` (Default: `34229`)
* Blockchain: `min_height`, `max_height`
Expand Down Expand Up @@ -67,3 +67,16 @@ will be byte-reversed when read by linearize-data.py. See the linearize-hashes
entry for more information.
* `split_timestamp`: Split blockchain files when a new month is first seen, in
addition to reaching a maximum file size (`max_out_sz`).

## Step 3: PGP signing on bootstrap release

$ cd ~/Desktop # move to output directory
... # zip into bootstrap.dat.zip
$ sha256sum bootstrap.dat.zip > SHA256SUMS
$ gpg --digest-algo sha256 --clearsign SHA256SUMS # PGP signing
$ rm SHA256SUMS && > cat SHA256SUMS.asc # rename to asc
... # release

* Release following files at https://github.com/sugarchain-project/bootstrap/releases
- bootstrap.dat.zip
- SHA256SUMS.asc
19 changes: 12 additions & 7 deletions example-linearize.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sugarchaind RPC settings (linearize-hashes)
rpcuser=someuser
rpcpassword=somepassword
rpcuser=rpcuser
rpcpassword=rpcpassword
#datadir=~/.sugarchain
host=127.0.0.1

Expand All @@ -14,14 +14,17 @@ port=34229
#port=45339

# bootstrap.dat hashlist settings (linearize-hashes)
max_height=313000
# at this moment, the height is approx. 1043388
max_height=1043000

# bootstrap.dat input/output settings (linearize-data)

# mainnet
netmagic=f9beb4d9
genesis=000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
input=/home/example/.sugarchain/blocks
netmagic=9feb4b9d
genesis=7d5eaec2dbb75f99feadfa524c78b7cabc1d8c8204f79d4f3a83381b811b0adc
# path should be an absolute path
# input=/home/example/.sugarchain/blocks
input=/home/{USERNAME}/.sugarchain/blocks

# testnet
#netmagic=0b110907
Expand All @@ -31,7 +34,9 @@ input=/home/example/.sugarchain/blocks
# "output" option causes blockchain files to be written to the given location,
# with "output_file" ignored. If not used, "output_file" is used instead.
# output=/home/example/blockchain_directory
output_file=/home/example/Downloads/bootstrap.dat
# path should be an absolute path
# output_file=/home/example/Downloads/bootstrap.dat
output_file=/home/{USERNAME}/Desktop/bootstrap.dat
hashlist=hashlist.txt

# Maximum size in bytes of out-of-order blocks cache in memory
Expand Down
10 changes: 6 additions & 4 deletions linearize.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ port=34229
#port=45339

# bootstrap.dat hashlist settings (linearize-hashes)
# at this moment, the height is approx. 650000
max_height=650000
# at this moment, the height is approx. 1043388
max_height=1043000

# bootstrap.dat input/output settings (linearize-data)

# mainnet
netmagic=9feb4b9d
genesis=7d5eaec2dbb75f99feadfa524c78b7cabc1d8c8204f79d4f3a83381b811b0adc
# path should be an absolute path
input=/home/ak/.sugarchain/blocks
# input=/home/example/.sugarchain/blocks
input=/home/{USERNAME}/.sugarchain/blocks

# testnet
#netmagic=0b110907
Expand All @@ -34,7 +35,8 @@ input=/home/ak/.sugarchain/blocks
# with "output_file" ignored. If not used, "output_file" is used instead.
# output=/home/example/blockchain_directory
# path should be an absolute path
output_file=/home/ak/Desktop/bootstrap.dat
# output_file=/home/example/Downloads/bootstrap.dat
output_file=/home/{USERNAME}/Desktop/bootstrap.dat
hashlist=hashlist.txt

# Maximum size in bytes of out-of-order blocks cache in memory
Expand Down

0 comments on commit c01c0ab

Please sign in to comment.