lotus/retrieval/verify.go
2019-08-29 17:48:58 +02:00

20 lines
376 B
Go

package retrieval
import blocks "github.com/ipfs/go-block-format"
type BlockVerifier interface {
Verify(blocks.Block) (internal bool, err error)
}
// TODO: BalancedUnixFs0Verifier
type OptimisticVerifier struct {
}
func (o *OptimisticVerifier) Verify(blocks.Block) (bool, error) {
// It's probably fine
return false, nil
}
var _ BlockVerifier = &OptimisticVerifier{}