aboutsummaryrefslogtreecommitdiff
path: root/contrib/linearize/example-linearize.cfg
diff options
context:
space:
mode:
authorDouglas Roark <[email protected]>2017-01-18 22:22:46 -0800
committerDouglas Roark <[email protected]>2017-01-25 13:12:03 -0800
commitb9d95bd9a1b3e8613373ecd228805518f2852985 (patch)
treef6de99345ffce71288c6347bde1ba1879bb290dd /contrib/linearize/example-linearize.cfg
parentMerge #9624: [Trivial] fix logging typo in FlushStateToDisk() (diff)
downloaddiscoin-b9d95bd9a1b3e8613373ecd228805518f2852985.tar.xz
discoin-b9d95bd9a1b3e8613373ecd228805518f2852985.zip
Fix various minor linearization script issues
- The last-timestamp-encountered variable wasn’t being used properly. Rewrite code to properly allow for new blockchain files to be written when split by month. - Properly set a blockchain file’s access and modify times. - Add a “debug output” option to quiet certain output that might not always be desirable. - Update the README.
Diffstat (limited to 'contrib/linearize/example-linearize.cfg')
-rw-r--r--contrib/linearize/example-linearize.cfg13
1 files changed, 12 insertions, 1 deletions
diff --git a/contrib/linearize/example-linearize.cfg b/contrib/linearize/example-linearize.cfg
index cccdd7921..db53dc0ef 100644
--- a/contrib/linearize/example-linearize.cfg
+++ b/contrib/linearize/example-linearize.cfg
@@ -1,4 +1,3 @@
-
# bitcoind RPC settings (linearize-hashes)
rpcuser=someuser
rpcpassword=somepassword
@@ -21,6 +20,9 @@ input=/home/example/.bitcoin/blocks
#genesis=000000000933ea01ad0ee984209779baaec3ced90fa3f408719526f8d77f4943
#input=/home/example/.bitcoin/testnet3/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
hashlist=hashlist.txt
@@ -29,3 +31,12 @@ out_of_order_cache_sz = 100000000
# Do we want the reverse the hash bytes coming from getblockhash?
rev_hash_bytes = False
+
+# On a new month, do we want to set the access and modify times of the new
+# blockchain file?
+file_timestamp = 0
+# Do we want to split the blockchain files given a new month or specific height?
+split_timestamp = 0
+
+# Do we want debug printouts?
+debug_output = False