mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge pull request #1252 from delta1/lint
lint: fix codespell and python utf8 encoding lint issues (redux)
This commit is contained in:
commit
f20016d1ab
3 changed files with 4 additions and 2 deletions
|
|
@ -2023,7 +2023,7 @@ void PeerManagerImpl::ProcessHeadersMessage(CNode& pfrom, const Peer& peer,
|
|||
if ((nodestate->pindexBestKnownBlock == nullptr) ||
|
||||
(nodestate->pindexBestKnownBlock->nHeight < m_chainman.ActiveHeight())) {
|
||||
// Our notion of what blocks a peer has available is based on its pindexBestKnownBlock,
|
||||
// which is based on headers recieved from it. If we don't have one, or it's too old,
|
||||
// which is based on headers received from it. If we don't have one, or it's too old,
|
||||
// then we can never get blocks from this peer until we accept headers from it first.
|
||||
LogPrint(BCLog::NET, "NOT discarding headers from peer=%d, to update its block availability. (current best header %d, active chain height %d)\n", pfrom.GetId(), pindexBestHeader->nHeight, m_chainman.ActiveHeight());
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
export LC_ALL=C
|
||||
EXIT_CODE=0
|
||||
OUTPUT=$(git grep " open(" -- "*.py" ":(exclude)src/crc32c/" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
|
||||
OUTPUT=$(git grep " open(" -- "*.py" ":(exclude)src/crc32c/" ":(exclude)src/secp256k1/" | grep -vE "encoding=.(ascii|utf8|utf-8)." | grep -vE "open\([^,]*, ['\"][^'\"]*b[^'\"]*['\"]")
|
||||
if [[ ${OUTPUT} != "" ]]; then
|
||||
echo "Python's open(...) seems to be used to open text files without explicitly"
|
||||
echo "specifying encoding=\"utf8\":"
|
||||
|
|
|
|||
|
|
@ -17,3 +17,5 @@ useable
|
|||
mut
|
||||
wit
|
||||
te
|
||||
ligh
|
||||
atack
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue