V1.1 single gossip commitment (#10263)

automerge
This commit is contained in:
Tyera Eulberg
2020-05-26 22:16:46 -06:00
committed by GitHub
parent 768a5f2b40
commit fd5222ad21
8 changed files with 811 additions and 101 deletions

View File

@@ -93,7 +93,10 @@ impl JsonRpcRequestProcessor {
debug!("RPC using node root: {:?}", slot);
Ok(r_bank_forks.get(slot).cloned().unwrap())
}
Some(commitment_config) if commitment_config.commitment == CommitmentLevel::Single => {
Some(commitment_config)
if commitment_config.commitment == CommitmentLevel::Single
|| commitment_config.commitment == CommitmentLevel::SingleGossip =>
{
let slot = self
.block_commitment_cache
.read()