-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ECIP-1039: Monetary policy rounding specification #7067
Conversation
Fix potential rounding errors between geth and parity in the long-term future.
It looks like @sorpaas signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
My Rust is rusty... I guess in regard to uncle rewards that |
@whilei Yes. |
onice, LGTM |
Just a heads up -- final rounding specs merged via ethereumproject/ECIPs#83. Proposed changes are cleared for 🛫 |
@sorpaas can you also add tests to |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just one minor grumble! :)
ethcore/src/ethereum/ethash.rs
Outdated
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is redundant
It is era 49, and should correspond to ECIP1017/ECIP1039's era 50.
@debris The CI failure seems unrelated. I ran the test locally and it's passing. Can you restart it? |
@sorpaas restarted, I will merge the pr as soon as it is green |
ECIP-1039: Monetary policy rounding specification
(ethereumproject/ECIPs#83 is accepted. Okay to merge.)
Fix potential rounding errors between geth and parity in the long-term future.