Rename Entry.id to Entry.hash
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user