mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Compare commits
6 commits
73bad116b3
...
5f55ce21dd
Author | SHA1 | Date | |
---|---|---|---|
|
5f55ce21dd | ||
|
c5e44a0435 | ||
|
32d55e28af | ||
|
bda7626e98 | ||
|
2f04eff3e9 | ||
|
45bfd97ec7 |
10 changed files with 59 additions and 11 deletions
|
@ -145,7 +145,7 @@ if [ "$RUN_UNIT_TESTS" = "true" ]; then
|
|||
fi
|
||||
|
||||
if [ "$RUN_UNIT_TESTS_SEQUENTIAL" = "true" ]; then
|
||||
DIR_UNIT_TEST_DATA="${DIR_UNIT_TEST_DATA}" LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" "${BASE_OUTDIR}"/bin/test_bitcoin --catch_system_errors=no -l test_suite
|
||||
DIR_UNIT_TEST_DATA="${DIR_UNIT_TEST_DATA}" LD_LIBRARY_PATH="${DEPENDS_DIR}/${HOST}/lib" "${BASE_OUTDIR}"/libexec/test_bitcoin --catch_system_errors=no -l test_suite
|
||||
fi
|
||||
|
||||
if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
|
||||
|
|
|
@ -8,13 +8,18 @@ include(GNUInstallDirs)
|
|||
function(install_binary_component component)
|
||||
cmake_parse_arguments(PARSE_ARGV 1
|
||||
IC # prefix
|
||||
"HAS_MANPAGE" # options
|
||||
"HAS_MANPAGE;INTERNAL" # options
|
||||
"" # one_value_keywords
|
||||
"" # multi_value_keywords
|
||||
)
|
||||
set(target_name ${component})
|
||||
if(IC_INTERNAL)
|
||||
set(runtime_dest ${CMAKE_INSTALL_LIBEXECDIR})
|
||||
else()
|
||||
set(runtime_dest ${CMAKE_INSTALL_BINDIR})
|
||||
endif()
|
||||
install(TARGETS ${target_name}
|
||||
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||
RUNTIME DESTINATION ${runtime_dest}
|
||||
COMPONENT ${component}
|
||||
)
|
||||
if(INSTALL_MAN AND IC_HAS_MANPAGE)
|
||||
|
|
35
doc/files.md
35
doc/files.md
|
@ -16,7 +16,7 @@
|
|||
|
||||
- [Legacy subdirectories and files](#legacy-subdirectories-and-files)
|
||||
|
||||
- [Notes](#notes)
|
||||
- [Installed Files](#installed-files)
|
||||
|
||||
## Data directory location
|
||||
|
||||
|
@ -123,8 +123,39 @@ Path | Description | Repository notes
|
|||
`addr.dat` | Peer IP address BDB database; replaced by `peers.dat` in [0.7.0](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.7.0.md) | [PR #1198](https://github.com/bitcoin/bitcoin/pull/1198), [`928d3a01`](https://github.com/bitcoin/bitcoin/commit/928d3a011cc66c7f907c4d053f674ea77dc611cc)
|
||||
`onion_private_key` | Cached Tor onion service private key for `-listenonion` option. Was used for Tor v2 services; replaced by `onion_v3_private_key` in [0.21.0](https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.21.0.md) | [PR #19954](https://github.com/bitcoin/bitcoin/pull/19954)
|
||||
|
||||
## Notes
|
||||
### Notes
|
||||
|
||||
<a name="note1">1</a>. The `/` (slash, U+002F) is used as the platform-independent path component separator in this document.
|
||||
|
||||
<a name="note2">2</a>. `NNNNN` matches `[0-9]{5}` regex.
|
||||
|
||||
## Installed Files
|
||||
|
||||
This table describes the files installed by Bitcoin across different platforms.
|
||||
|
||||
| **Path** | **Description** |
|
||||
|----------|-----------------|
|
||||
| [README.md](README.md) or [readme.txt](README_windows.txt) | Project information and instructions |
|
||||
| bitcoin.conf | [Generated](../contrib/devtools/gen-bitcoin-conf.sh) configuration file |
|
||||
| bin/bitcoin-cli | Command-line tool to interact with the Bitcoin node over RPC |
|
||||
| bin/bitcoin-qt | Bitcoin node and wallet GUI |
|
||||
| bin/bitcoin-tx | Tool for creating and modifying transactions |
|
||||
| bin/bitcoin-util | Miscellaneous utilities |
|
||||
| bin/bitcoin-wallet | Bitcoin wallet tool |
|
||||
| bin/bitcoind | Bitcoin node and wallet daemon |
|
||||
| *lib/libbitcoinkernel.so* | Shared library containing core consensus and validation code |
|
||||
| *lib/pkgconfig/libbitcoinkernel.pc* | Pkg-config metadata for linking to `libbitcoinkernel` |
|
||||
| *libexec/bench_bitcoin* | Benchmarking tool for measuring node performance |
|
||||
| *libexec/bitcoin-chainstate* | Tool to validate and connect blocks |
|
||||
| *libexec/bitcoin-gui* | IPC-enabled alternative to `bitcoin-qt` |
|
||||
| *libexec/bitcoin-node* | IPC-enabled alternative to `bitcoind` |
|
||||
| libexec/test_bitcoin | Unit test binary |
|
||||
| *libexec/test_bitcoin-qt* | GUI-specific unit tests |
|
||||
| share/man/man1/ | Man pages for command-line tools like `bitcoin-cli`, `bitcoind`, and others |
|
||||
| share/rpcauth/ | Documentation and scripts for RPC authentication setup |
|
||||
|
||||
### Notes
|
||||
|
||||
- *Italicized* files are installed in source builds but not included in binary releases.
|
||||
- README and bitcoin.conf files included in binary releases but not installed in source builds.
|
||||
- On Windows, binaries have a `.exe` suffix (e.g., `bitcoin-cli.exe`).
|
||||
|
|
11
doc/release-notes-31679.md
Normal file
11
doc/release-notes-31679.md
Normal file
|
@ -0,0 +1,11 @@
|
|||
Install changes
|
||||
---------------
|
||||
|
||||
The `test_bitcoin`, `test_bitcoin-qt`, `bench_bitcoin`, `bitcoin-chainstate`,
|
||||
`bitcoin-node`, and `bitcoin-wallet` binaries are now installed in
|
||||
`$PREFIX/libexec` rather than `$PREFIX/bin`. If you are using a binary release
|
||||
or building from source with default build options, most of these programs are
|
||||
not built by default anyway so these changes may not be noticable.
|
||||
|
||||
Goal of this change is to organize binaries better and not add binaries that
|
||||
rarely need to be executed directly on the system PATH.
|
|
@ -357,7 +357,7 @@ if(ENABLE_IPC AND BUILD_DAEMON)
|
|||
bitcoin_ipc
|
||||
$<TARGET_NAME_IF_EXISTS:bitcoin_wallet>
|
||||
)
|
||||
install_binary_component(bitcoin-node)
|
||||
install_binary_component(bitcoin-node INTERNAL)
|
||||
endif()
|
||||
|
||||
if(ENABLE_IPC AND BUILD_TESTS)
|
||||
|
@ -456,6 +456,7 @@ if(BUILD_UTIL_CHAINSTATE)
|
|||
core_interface
|
||||
bitcoinkernel
|
||||
)
|
||||
install_binary_component(bitcoin-chainstate INTERNAL)
|
||||
endif()
|
||||
|
||||
|
||||
|
|
|
@ -83,4 +83,4 @@ add_test(NAME bench_sanity_check
|
|||
COMMAND bench_bitcoin -sanity-check
|
||||
)
|
||||
|
||||
install_binary_component(bench_bitcoin)
|
||||
install_binary_component(bench_bitcoin INTERNAL)
|
||||
|
|
|
@ -281,7 +281,7 @@ if(ENABLE_IPC)
|
|||
bitcoin_ipc
|
||||
)
|
||||
import_plugins(bitcoin-gui)
|
||||
install_binary_component(bitcoin-gui)
|
||||
install_binary_component(bitcoin-gui INTERNAL)
|
||||
if(WIN32)
|
||||
set_target_properties(bitcoin-gui PROPERTIES WIN32_EXECUTABLE TRUE)
|
||||
endif()
|
||||
|
|
|
@ -45,4 +45,4 @@ if(WIN32 AND VCPKG_TARGET_TRIPLET)
|
|||
)
|
||||
endif()
|
||||
|
||||
install_binary_component(test_bitcoin-qt)
|
||||
install_binary_component(test_bitcoin-qt INTERNAL)
|
||||
|
|
|
@ -210,4 +210,4 @@ endfunction()
|
|||
|
||||
add_all_test_targets()
|
||||
|
||||
install_binary_component(test_bitcoin)
|
||||
install_binary_component(test_bitcoin INTERNAL)
|
||||
|
|
|
@ -87,7 +87,7 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
|
|||
# 0.21.x and 22.x would both produce bad derivation paths when topping up an inactive hd chain
|
||||
# Make sure that this is being automatically cleaned up by migration
|
||||
node_master = self.nodes[1]
|
||||
node_v22 = self.nodes[self.num_nodes - 5]
|
||||
node_v22 = self.nodes[self.num_nodes - 3]
|
||||
wallet_name = "bad_deriv_path"
|
||||
node_v22.createwallet(wallet_name=wallet_name, descriptors=False)
|
||||
bad_deriv_wallet = node_v22.get_wallet_rpc(wallet_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue