Perhaps we can add a bold note in the hackathon_how_to.md documentation which points out that a wallet has to be 1) opened and then 2) unlocked (always in that order).
Running the open command, after a wallet has been unlocked (re-opening or switching back to a wallet) locks the wallet.
If you list the open wallets using the following command you can see 3 locked wallets
cleos wallet list
Wallets:
[
"default",
"eosiomain",
"notechainwal"
]
You can unlock a wallet (say, in this case the default wallet) using the following command
cleos wallet unlock --password thePassword
Unlocked: default
If you list the open wallets again, you can see that the asterix (*) is present (indicating that the wallet has been unlocked)
cleos wallet list
Wallets:
[
"default *",
"eosiomain",
"notechainwal"
]
However, if you run the following open command, it results in the wallet being locked
cleos wallet open
Opened: default
Notice how the asterix has vanished as soon as the open command was executed
cleos wallet list
Wallets:
[
"default",
"eosiomain",
"notechainwal"
]
I thought that this may confuse some people, perhaps we could point this nuance out in the documentation somewhere.