v1.1: backport commitment max changes (#9775) (#9778)

automerge
This commit is contained in:
mergify[bot]
2020-04-28 16:42:08 -07:00
committed by GitHub
parent f65caa66bf
commit dbaff495c8
16 changed files with 503 additions and 140 deletions

View File

@@ -202,7 +202,6 @@ impl Validator {
}
let bank_forks = Arc::new(RwLock::new(bank_forks));
let block_commitment_cache = Arc::new(RwLock::new(BlockCommitmentCache::default()));
let mut validator_exit = ValidatorExit::default();
let exit_ = exit.clone();
@@ -238,6 +237,9 @@ impl Validator {
);
let blockstore = Arc::new(blockstore);
let block_commitment_cache = Arc::new(RwLock::new(
BlockCommitmentCache::default_with_blockstore(blockstore.clone()),
));
let subscriptions = Arc::new(RpcSubscriptions::new(&exit, block_commitment_cache.clone()));