Skip to content

Latest commit

 

History

History
69 lines (44 loc) · 3.15 KB

files.md

File metadata and controls

69 lines (44 loc) · 3.15 KB

Bitcoin Core file system

Contents

Data directory location

The data directory is the default location where the Bitcoin Core files are stored.

  1. The default data directory paths for supported platforms are:
Platform Data directory path
Linux $HOME/.bitcoin/
macOS $HOME/Library/Application Support/Bitcoin/
Windows %LOCALAPPDATA%\Bitcoin\ [1]
  1. A custom data directory path can be specified with the -datadir option.

  2. All content of the data directory, except for bitcoin.conf file, is chain-specific. This means the actual data directory paths for non-mainnet cases differ:

Chain option Data directory path
-chain=main (default) path_to_datadir/
-chain=test or -testnet path_to_datadir/testnet3/
-chain=testnet4 or -testnet4 path_to_datadir/testnet4/
-chain=signet or -signet path_to_datadir/signet/
-chain=regtest or -regtest path_to_datadir/regtest/

Data directory layout

Subdirectory File(s) Description
./ sv2-debug.log Contains debug information and general logging generated by sv2-tp; can be specified by the -debuglogfile option
./ .lock Data directory lock file

Notes

1. The / (slash, U+002F) is used as the platform-independent path component separator in this document.

2. NNNNN matches [0-9]{5} regex.

Installed Files

This table describes the files installed by Bitcoin Core across different platforms.

Path Description
README.md Project information and instructions
sv2-tp.conf Generated configuration file
test_sv2 Unit test binary
share/man/man1/ Man pages for command-line tools like sv2-tp

Notes

  • Italicized files are only installed in source builds if relevant CMake options are enabled. They are not included in binary releases.
  • README and bitcoin.conf files are included in binary releases but not installed in source builds.
  • On Windows, binaries have a .exe suffix (e.g., bitcoin-cli.exe).