Skip to content

Commit 568fcdd

Browse files
committed
scripted-diff: Adjust documentation per top-level target output location
-BEGIN VERIFY SCRIPT- ren() { sed -i "s|\<$1\>|$2|g" $( git grep -l "$1" :\(exclude\)./src/secp256k1 ) ; } ren build/src/bench build/bin ren build/src/test build/bin ren build/src/qt/test build/bin ren build/src/qt build/bin ren build/src build/bin ren build_fuzz/src/test/fuzz build_fuzz/bin -END VERIFY SCRIPT-
1 parent 026bb22 commit 568fcdd

18 files changed

+100
-100
lines changed

contrib/signet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@ miner
2424
You will first need to pick a difficulty target. Since signet chains are primarily protected by a signature rather than proof of work, there is no need to spend as much energy as possible mining, however you may wish to choose to spend more time than the absolute minimum. The calibrate subcommand can be used to pick a target appropriate for your hardware, eg:
2525

2626
MINER="./contrib/signet/miner"
27-
GRIND="./build/src/bitcoin-util grind"
27+
GRIND="./build/bin/bitcoin-util grind"
2828
$MINER calibrate --grind-cmd="$GRIND"
2929
nbits=1e00f403 for 25s average mining time
3030

3131
It defaults to estimating an nbits value resulting in 25s average time to find a block, but the --seconds parameter can be used to pick a different target, or the --nbits parameter can be used to estimate how long it will take for a given difficulty.
3232

3333
To mine the first block in your custom chain, you can run:
3434

35-
CLI="./build/src/bitcoin-cli -conf=mysignet.conf"
35+
CLI="./build/bin/bitcoin-cli -conf=mysignet.conf"
3636
ADDR=$($CLI -signet getnewaddress)
3737
NBITS=1e00f403
3838
$MINER --cli="$CLI" generate --grind-cmd="$GRIND" --address="$ADDR" --nbits=$NBITS

contrib/tracing/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ In a different terminal, starting Bitcoin Core in SigNet mode and with
188188
re-indexing enabled.
189189

190190
```
191-
$ ./build/src/bitcoind -signet -reindex
191+
$ ./build/bin/bitcoind -signet -reindex
192192
```
193193

194194
This produces the following output.

contrib/tracing/connectblock_benchmark.bt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
This script requires a 'bitcoind' binary compiled with eBPF support and the
1818
'validation:block_connected' USDT. By default, it's assumed that 'bitcoind' is
19-
located in './build/src/bitcoind'. This can be modified in the script below.
19+
located in './build/bin/bitcoind'. This can be modified in the script below.
2020

2121
EXAMPLES:
2222

