forked from TrueCloudLab/neoneo-go
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:
parent
58af143f25
commit
7db4ac4e2b
1 changed files with 1 additions and 0 deletions
|
@ -287,6 +287,7 @@ func getVerificationScript(i uint16, validators []crypto.PublicKey) []byte {
|
||||||
|
|
||||||
func fromPayload(t messageType, recovery *Payload, p io.Serializable) *Payload {
|
func fromPayload(t messageType, recovery *Payload, p io.Serializable) *Payload {
|
||||||
return &Payload{
|
return &Payload{
|
||||||
|
network: recovery.network,
|
||||||
message: &message{
|
message: &message{
|
||||||
Type: t,
|
Type: t,
|
||||||
ViewNumber: recovery.message.ViewNumber,
|
ViewNumber: recovery.message.ViewNumber,
|
||||||
|
|
Loading…
Reference in a new issue