Rename CacheSlotInfo to CommitmentSlots (#11111)

This commit is contained in:
Tyera Eulberg
2020-07-17 11:54:49 -06:00
committed by GitHub
parent d0d4d9b3d1
commit a255b0fc86
5 changed files with 73 additions and 73 deletions

View File

@ -3,7 +3,7 @@ use solana_measure::measure::Measure;
use solana_metrics::datapoint_info;
use solana_runtime::{
bank::Bank,
commitment::{BlockCommitment, BlockCommitmentCache, CacheSlotInfo, VOTE_THRESHOLD_SIZE},
commitment::{BlockCommitment, BlockCommitmentCache, CommitmentSlots, VOTE_THRESHOLD_SIZE},
};
use solana_sdk::clock::Slot;
use solana_vote_program::vote_state::VoteState;
@ -112,7 +112,7 @@ impl AggregateCommitmentService {
let mut new_block_commitment = BlockCommitmentCache::new(
block_commitment,
aggregation_data.total_stake,
CacheSlotInfo {
CommitmentSlots {
slot: aggregation_data.bank.slot(),
root: aggregation_data.root,
highest_confirmed_slot: aggregation_data.root,
@ -138,7 +138,7 @@ impl AggregateCommitmentService {
// Triggers rpc_subscription notifications as soon as new commitment data is available,
// sending just the commitment cache slot information that the notifications thread
// needs
subscriptions.notify_subscribers(w_block_commitment_cache.slot_info());
subscriptions.notify_subscribers(w_block_commitment_cache.commitment_slots());
}
}