consensus: payloads from recovery messages are network-dependent too

Fixes wrong hash calculated for prepare request leading to bad prepare
response and inability to run heterogeneous 2+2 Go/C# nodes consensus.
This commit is contained in:
Roman Khimov 2020-08-18 16:17:50 +03:00
parent 58af143f25
commit 7db4ac4e2b

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,