mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +00:00
parent
e135719c38
commit
50e5e6fe29
1 changed files with 5 additions and 1 deletions
|
@ -148,7 +148,7 @@ func NewService(cfg Config) (Service, error) {
|
|||
dbft.WithNewChangeView(func() payload.ChangeView { return new(changeView) }),
|
||||
dbft.WithNewCommit(srv.newCommit),
|
||||
dbft.WithNewRecoveryRequest(func() payload.RecoveryRequest { return new(recoveryRequest) }),
|
||||
dbft.WithNewRecoveryMessage(func() payload.RecoveryMessage { return new(recoveryMessage) }),
|
||||
dbft.WithNewRecoveryMessage(srv.newRecoveryMessage),
|
||||
dbft.WithVerifyPrepareRequest(srv.verifyRequest),
|
||||
)
|
||||
|
||||
|
@ -267,6 +267,10 @@ func (s *service) newCommit() payload.Commit {
|
|||
return c
|
||||
}
|
||||
|
||||
func (s *service) newRecoveryMessage() payload.RecoveryMessage {
|
||||
return &recoveryMessage{stateRootEnabled: s.stateRootEnabled()}
|
||||
}
|
||||
|
||||
func (s *service) validatePayload(p *Payload) bool {
|
||||
validators := s.getValidators()
|
||||
if int(p.validatorIndex) >= len(validators) {
|
||||
|
|
Loading…
Reference in a new issue