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

@@ -27,7 +27,7 @@ use solana_runtime::{
accounts::AccountAddressFilter,
bank::Bank,
bank_forks::BankForks,
commitment::{BlockCommitmentArray, BlockCommitmentCache, CacheSlotInfo},
commitment::{BlockCommitmentArray, BlockCommitmentCache, CommitmentSlots},
log_collector::LogCollector,
send_transaction_service::{SendTransactionService, TransactionInfo},
};
@@ -192,7 +192,7 @@ impl JsonRpcRequestProcessor {
block_commitment_cache: Arc::new(RwLock::new(BlockCommitmentCache::new(
HashMap::new(),
0,
CacheSlotInfo {
CommitmentSlots {
slot: bank.slot(),
root: 0,
highest_confirmed_slot: 0,
@@ -1819,7 +1819,7 @@ pub mod tests {
let block_commitment_cache = Arc::new(RwLock::new(BlockCommitmentCache::new(
block_commitment,
10,
CacheSlotInfo {
CommitmentSlots {
slot: bank.slot(),
root: 0,
highest_confirmed_slot: 0,
@@ -3334,7 +3334,7 @@ pub mod tests {
let block_commitment_cache = Arc::new(RwLock::new(BlockCommitmentCache::new(
block_commitment,
42,
CacheSlotInfo {
CommitmentSlots {
slot: bank_forks.read().unwrap().highest_slot(),
root: 0,
highest_confirmed_slot: 0,
@@ -3863,7 +3863,7 @@ pub mod tests {
let block_commitment_cache = BlockCommitmentCache::new(
block_commitment,
50,
CacheSlotInfo {
CommitmentSlots {
slot: bank.slot(),
root: 0,
highest_confirmed_slot: 0,