Add mechanism to get blockhash's last valid slot (#10239) (#10253)

automerge
This commit is contained in:
mergify[bot]
2020-05-26 14:33:11 -07:00
committed by GitHub
parent 9a42cc7555
commit c67596ceb4
8 changed files with 160 additions and 17 deletions

View File

@@ -441,7 +441,7 @@ impl SyncClient for ThinClient {
match recent_blockhash {
Ok(Response { value, .. }) => {
self.optimizer.report(index, duration_as_ms(&now.elapsed()));
Ok(value)
Ok((value.0, value.1))
}
Err(e) => {
self.optimizer.report(index, std::u64::MAX);