state data query to client

This commit is contained in:
Nikolay Volf 2016-03-11 23:24:44 +04:00
parent e970dd4530
commit da6f6d57cd
1 changed files with 13 additions and 0 deletions

View File

@ -35,6 +35,19 @@ fn imports_from_empty() {
client.flush_queue();
}
#[test]
fn returns_state_root_basic() {
let client_result = generate_dummy_client(6);
let client = client_result.reference();
let test_spec = get_test_spec();
let test_engine = test_spec.to_engine().unwrap();
let state_root = test_engine.spec().genesis_header().state_root;
assert!(client.state_data(&state_root).is_some());
}
#[test]
fn imports_good_block() {
let dir = RandomTempPath::new();