Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unit test rpc.account_representative_set_epoch_2 (#3774)
This test has 2 problems: * it has a race condition between upgrading to epoch2 and sending the rpc command to change the rep * the rpc command is given a work value that is incorrect because the wrong root is used to calculate it, since the work value is meant to be insufficient, it works most of the time anyway, but there are times when the value becomes sufficient and then the test fails Solutions * wait until the epoch upgrades blocks are cemented before sending the rpc * use the correct root (hash of epoch2 block) to calculate the work field resolves #3770
- Loading branch information