EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

Error 3050003: eosio_assert_message assertion failure instead "already claimed rewards within past day" when claimrewards #4437

Closed dianla closed 6 years ago

dianla commented 6 years ago

Tested in Jungletestnet and mainnet v1.0.7

When execute action for claim rewards before 24 hours from last claimed

cleos system claimrewards mosquitometa -p mosquitometa 1916519ms thread-0 main.cpp:429 create_action] result: {"binargs":"60b292343b6d3195"} arg: {"code":"eosio","action":"claimrewards","args":{"owner":"mosquitometa"}} Error 3050003: eosio_assert_message assertion failure

The error should be "already claimed rewards within past day"

_eos/contracts/eosio.system/producerpay.cpp eosio_assert( ct - prod.last_claim_time > useconds_per_day, "already claimed rewards within past day" );

andriantolie commented 6 years ago

Yes, "already claimed rewards within past day" is the detailed message of the above error which is suppressed by default now. If you want to see the detailed error message, use --verbose-http-errors arg when starting your nodeos and you will be able to see it :)