Skip to content

Commit

Permalink
dccs: return error when data/state is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
hadv committed Jun 28, 2019
1 parent 3152413 commit 9de8447
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consensus/dccs/dccs.go
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,9 @@ func (d *Dccs) snapshot2(chain consensus.ChainReader, number uint64, hash common
} else {
return nil, fmt.Errorf("Epoch checkpoint data is not available")
}
} else {
// cannot get data from db in the --fast sync mode
return nil, fmt.Errorf("checkpoint header is not available")
}
}

Expand Down

0 comments on commit 9de8447

Please sign in to comment.