Rpc: Use cluster largest_confirmed_root as commitment max (#9750)

automerge
This commit is contained in:
Tyera Eulberg
2020-04-28 11:20:43 -06:00
committed by GitHub
parent 659e87703b
commit 655e3bc418
2 changed files with 72 additions and 35 deletions

View File

@ -161,6 +161,11 @@ impl BlockCommitmentCache {
root: Slot::default(),
}
}
#[cfg(test)]
pub(crate) fn set_get_largest_confirmed_root(&mut self, root: Slot) {
self.largest_confirmed_root = root;
}
}
pub struct CommitmentAggregationData {