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:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user