fix some warnings (#3886)

This commit is contained in:
Miran 2022-07-18 21:17:11 +02:00 committed by GitHub
parent 3dc04bc48f
commit 8ebd5a5fe8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 4 deletions

View File

@ -11,8 +11,6 @@
# protocol. See https://github.com/ethereum/consensus-specs/pull/2802
import
# Standard library
std/os,
# Status libraries
chronicles,
eth/db/kvstore_sqlite3,

View File

@ -290,7 +290,7 @@ proc keyboardCreatePassword(prompt: string,
"brute-force with automated tools. Please increase the " &
"variety of the user characters."
continue
elif password in mostCommonPasswords:
elif cstring(password) in mostCommonPasswords:
echoP "The entered password is too commonly used and it would be " &
"easy to brute-force with automated tools."
echo ""

View File

@ -1,6 +1,6 @@
import
std/os,
nimcrypto/utils, confutils, eth/keys,
confutils, eth/keys,
../beacon_chain/validators/keystore_management,
../beacon_chain/spec/[keystore, crypto],
../beacon_chain/conf