Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Accumulate virus rewards gradually when hardware changes #308

Open
renatomassaro opened this issue Oct 18, 2017 · 1 comment
Open

Accumulate virus rewards gradually when hardware changes #308

renatomassaro opened this issue Oct 18, 2017 · 1 comment

Comments

@renatomassaro
Copy link
Member

Just a brainstorm I was having earlier today:

If hardware changes, or anything that affects the virus reward upon collect:

  • Save the amount the virus would rewarded if collected now

When collecting:

  • Check if there are accumulated rewards saved on DB.
  • If so, sum all of them and get the last accumulation date.
  • Add to that the reward of (now() - last_accumulation_date)
@renatomassaro
Copy link
Member Author

Actually this behaviour is quite similar to the one used on Process.Scheduler (with the last_checkpoint thing)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant