mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
trivial/lint: tweak lint-spelling.sh
and fix typos (#4802)
* lint: exclude 3-rd party libs from spell-checks * trivial: fix typos
This commit is contained in:
parent
7fc9ced96d
commit
40c320cad8
@ -210,7 +210,7 @@ public:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute a callback on all masternodes in the mnList. This will pass a reference
|
* Execute a callback on all masternodes in the mnList. This will pass a reference
|
||||||
* of each masternode to the callback function. This should be prefered over ForEachMNShared.
|
* of each masternode to the callback function. This should be preferred over ForEachMNShared.
|
||||||
* @param onlyValid Run on all masternodes, or only "valid" (not banned) masternodes
|
* @param onlyValid Run on all masternodes, or only "valid" (not banned) masternodes
|
||||||
* @param cb callback to execute
|
* @param cb callback to execute
|
||||||
*/
|
*/
|
||||||
|
@ -65,9 +65,9 @@ std::vector<CDeterministicMNCPtr> CLLMQUtils::GetAllQuorumMembers(Consensus::LLM
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Quorums created with rotation are now created in a different way. All signingActiveQuorumCount are created during the period of dkgInterval.
|
* Quorums created with rotation are now created in a different way. All signingActiveQuorumCount are created during the period of dkgInterval.
|
||||||
* But they are not created exactly in the same block, they are spreaded overtime: one quorum in each block until all signingActiveQuorumCount are created.
|
* But they are not created exactly in the same block, they are spread overtime: one quorum in each block until all signingActiveQuorumCount are created.
|
||||||
* The new concept of quorumIndex is introduced in order to identify them.
|
* The new concept of quorumIndex is introduced in order to identify them.
|
||||||
* In every dkgInterval blocks (also called CycleQuorumBaseBlock), the spreaded quorum creation starts like this:
|
* In every dkgInterval blocks (also called CycleQuorumBaseBlock), the spread quorum creation starts like this:
|
||||||
* For quorumIndex = 0 : signingActiveQuorumCount
|
* For quorumIndex = 0 : signingActiveQuorumCount
|
||||||
* Quorum Q with quorumIndex is created at height CycleQuorumBaseBlock + quorumIndex
|
* Quorum Q with quorumIndex is created at height CycleQuorumBaseBlock + quorumIndex
|
||||||
*/
|
*/
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="filterLineEdit">
|
<widget class="QLineEdit" name="filterLineEdit">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Filter propsal list</string>
|
<string>Filter proposal list</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
@ -191,7 +191,7 @@ static bool getScriptFromDescriptor(const std::string& descriptor, CScript& scri
|
|||||||
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Cannot derive script without private keys"));
|
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, strprintf("Cannot derive script without private keys"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Combo desriptors can have 2 or 4 scripts, so we can't just check scripts.size() == 1
|
// Combo descriptors can have 2 or 4 scripts, so we can't just check scripts.size() == 1
|
||||||
CHECK_NONFATAL(scripts.size() > 0 && scripts.size() <= 4);
|
CHECK_NONFATAL(scripts.size() > 0 && scripts.size() <= 4);
|
||||||
|
|
||||||
if (scripts.size() == 1) {
|
if (scripts.size() == 1) {
|
||||||
|
@ -128,7 +128,7 @@ void DoCheck(const std::string& prv, const std::string& pub, int flags, const st
|
|||||||
// When the descriptor is hardened, evaluate with access to the private keys inside.
|
// When the descriptor is hardened, evaluate with access to the private keys inside.
|
||||||
const FlatSigningProvider& key_provider = (flags & HARDENED) ? keys_priv : keys_pub;
|
const FlatSigningProvider& key_provider = (flags & HARDENED) ? keys_priv : keys_pub;
|
||||||
|
|
||||||
// Evaluate the descriptor selected by `t` in poisition `i`.
|
// Evaluate the descriptor selected by `t` in position `i`.
|
||||||
FlatSigningProvider script_provider, script_provider_cached;
|
FlatSigningProvider script_provider, script_provider_cached;
|
||||||
std::vector<CScript> spks, spks_cached;
|
std::vector<CScript> spks, spks_cached;
|
||||||
std::vector<unsigned char> cache;
|
std::vector<unsigned char> cache;
|
||||||
|
@ -640,7 +640,7 @@ class ImportMultiTest(BitcoinTestFramework):
|
|||||||
assert_equal(addr2, newaddr2)
|
assert_equal(addr2, newaddr2)
|
||||||
|
|
||||||
# Import a multisig and make sure the keys don't go into the keypool
|
# Import a multisig and make sure the keys don't go into the keypool
|
||||||
self.log.info('Imported scripts with pubkeys shoud not have their pubkeys go into the keypool')
|
self.log.info('Imported scripts with pubkeys should not have their pubkeys go into the keypool')
|
||||||
addr1 = self.nodes[0].getnewaddress()
|
addr1 = self.nodes[0].getnewaddress()
|
||||||
addr2 = self.nodes[0].getnewaddress()
|
addr2 = self.nodes[0].getnewaddress()
|
||||||
pub1 = self.nodes[0].getaddressinfo(addr1)['pubkey']
|
pub1 = self.nodes[0].getaddressinfo(addr1)['pubkey']
|
||||||
|
@ -15,6 +15,6 @@ if ! command -v codespell > /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
IGNORE_WORDS_FILE=test/lint/lint-spelling.ignore-words.txt
|
IGNORE_WORDS_FILE=test/lint/lint-spelling.ignore-words.txt
|
||||||
if ! codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=${IGNORE_WORDS_FILE} $(git ls-files -- ":(exclude)build-aux/m4/" ":(exclude)contrib/seeds/*.txt" ":(exclude)depends/" ":(exclude)doc/release-notes/" ":(exclude)src/crypto/" ":(exclude)src/leveldb/" ":(exclude)src/qt/locale/" ":(exclude)src/qt/*.qrc" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/"); then
|
if ! codespell --check-filenames --disable-colors --quiet-level=7 --ignore-words=${IGNORE_WORDS_FILE} $(git ls-files -- ":(exclude)build-aux/m4/" ":(exclude)contrib/seeds/*.txt" ":(exclude)depends/" ":(exclude)doc/release-notes/" ":(exclude)src/bip39_english.h" ":(exclude)src/crc32c/" ":(exclude)src/crypto/" ":(exclude)src/ctpl_stl.h" ":(exclude)src/cxxtimer.hpp" ":(exclude)src/leveldb/" ":(exclude)src/qt/locale/" ":(exclude)src/qt/*.qrc" ":(exclude)src/secp256k1/" ":(exclude)src/univalue/"); then
|
||||||
echo "^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in ${IGNORE_WORDS_FILE}"
|
echo "^ Warning: codespell identified likely spelling errors. Any false positives? Add them to the list of ignored words in ${IGNORE_WORDS_FILE}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user