Skip to content

Commit

Permalink
Seal EIP150 regression blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed Jul 12, 2017
1 parent 6a2dd50 commit 53a2e34
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regtests/res/eip150_numbers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
2765004,
2619449
]
1 change: 1 addition & 0 deletions regtests/res/eip150_records.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions regtests/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,3 +327,14 @@ fn test_all_previously_failed_homestead_blocks() {
test_block(&mut client, n, &HOMESTEAD_PATCH);
}
}

#[cfg(test)]
#[test]
fn test_all_previously_failed_eip150_blocks() {
let cached: serde_json::Value = serde_json::from_str(include_str!("../../res/eip150_records.json")).unwrap();
let numbers: Vec<usize> = serde_json::from_str(include_str!("../../res/eip150_numbers.json")).unwrap();
let mut client = CachedGethRPCClient::from_value(cached);
for n in numbers {
test_block(&mut client, n, &EIP150_PATCH);
}
}

0 comments on commit 53a2e34

Please sign in to comment.