eos icon indicating copy to clipboard operation
eos copied to clipboard

cleos doesn't complain about locked wallet

Open moskvanaft opened this issue 8 years ago • 3 comments

cleos create account eosio eosio.msig EOS7vg7ZhTayydfca1kjhDNrDvQigcUdicA3d8FFhuQjAPtn3Hqui EOS7vg7ZhTayydfca1kjhDNrDvQigcUdicA3d8FFhuQjAPtn3Hqui
Error 3030002: signatures do not satisfy declared authorizations
Ensure that you have the related private keys inside your wallet and you wallet is unlocked.
Error Details:
transaction declares authority '{"actor":"eosio","permission":"active"}', but does not have signatures for it.

it failed because wallet was locked. So, it was not able to sign the transaction. It should complain about locked wallet.

moskvanaft avatar Apr 06 '18 14:04 moskvanaft

@moskvanaft If we are going to make cleos complain about locked wallet, it will require all transactions (even those which do not currently require authorization, such as nonce action) to have an unlocked wallet.

It's because we can't determine the required keys for a transaction without first telling the keys available inside the wallet (v1/chain/get_required_keys require list public keys as the arguments).

Are we sure we want to go this way?

andriantolie avatar Apr 11 '18 10:04 andriantolie

I just realize that with the latest update, all transactions need to have at least one signature, so I guess it should be fine

andriantolie avatar Apr 18 '18 09:04 andriantolie

PR Added #2496

ATC:

  1. Send tx with no available wallet and ensure it shows the following error screen shot 2018-04-19 at 11 34 03 am
  2. Send tx with no unlocked wallet and ensure it shows the following error screen shot 2018-04-19 at 11 33 58 am

andriantolie avatar Apr 19 '18 03:04 andriantolie