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:
Roman Khimov 2020-01-29 18:31:54 +03:00 committed by GitHub
commit 2aaa126462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {