Wrong era used in ECIP1017 test

It is era 49, and should correspond to ECIP1017/ECIP1039's era 50.
This commit is contained in:
Wei Tang 2017-11-24 20:17:26 +08:00 committed by GitHub
parent bef85fb876
commit 8e89be775c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -523,9 +523,8 @@ mod tests {
let block_number = 250000000;
let (eras, reward) = ecip1017_eras_block_reward(eras_rounds, start_reward, block_number);
assert_eq!(48, eras);
assert!(U256::from_str("65697BFA9ACB").unwrap() != reward);
assert_eq!(U256::from_str("65697BFA9ACD").unwrap(), reward);
assert_eq!(49, eras);
assert_eq!(U256::from_str("51212FFBAF0A").unwrap(), reward);
}
#[test]