New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call to invoke the reward failed #435

Closed
heidabyr opened this Issue May 21, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@heidabyr

heidabyr commented May 21, 2018

I ran into this error when trying to invoke the call "Reward" through the CLI, command 12 with software version 0.2.2:
https://etherscan.io/tx/0xbcb8f54b6f68d96a9fd71c24b047bb33c4070ecab7f76a0bd842a6a9484b68ae

@dob

This comment has been minimized.

Member

dob commented May 21, 2018

It looks like this failed because the current round was not yet initialized. As soon as the new round starts an initializeRound() txn needs to be invoked once by somebody in order to calculate the active set of transcoders for that round. We have been running an initialization daemon that does this within the first couple blocks of the round, however it didn't work yesterday because of a crash. Anyone can invoke the txn, but it's a bit expensive.

In the meantime, I'd suggest that we update the CLI to not actually make the reward() call if the round is not initialized, since it will just waste a bit of gas.

@dob

This comment has been minimized.

Member

dob commented May 21, 2018

Tracking in #436

@dob dob closed this May 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment