Skip to content

How to Initialize

Skaht edited this page Jul 3, 2015 · 19 revisions

Assuming bitcoin-server (bs) is built properly and your shell path for bs is set properly, change to a directory you want the blockchain to reside within. Execute the following command once to initialize the blockchain directory structure.

% bs --initchain

Be patient and wait for the initialization to complete. Afterwards, perform the following to obtain feedback that the file provisioning has completed.

% ls blockchain

The following should be visible:

./
../
blocks_lookup
blocks_rows
history_lookup
history_rows
spends
stealth_index
stealth_rows
txs

The "db-lock" file will appear in the directory after the bs server starts building/populating the local copy of the blockchain.

Clone this wiki locally