This commit is contained in:
Michael Vines
2021-04-18 10:27:36 -07:00
parent 3b79b21e9d
commit a911ae00ba
39 changed files with 113 additions and 144 deletions

View File

@@ -981,7 +981,7 @@ impl JsonRpcRequestProcessor {
return Ok(self
.runtime
.block_on(bigtable_ledger_storage.get_confirmed_blocks(start_slot, limit))
.unwrap_or_else(|_| vec![]));
.unwrap_or_default());
}
}
@@ -1247,7 +1247,7 @@ impl JsonRpcRequestProcessor {
);
self.blockstore
.get_confirmed_signatures_for_address(pubkey, start_slot, end_slot)
.unwrap_or_else(|_| vec![])
.unwrap_or_default()
} else {
vec![]
}