Closed sahilrajput03 closed 1 year ago
Check your password file. The password file is newline-separated.
You can have multiple passwords in it, where each line is for a specific account. If there are more accounts than lines, the last one is used to unlock the rest.
Now, there might be a quirk: if your editor automatically adds a trailing newline to the password file, it will be interpreted as containing 2 passwords: the first line, and the second (empty). In that case, account 2 and onwards will be attempted to be unlocked with the empty password, which can fail.
Your password file seems to contain 2 bytes: the character 1
and an invisible control character. Perhaps that's the problem?
$ hexdump my_password.txt
0000000 0a31
0000002
Actually, 0a
is the newline character, so that's the issue almost certainly.
Amazing, @karalabe you are awesome!
Newline character was there as I can see it clearly the issue with echo command. Thanks a lot, I managed to unlock all accounts via that! Thanks a lot!
System information
Geth version:
geth version
:CL client & version: Kitty Terminal OS & Version:
Expected behaviour
It should unlock all the accounts
Actual behaviour
It just unlocks first account and throws error saying the "address 2" can't be unlocked with given password.
Steps to reproduce the behaviour
Run this script:
./runBootNode.sh
file from this file: Click here with that line uncommented and comment line: 25.Backtrace
Thanks.