getBlockTime RPC method now falls back to BigTable in all cases (#14206)

(cherry picked from commit 0090106f60)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2020-12-18 22:11:26 +00:00
committed by GitHub
parent 9f69f79577
commit 420e4c772f

View File

@ -772,7 +772,7 @@ impl JsonRpcRequestProcessor {
{
let result = self.blockstore.get_block_time(slot);
self.check_blockstore_root(&result, slot)?;
if result.is_err() {
if result.is_err() || matches!(result, Ok(None)) {
if let Some(bigtable_ledger_storage) = &self.bigtable_ledger_storage {
return Ok(self
.runtime_handle