@@ -67,7 +67,7 @@ BEGIN
6767
connected block is between the start and end height (or the end height is
6868
unset).
6969
*/
70-
usdt:./build/src/bitcoind:validation:block_connected /arg1 >= $1 && (arg1 <= $2 || $2 == 0 )/
70+
usdt:./build/bin/bitcoind:validation:block_connected /arg1 >= $1 && (arg1 <= $2 || $2 == 0 )/
7171
{
7272
$height = arg1;
7373
$transactions = arg2;
@@ -102,7 +102,7 @@ usdt:./build/src/bitcoind:validation:block_connected /arg1 >= $1 && (arg1 <= $2
102102
blocks where the time it took to connect the block is above the
103103
<logging threshold in ms>.
104104
*/
105-
usdt:./build/src/bitcoind:validation:block_connected / (uint64) arg5 / 1e6 > $3 /
105+
usdt:./build/bin/bitcoind:validation:block_connected / (uint64) arg5 / 1e6 > $3 /
106106
{
107107
$hash = arg0;
108108
$height = (int32) arg1;

contrib/tracing/log_p2p_connections.bt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BEGIN
55
printf("Logging opened, closed, misbehaving, and evicted P2P connections\n")
66
}
77

8-
usdt:./build/src/bitcoind:net:inbound_connection
8+
usdt:./build/bin/bitcoind:net:inbound_connection
99
{
1010
$id = (int64) arg0;
1111
$addr = str(arg1);
@@ -15,7 +15,7 @@ usdt:./build/src/bitcoind:net:inbound_connection
1515
printf("INBOUND conn from %s: id=%ld, type=%s, network=%d, total=%d\n", $addr, $id, $conn_type, $network, $existing);
1616
}
1717

18-
usdt:./build/src/bitcoind:net:outbound_connection
18+
usdt:./build/bin/bitcoind:net:outbound_connection
1919
{
2020
$id = (int64) arg0;
2121
$addr = str(arg1);
@@ -25,7 +25,7 @@ usdt:./build/src/bitcoind:net:outbound_connection
2525
printf("OUTBOUND conn to %s: id=%ld, type=%s, network=%d, total=%d\n", $addr, $id, $conn_type, $network, $existing);
2626
}
2727

28-
usdt:./build/src/bitcoind:net:closed_connection
28+
usdt:./build/bin/bitcoind:net:closed_connection
2929
{
3030
$id = (int64) arg0;
3131
$addr = str(arg1);
@@ -34,7 +34,7 @@ usdt:./build/src/bitcoind:net:closed_connection
3434
printf("CLOSED conn to %s: id=%ld, type=%s, network=%d, established=%ld\n", $addr, $id, $conn_type, $network, arg4);
3535
}
3636

37-
usdt:./build/src/bitcoind:net:evicted_inbound_connection
37+
usdt:./build/bin/bitcoind:net:evicted_inbound_connection
3838
{
3939
$id = (int64) arg0;
4040
$addr = str(arg1);
@@ -43,7 +43,7 @@ usdt:./build/src/bitcoind:net:evicted_inbound_connection
4343
printf("EVICTED conn to %s: id=%ld, type=%s, network=%d, established=%ld\n", $addr, $id, $conn_type, $network, arg4);
4444
}
4545

46-
usdt:./build/src/bitcoind:net:misbehaving_connection
46+
usdt:./build/bin/bitcoind:net:misbehaving_connection
4747
{
4848
$id = (int64) arg0;
4949
$message = str(arg1);

contrib/tracing/log_p2p_traffic.bt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BEGIN
55
printf("Logging P2P traffic\n")
66
}
77

8-
usdt:./build/src/bitcoind:net:inbound_message
8+
usdt:./build/bin/bitcoind:net:inbound_message
99
{
1010
$peer_id = (int64) arg0;
1111
$peer_addr = str(arg1);
@@ -15,7 +15,7 @@ usdt:./build/src/bitcoind:net:inbound_message
1515
printf("inbound '%s' msg from peer %d (%s, %s) with %d bytes\n", $msg_type, $peer_id, $peer_type, $peer_addr, $msg_len);
1616
}
1717

18-
usdt:./build/src/bitcoind:net:outbound_message
18+
usdt:./build/bin/bitcoind:net:outbound_message
1919
{
2020
$peer_id = (int64) arg0;
2121
$peer_addr = str(arg1);

contrib/tracing/log_utxos.bt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
This script requires a 'bitcoind' binary compiled with eBPF support and the
1010
'utxocache' tracepoints. By default, it's assumed that 'bitcoind' is
11-
located in './build/src/bitcoind'. This can be modified in the script below.
11+
located in './build/bin/bitcoind'. This can be modified in the script below.
1212

1313
NOTE: requires bpftrace v0.12.0 or above.
1414
*/
@@ -22,7 +22,7 @@ BEGIN
2222
/*
2323
Attaches to the 'utxocache:add' tracepoint and prints additions to the UTXO set cache.
2424
*/
25-
usdt:./build/src/bitcoind:utxocache:add
25+
usdt:./build/bin/bitcoind:utxocache:add
2626
{
2727
$txid = arg0;
2828
$index = (uint32)arg1;
@@ -44,7 +44,7 @@ usdt:./build/src/bitcoind:utxocache:add
4444
/*
4545
Attaches to the 'utxocache:spent' tracepoint and prints spents from the UTXO set cache.
4646
*/
47-
usdt:./build/src/bitcoind:utxocache:spent
47+
usdt:./build/bin/bitcoind:utxocache:spent
4848
{
4949
$txid = arg0;
5050
$index = (uint32)arg1;
@@ -66,7 +66,7 @@ usdt:./build/src/bitcoind:utxocache:spent
6666
/*
6767
Attaches to the 'utxocache:uncache' tracepoint and uncache UTXOs from the UTXO set cache.
6868
*/
69-
usdt:./build/src/bitcoind:utxocache:uncache
69+
usdt:./build/bin/bitcoind:utxocache:uncache
7070
{
7171
$txid = arg0;
7272
$index = (uint32)arg1;

contrib/valgrind.supp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# dependencies that cannot be fixed in-tree.
33
#
44
# Example use:
5-
# $ valgrind --suppressions=contrib/valgrind.supp build/src/test/test_bitcoin
5+
# $ valgrind --suppressions=contrib/valgrind.supp build/bin/test_bitcoin
66
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
7-
# --show-leak-kinds=all build/src/test/test_bitcoin
7+
# --show-leak-kinds=all build/bin/test_bitcoin
88
#
99
# To create suppressions for found issues, use the --gen-suppressions=all option:
1010
# $ valgrind --suppressions=contrib/valgrind.supp --leak-check=full \
1111
# --show-leak-kinds=all --gen-suppressions=all --show-reachable=yes \
12-
# --error-limit=no build/src/test/test_bitcoin
12+
# --error-limit=no build/bin/test_bitcoin
1313
#
1414
# Note that suppressions may depend on OS and/or library versions.
1515
# Tested on:

doc/benchmarking.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ and lock analysis.
1818

1919
After compiling bitcoin-core, the benchmarks can be run with:
2020

21-
build/src/bench/bench_bitcoin
21+
build/bin/bench_bitcoin
2222

2323
The output will look similar to:
2424
```
@@ -40,7 +40,7 @@ The output will look similar to:
4040
Help
4141
---------------------
4242

43-
build/src/bench/bench_bitcoin -h
43+
build/bin/bench_bitcoin -h
4444

4545
To print the various options, like listing the benchmarks without running them
4646
or using a regex filter to only run certain benchmarks.

doc/build-osx.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ cmake --build build --target deploy
199199

200200
## Running Bitcoin Core
201201

202-
Bitcoin Core should now be available at `./build/src/bitcoind`.
203-
If you compiled support for the GUI, it should be available at `./build/src/qt/bitcoin-qt`.
202+
Bitcoin Core should now be available at `./build/bin/bitcoind`.
203+
If you compiled support for the GUI, it should be available at `./build/bin/bitcoin-qt`.
204204

205205
The first time you run `bitcoind` or `bitcoin-qt`, it will start downloading the blockchain.
206206
This process could take many hours, or even days on slower than average systems.
@@ -230,8 +230,8 @@ tail -f $HOME/Library/Application\ Support/Bitcoin/debug.log
230230
## Other commands:
231231

232232
```shell
233-
./build/src/bitcoind -daemon # Starts the bitcoin daemon.
234-
./build/src/bitcoin-cli --help # Outputs a list of command-line options.
235-
./build/src/bitcoin-cli help # Outputs a list of RPC commands when the daemon is running.
236-
./build/src/qt/bitcoin-qt -server # Starts the bitcoin-qt server mode, allows bitcoin-cli control
233+
./build/bin/bitcoind -daemon # Starts the bitcoin daemon.
234+
./build/bin/bitcoin-cli --help # Outputs a list of command-line options.
235+
./build/bin/bitcoin-cli help # Outputs a list of RPC commands when the daemon is running.
236+
./build/bin/bitcoin-qt -server # Starts the bitcoin-qt server mode, allows bitcoin-cli control
237237
```

doc/build-unix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,6 @@ This example lists the steps necessary to setup and build a command line only di
188188
cmake -B build
189189
cmake --build build
190190
ctest --test-dir build
191-
./build/src/bitcoind
191+
./build/bin/bitcoind
192192

193193
If you intend to work with legacy Berkeley DB wallets, see [Berkeley DB](#berkeley-db) section.

0 commit comments

Comments
 (0)