TrueBitFoundation / truebit-os

[DEPRECATED] Interactive client
Apache License 2.0
82 stars 26 forks source link

Remove jackpot from dev tests #97

Open hswick opened 5 years ago

hswick commented 5 years ago

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