Skip to content

Commit 62b74ed

Browse files
committed
lint: fixes
1 parent b20ab1c commit 62b74ed

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

contrib/merge-prs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ do
135135
PR_ID_ALT=$(echo "$line" | cut -d ' ' -f 8 | tr -d :)
136136

137137
if [[ "$PR_ID" == "pull" ]]; then
138-
PR_ID="${PR_ID_ALT}"
138+
PR_ID="${PR_ID_ALT}"
139139
fi
140140
echo -e "$CHAIN PR \e[37m$PR_ID \e[33m$HASH\e[0m on \e[32m$DATE\e[0m "
141141

src/net_processing.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,7 @@ void PeerManagerImpl::UpdatePeerStateForReceivedHeaders(CNode& pfrom,
27182718
// This peer has too little work on their headers chain to help
27192719
// us sync -- disconnect if it is an outbound disconnection
27202720
// candidate.
2721-
// Note: We compare their tip to the minumum chain work (rather than
2721+
// Note: We compare their tip to the minimum chain work (rather than
27222722
// m_chainman.ActiveChain().Tip()) because we won't start block download
27232723
// until we have a headers chain that has at least
27242724
// the minimum chain work, even if a peer has a chain past our tip,
@@ -3954,7 +3954,7 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
39543954
// Note that if we were to be on a chain that forks from the checkpointed
39553955
// chain, then serving those headers to a peer that has seen the
39563956
// checkpointed chain would cause that peer to disconnect us. Requiring
3957-
// that our chainwork exceed the mimimum chain work is a protection against
3957+
// that our chainwork exceed the minimum chain work is a protection against
39583958
// being fed a bogus chain when we started up for the first time and
39593959
// getting partitioned off the honest network for serving that chain to
39603960
// others.

src/wallet/wallet.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
#include <blind.h>
5454
#include <issuance.h>
5555
#include <crypto/hmac_sha256.h>
56-
#include <random.h>
5756

5857
using interfaces::FoundBlock;
5958

test/functional/rpc_psbt.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@
1919
WITNESS_SCALE_FACTOR,
2020
ser_compact_size,
2121
)
22-
from test_framework.psbt import (
23-
PSBT,
22+
# from test_framework.psbt import (
23+
# PSBT,
2424
# PSBTMap,
2525
# PSBT_GLOBAL_UNSIGNED_TX,
2626
# PSBT_IN_RIPEMD160,
2727
# PSBT_IN_SHA256,
2828
# PSBT_IN_HASH160,
2929
# PSBT_IN_HASH256,
3030
# PSBT_IN_WITNESS_UTXO,
31-
PSBT_OUT_TAP_TREE,
32-
)
33-
from test_framework.script import CScript, OP_TRUE
31+
# PSBT_OUT_TAP_TREE,
32+
# )
33+
# from test_framework.script import CScript, OP_TRUE
3434
from test_framework.test_framework import BitcoinTestFramework
3535
from test_framework.util import (
3636
# assert_approx,

test/functional/rpc_scanblocks.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Test the scanblocks RPC call."""
6-
from test_framework.blockfilter import (
7-
bip158_basic_element_hash,
8-
bip158_relevant_scriptpubkeys,
9-
)
6+
# from test_framework.blockfilter import (
7+
# bip158_basic_element_hash,
8+
# bip158_relevant_scriptpubkeys,
9+
# )
1010
from test_framework.messages import COIN
1111
from test_framework.test_framework import BitcoinTestFramework
1212
from test_framework.util import (
@@ -81,9 +81,9 @@ def run_test(self):
8181
# finding a false-positive at runtime would take too long, hence we simply
8282
# use a pre-calculated one that collides with the regtest genesis block's
8383
# coinbase output and verify that their BIP158 ranged hashes match
84-
genesis_blockhash = node.getblockhash(0)
85-
genesis_spks = bip158_relevant_scriptpubkeys(node, genesis_blockhash)
8684
# ELEMENTS: FIXME
85+
# genesis_blockhash = node.getblockhash(0)
86+
# genesis_spks = bip158_relevant_scriptpubkeys(node, genesis_blockhash)
8787
# assert_equal(len(genesis_spks), 1)
8888
# genesis_coinbase_spk = list(genesis_spks)[0]
8989
# false_positive_spk = bytes.fromhex("001400000000000000000000000000000000000cadcb")

0 commit comments

Comments
 (0)