Skip to content

How to Initialize

Eric Voskuil edited this page May 12, 2016 · 19 revisions

Execute the following command initialize the blockchain directory structure.

$ bs --initchain

The following files will be created in the blockchain directory.

  • blocks_lookup
  • blocks_rows
  • history_lookup
  • history_rows
  • spends
  • stealth_index
  • stealth_rows
  • txs

The file db-lock may also appear in the directory after server startup. The presence of this file does not indicate an active lock. When a node or server starts it gains cooperative exclusive access to the database by using this file as a inter-process mutex. The file may be deleted when the database is closed, without consequence.

Use the node.blockchain_path configuration setting to specify the blockchain location.

The --initchain command will fail if the blockchain directory already exists.

To replace the blockchain either delete the directory or move the configured location.

Clone this wiki locally