Rename Entry.id to Entry.hash

This commit is contained in:
Michael Vines
2019-03-01 08:57:42 -08:00
parent 7e7b79ef34
commit 7c4473e0aa
13 changed files with 96 additions and 96 deletions

View File

@@ -1313,7 +1313,7 @@ fn test_full_leader_validator_network() {
&last_id,
ticks_per_slot,
);
last_id = node_active_set_entries.last().unwrap().id;
last_id = node_active_set_entries.last().unwrap().hash;
active_set_entries.extend(node_active_set_entries);
}
@@ -1702,7 +1702,7 @@ fn stake_fullnode(
fn add_tick(last_id: &mut Hash, entries: &mut Vec<Entry>) -> Hash {
let tick = solana::entry::create_ticks(1, *last_id);
*last_id = tick[0].id;
*last_id = tick[0].hash;
entries.extend(tick);
*last_id
}

View File

@@ -177,7 +177,7 @@ fn test_replicator_startup_basic() {
assert!(br.index() == repair_index);
let entry: Entry = deserialize(&br.data()[..br.meta.size]).unwrap();
info!("entry: {:?}", entry);
assert_ne!(entry.id, Hash::default());
assert_ne!(entry.hash, Hash::default());
received_blob = true;
}
break;