Skip to content

Commit bd2dbdc

Browse files
committed
Fix: linter errors
1 parent 0ee8558 commit bd2dbdc

189 files changed

Lines changed: 84 additions & 30883 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ci/test/03_test_script.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ fi
124124
# === CMake build (modern path used by the fork) ===
125125
if [ -n "$NO_DEPENDS" ]; then
126126
echo "Building with CMake (NO_DEPENDS=1)..."
127-
cmake -B build -S . ${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} $BITCOIN_CONFIG_ALL
127+
cmake -B build -S . ${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} "$BITCOIN_CONFIG_ALL"
128128
else
129129
# depends path (still uses configure in some jobs)
130130
./autogen.sh
131-
./configure $BITCOIN_CONFIG_ALL
131+
./configure "$BITCOIN_CONFIG_ALL"
132132
fi
133133

134134
cmake --build build --config Release --parallel "$MAKEJOBS"
@@ -159,12 +159,12 @@ cd "${BASE_BUILD_DIR}/elements-$HOST"
159159

160160
bash -c "./configure --cache-file=../config.cache $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG" || ( (cat config.log) && false)
161161

162-
# ELEMENTS FIXME: fix fix in order to correctly run it #30454
162+
# ELEMENTS FIXME: fix fix in order to correctly run it #30454
163163
# # Folder where the build is done.
164164
# BASE_BUILD_DIR=${BASE_BUILD_DIR:-$BASE_SCRATCH_DIR/build-$HOST}
165165
# mkdir -p "${BASE_BUILD_DIR}"
166166
# cd "${BASE_BUILD_DIR}"
167-
#
167+
#
168168
# BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DENABLE_EXTERNAL_SIGNER=ON -DCMAKE_INSTALL_PREFIX=$BASE_OUTDIR"
169169

170170

