casper-network / casper-node

Reference client for CASPER protocol

Home Page:https://casper.network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a reactor test that checks that new 2.0 rewards are correctly distributed to inactive validators

SaiProServ opened this issue · comments

The scenario is described in and fixed by PR, but we don't have a test.

This is now tested by run_withdraw_bid_network.

The test was always doing a full unbond of one of the validators. However, until recently, it only run the network until the end of the era in which the unbond was submitted, in order to test if the bid has been removed. With PR #4719, the test has been extended to run for a few more eras, until the unbond has been processed. This had a side effect of running the network through the era in which the unbonded validator is no longer a validator, but still can (and does) receive rewards for the previous era, thus testing what this issue is about.

Thus, I think we can close this issue.