truebit-os icon indicating copy to clipboard operation
truebit-os copied to clipboard

Remove jackpot from dev tests

Open hswick opened this issue 5 years ago • 0 comments

Now that we have the jackpot there and the rate is at around 50%, it seems to be consistently disrupting the tests.

I've added a test for the jackpot in the unit tests, so we can be certain the logic is correct when deploying in production. I'm thinking what we need now is to deploy and use a dummy jackpot manager like we had in the old incentive-layer repo.

We can differentiate which one to use at runtime with the production one being deployed like so:

NODE_ENV='production' npm run deploy

Work items:

  1. Move forced error algo to jackpot manager
  2. Create dummy jackpot manager
  3. Integrate dummy jackpot manager into incentive layer contract
  4. Create condition in deploy.js to deploy production jackpot manager when prod

hswick avatar Dec 17 '18 23:12 hswick