consensus: provide message type and view inside RecoveryMessage

PrepareRequest inside RecoveryMessage should contain both
message type and view.
This commit is contained in:
Evgenii Stratonikov 2020-02-18 15:12:20 +03:00
parent 14f557026c
commit ee8514d88b
3 changed files with 34 additions and 5 deletions

View file

@ -290,7 +290,10 @@ func randomRecoveryMessage(t *testing.T) *recoveryMessage {
InvocationScript: fillRandom(t, make([]byte, 4)),
},
},
prepareRequest: prepReq,
prepareRequest: &message{
Type: prepareRequestType,
payload: prepReq,
},
}
}