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

Add Round.undo function #3680

Closed
4 tasks
yatki opened this issue May 21, 2019 · 0 comments
Closed
4 tasks

Add Round.undo function #3680

yatki opened this issue May 21, 2019 · 0 comments
Assignees

Comments

@yatki
Copy link
Contributor

yatki commented May 21, 2019

Expected behavior

We'll need to have an undo method in Round module to revert the operations that have been done in apply method.

Actual behavior

We don't have it in the Rounds module at the moment

Acceptance Criteria

  • Decrease producedBlocks on mem_accounts table
  • Undo votes to mem_accounts table
  • If the block is the last of the round, revert rewards & missedBlocks information.
  • functions needs to be exported from submodules/round/round.js file for testing but only undo must be exported from submodules/round/index.js.

Which version(s) does this affect? (Environment, OS, etc...)

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

No branches or pull requests

3 participants