Merge pull request #632 from nspcc-dev/feature/recoverymsg
consensus: use our implementations of Recovery* messages Fixes EOF errors on consensus message decoding.
This commit is contained in:
commit
2aaa126462
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,8 @@ func NewService(cfg Config) (Service, error) {
|
|||
dbft.WithNewPrepareResponse(func() payload.PrepareResponse { return new(prepareResponse) }),
|
||||
dbft.WithNewChangeView(func() payload.ChangeView { return new(changeView) }),
|
||||
dbft.WithNewCommit(func() payload.Commit { return new(commit) }),
|
||||
dbft.WithNewRecoveryRequest(func() payload.RecoveryRequest { return new(recoveryRequest) }),
|
||||
dbft.WithNewRecoveryMessage(func() payload.RecoveryMessage { return new(recoveryMessage) }),
|
||||
)
|
||||
|
||||
if srv.dbft == nil {
|
||||
|
|
Loading…
Reference in a new issue