contrib/devtools/deterministic-fuzz-coverage/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ fn deterministic_coverage(
165165
.success();
166166
if !same {
167167
eprintln!();
168-
eprintln!("The coverage was not determinstic between runs.");
168+
eprintln!("The coverage was not deterministic between runs.");
169169
eprintln!("{}", err);
170170
eprintln!("Exiting.");
171171
exit(1);

contrib/merge-prs.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PR_PREFIX="bitcoin/bitcoin"
2323
# Set your git worktree location here. This is where the merges will be done, and where you should checkout the merged-master branch.
2424
WORKTREE="/home/byron/code/elements-worktree"
2525

26-
# Set your parallellism during build/test. You probably want as many cores as possible.
26+
# Set your parallelism during build/test. You probably want as many cores as possible.
2727
# Parallel functional tests can somewhat exceed your core count, depends on the build machine CPU/RAM.
2828
PARALLEL_BUILD=23 # passed to make -j
2929
PARALLEL_TEST=46 # passed to test_runner.py --jobs
@@ -142,7 +142,7 @@ echo start > merge.log
142142

143143
quietly () {
144144
if [[ "$VERBOSE" == "1" ]]; then
145-
date | tee --append merge.log
145+
date | tee --append merge.log
146146
time "$@" 2>&1 | tee --append merge.log
147147
else
148148
chronic "$@"
@@ -158,7 +158,7 @@ notify () {
158158
echo "$MESSAGE"
159159
fi
160160
if [[ "$2" == "1" ]]; then
161-
exit 1
161+
exit 1
162162
fi
163163
}
164164

@@ -170,7 +170,7 @@ do
170170
CHAIN=$(echo "$line" | cut -d ' ' -f 4)
171171
PR_ID=$(echo "$line" | grep -o -P "#\d+")
172172

173-
GIT_HEAD=$(git rev-parse HEAD)
173+
GIT_HEAD=$(git rev-parse HEAD)
174174

175175
## Do it
176176
if [[ "$1" == "list-only" ]]; then
@@ -207,13 +207,13 @@ do
207207
)
208208
for STOPPER in "${STOPPERS[@]}"
209209
do
210-
if [[ "$PR_ID" == *"$STOPPER"* ]]; then
211-
echo "Found $STOPPER in $PR_ID! Exiting."
212-
notify "hit stopper, exiting"
213-
exit 1
214-
else
215-
echo "Didn't find $STOPPER in $PR_ID. Continuing."
216-
fi
210+
if [[ "$PR_ID" == *"$STOPPER"* ]]; then
211+
echo "Found $STOPPER in $PR_ID! Exiting."
212+
notify "hit stopper, exiting"
213+
exit 1
214+
else
215+
echo "Didn't find $STOPPER in $PR_ID. Continuing."
216+
fi
217217
done
218218

219219
if [[ "$SKIP_MERGE" == "1" ]]; then

src/bench/mempool_eviction.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <memory>
1919
#include <vector>
2020

21-
#include <primitives/transaction.h>
22-
2321
static void AddTx(const CTransactionRef& tx, const CAmount& nFee, CTxMemPool& pool) EXCLUSIVE_LOCKS_REQUIRED(cs_main, pool.cs)
2422
{
2523
int64_t nTime = 0;

src/chainparams.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
#include <util/moneystr.h>
2323
#include <util/strencodings.h>
2424
#include <util/string.h>
25-
#include <crypto/sha256.h>
2625

2726
#include <cassert>
2827
#include <cstdint>
2928
#include <limits>
3029
#include <stdexcept>
3130
#include <vector>
31+
#include <bitcoin-build-config.h> // IWYU pragma: keep
3232

3333
using util::SplitString;
3434

src/chainparamsbase.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <util/chaintype.h>
1515

1616
#include <assert.h>
17+
#include <bitcoin-build-config.h> // IWYU pragma: keep
1718

1819
void SetupChainParamsBaseOptions(ArgsManager& argsman)
1920
{

src/chainparamsbase.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <cstdint>
99
#include <util/chaintype.h>
1010

11-
#include <cstdint>
1211
#include <memory>
1312
#include <string>
1413

src/common/args.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include <string>
4040
#include <utility>
4141
#include <variant>
42+
#include <bitcoin-build-config.h> // IWYU pragma: keep
4243

4344
#ifdef LIQUID
4445
const char * const BITCOIN_CONF_FILENAME = "liquid.conf";

src/confidential_validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ std::optional<std::pair<ScriptError, std::string>> CSurjectionCheck::operator()(
8686
error = SCRIPT_ERR_SURJECTION;
8787
return std::make_pair(error, std::move(debug_str));
8888
}
89-
89+
9090
return std::nullopt;
9191
}
9292

src/init.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
983983
if (chain.chain_type == ChainType::TESTNET) {
984984
LogInfo("Warning: Support for testnet3 is deprecated and will be removed in an upcoming release. Consider switching to testnet4.\n");
985985
}
986-
986+
987987
if (!fs::is_directory(args.GetBlocksDirPath())) {
988988
return InitError(strprintf(_("Specified blocks directory \"%s\" does not exist."), args.GetArg("-blocksdir", "")));
989989
}
@@ -1146,7 +1146,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
11461146
} catch (const std::exception& e) {
11471147
return InitError(Untranslated(strprintf("Error in -assetdir: %s\n", e.what())));
11481148
}
1149-
1149+
11501150
const std::vector<std::string> test_options = args.GetArgs("-test");
11511151
if (!test_options.empty()) {
11521152
if (chainparams.GetChainTypeMeta().chain_type != ChainType::REGTEST && chainparams.GetChainTypeMeta().chain_type != ChainType::CUSTOM) {
@@ -1515,7 +1515,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
15151515
node.scheduler = std::make_unique<CScheduler>();
15161516
assert(!node.reverification_scheduler);
15171517
node.reverification_scheduler = std::make_unique<CScheduler>();
1518-
1518+
15191519
auto& scheduler = *node.scheduler;
15201520

15211521
// Start the lightweight task scheduler thread
@@ -1572,7 +1572,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
15721572

15731573
// ELEMENTS:
15741574
policyAsset = CAsset(uint256S(gArgs.GetArg("-feeasset", chainparams.GetConsensus().pegged_asset.GetHex())));
1575-
1575+
15761576
// Check port numbers
15771577
if (!CheckHostPortOptions(args)) return false;
15781578

0 commit comments

Comments
 (0)