mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
28 lines
495 B
Go
28 lines
495 B
Go
package recordverifier
|
|
|
|
import (
|
|
"github.com/anyproto/any-sync/app"
|
|
"github.com/anyproto/any-sync/consensus/consensusproto"
|
|
)
|
|
|
|
type ValidateFull struct{}
|
|
|
|
func NewValidateFull() RecordVerifier {
|
|
return &ValidateFull{}
|
|
}
|
|
|
|
func (a *ValidateFull) Init(_ *app.App) error {
|
|
return nil
|
|
}
|
|
|
|
func (a *ValidateFull) Name() string {
|
|
return CName
|
|
}
|
|
|
|
func (a *ValidateFull) VerifyAcceptor(_ *consensusproto.RawRecord) error {
|
|
return nil
|
|
}
|
|
|
|
func (a *ValidateFull) ShouldValidate() bool {
|
|
return true
|
|
}
|