Skip to content

Commit

Permalink
Merge pull request ethereum#236 from nextyio/clearer-error
Browse files Browse the repository at this point in the history
dccs: return error when data/state is missing
  • Loading branch information
hadv authored Jun 28, 2019
2 parents 3152413 + 9de8447 commit fe8e7e0
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 fe8e7e0

Please sign in to comment.