flow-go
flow-go copied to clipboard
Update error type for pruning functions
This revealed a bit of a terminology conflict:
- The error is using
Height
, while we prune here by view.
A potential solution would be to relax the name of the error a bit; e.g. we could call it AlreadyPrunedError
. It is much less specific ... but maybe that makes the error more broadly applicable 🤷
Nothing we have to address in this PR, just shopping for ideas. cc @zhangchiqing
Originally posted by @AlexHentschel in https://github.com/onflow/flow-go/pull/1198#r703989274