consensus: use our implementations of Recovery* messages

While decoding payload, local implementations of Recovery*
messages were used, but when creating RecoveryMessage inside dBFT
library default NewRecoveryMessage was invoked. This lead to parsing
errors.
This commit is contained in:
Evgenii Stratonikov 2020-01-29 17:56:21 +03:00
parent d234a1e718
commit 390bf58f97

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 {