Return blockstore error if previous_blockhash cannot be determined (#15382)

* Return blockstore error if previous_blockhash cannot be determined

* Add require_previous_blockshash flag
This commit is contained in:
Tyera Eulberg
2021-02-17 18:04:52 -07:00
committed by GitHub
parent 8c8f8f3130
commit 170cb792eb
6 changed files with 41 additions and 25 deletions

View File

@@ -137,7 +137,7 @@ pub async fn upload_confirmed_blocks(
break;
}
let _ = match blockstore.get_confirmed_block(*slot) {
let _ = match blockstore.get_confirmed_block(*slot, true) {
Ok(confirmed_block) => sender.send((*slot, Some(confirmed_block))),
Err(err) => {
warn!(