Merge pull request #1334 from nspcc-dev/fix-recovery-message-payload-decoding

consensus: payloads from recovery messages are network-dependent too
This commit is contained in:
Roman Khimov 2020-08-18 16:32:24 +03:00 committed by GitHub
commit 6cc61099b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -287,6 +287,7 @@ func getVerificationScript(i uint16, validators []crypto.PublicKey) []byte {
func fromPayload(t messageType, recovery *Payload, p io.Serializable) *Payload {
return &Payload{
network: recovery.network,
message: &message{
Type: t,
ViewNumber: recovery.message.ViewNumber,