lotus/retrieval/verify.go

20 lines
376 B
Go
Raw Normal View History

2019-08-26 18:23:11 +00:00
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{}