eos icon indicating copy to clipboard operation
eos copied to clipboard

Error on Multisig

Open liuzhl518 opened this issue 8 years ago • 14 comments

I followed the EOSIO multisig tutorial (https://steemit.com/eos/@genereos/eos-multisig-tutorial), but there is a error when I execute the multisig transaction after all the accounts approved it.

image

The detailed steps are as follow: I created four accounts: mymultisig11, partner11111, partner22222 and partner33333. ./cleos set account permission mymultisig11 active '{"threshold":2,"keys":[],"accounts":[{"permission":{"actor":"partner11111","permission":"active"},"weight":1},{"permission":{"actor":"partner22222","permission":"active"},"weight":1},{"permission":{"actor":"partner33333","permission":"active"},"weight":1}],"waits":[]}' owner -p mymultisig11@owner

./cleos set account permission mymultisig11 owner '{"threshold":2,"keys":[],"accounts":[{"permission":{"actor":"partner11111","permission":"owner"},"weight":1},{"permission":{"actor":"partner22222","permission":"owner"},"weight":1},{"permission":{"actor":"partner33333","permission":"owner"},"weight":1}],"waits":[]}' -p mymultisig11@owner

./cleos multisig propose payme '[{"actor": "partner22222", "permission": "active"},{"actor": "partner33333", "permission": "active"}]' '[{"actor": "mymultisig11", "permission": "active"}]' eosio.token transfer '{"from":"mymultisig11", "to":"partner11111", "quantity":"25.0000 SYS", "memo":"Pay partner11111 some money"}' -p partner11111@active

./cleos multisig approve partner11111 payme '{"actor": "partner22222", "permission": "active"}' -p partner22222@active

./cleos multisig approve partner11111 payme '{"actor": "partner33333", "permission": "active"}' -p partner33333@active

./cleos multisig exec partner11111 payme -p partner11111@active

P.S. I'm sure that the wallet is unlocked and the related private keys are inside my wallet.

liuzhl518 avatar Jun 15 '18 09:06 liuzhl518

I met the same problem.

Elliot438b avatar Jun 19 '18 06:06 Elliot438b

@liuzhl518 I followed exactly the same detailed-steps you mentioned above (copy-paste) and I've got no problem executing the multisig transaction (I can see that partner11111 has received 25.0000 in the end). Can you please try the above detailed-steps to reconfirm? Also if you still get the same error, try to start your nodeos with --verbose-http-errors argument, so we can get more verbose error description.

andriantolie avatar Jun 25 '18 06:06 andriantolie

I met the same problem... @andriantolie what version of Eos you are running on? I've tried the latest 1.0.6. but met the same problem

liliyongleo avatar Jun 25 '18 11:06 liliyongleo

I'm using the latest master as today

andriantolie avatar Jun 25 '18 11:06 andriantolie

@andriantolie I've tried the latest 1.0.6 as well, but I still got the same error. Then I started nodeos with --verbose-http-errors, the error description is as follow: 1529926468448 screen shot 2018-06-25 at 7 35 36 pm

liuzhl518 avatar Jun 25 '18 11:06 liuzhl518

According to the error logs, {"auth":{"actor":"jack","permission":"owner"},"provided_delay":0,"provided_permissions":[{"actor":"eosio.msig","permission":"eosio.code"}],"provided_keys":[],"delay_max_limit_ms":388800000} the provided permissions which is from eosio.msig contract occured something dismatch. It seems a bug of eosio.msig contract.

Elliot438b avatar Jun 25 '18 11:06 Elliot438b

msig requires this to work:

$ push action eosio setpriv '["eosio.msig", 1]' -p eosio@active

tbfleming avatar Jun 25 '18 12:06 tbfleming

The above command needs either the bios or system contracts installed to work.

tbfleming avatar Jun 25 '18 12:06 tbfleming

@tbfleming It works! Thank you so much! Can you tell me what does this command do? From the code, I notice this command set eosio.msig privileged, but I don't know how does the privilege work.

liuzhl518 avatar Jun 25 '18 12:06 liuzhl518

Think of a privileged account as the root account under Linux; code running under it can do anything. A typical chain has 2 privileged accounts: eosio and eosio.msig.

tbfleming avatar Jun 25 '18 12:06 tbfleming

Ah, no wonder I didn't encounter the issue. I did set my eosio.msig to be privileged account as part of the boot sequence. Good to know that the problem is solved now, I'm going to close this issue. :)

andriantolie avatar Jun 26 '18 01:06 andriantolie

@tbfleming how come eosio.msig has to be set privileged to execute the transaction? Why is it not set to privileged by default?

liuzhl518 avatar Jun 26 '18 03:06 liuzhl518

privileged allows msig to sudo the declared authorities in the transaction after verifying the signatures. It's not privileged by default because it doesn't exist by default. eosio is the only account that gets created automatically.

tbfleming avatar Jun 26 '18 11:06 tbfleming

hi which version of the nodeos cleos and contract kit are you used in order to be able to call cleos push action eosio setpriv '["eosio.msig", 1]' -p eosio@active i just install all the contracts eosio.bios eosio.system eosio.token eosio.msig an still get Unknown action setpriv in contract eosio

msig requires this to work:

$ push action eosio setpriv '["eosio.msig", 1]' -p eosio@active

when i type cleos push action eosio setpriv '["eosio.msig", 1]' -p eosio@active i got the error error 2019-03-22T01:31:50.099 thread-0 main.cpp:3449 main ] Failed with error: Assert Exception (10) !action_type.empty(): Unknown action setpriv in contract eosio

kriskoin avatar Mar 22 '19 02:03 kriskoin