Use highest-confirmed-root for max check (#14599)
This commit is contained in:
parent
1c2ae15b1d
commit
465f991035
@ -169,7 +169,9 @@ impl Banks for BanksServer {
|
|||||||
let (slot, status) = bank.get_signature_status_slot(&signature)?;
|
let (slot, status) = bank.get_signature_status_slot(&signature)?;
|
||||||
let r_block_commitment_cache = self.block_commitment_cache.read().unwrap();
|
let r_block_commitment_cache = self.block_commitment_cache.read().unwrap();
|
||||||
|
|
||||||
let confirmations = if r_block_commitment_cache.root() >= slot {
|
let confirmations = if r_block_commitment_cache.root() >= slot
|
||||||
|
&& r_block_commitment_cache.highest_confirmed_root() >= slot
|
||||||
|
{
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
r_block_commitment_cache
|
r_block_commitment_cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user