[#367] session: Support magic_number field of RequestMetaHeader

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-01-13 15:25:03 +03:00 committed by LeL
parent e9a8451fb7
commit 227a871a04
5 changed files with 47 additions and 1 deletions

View file

@ -389,6 +389,7 @@ func (r *RequestMetaHeader) ToGRPCMessage() grpc.Message {
m.SetEpoch(r.epoch)
m.SetTtl(r.ttl)
m.SetOrigin(r.origin.ToGRPCMessage().(*session.RequestMetaHeader))
m.SetNetworkMagic(r.netMagic)
}
return m
@ -465,6 +466,7 @@ func (r *RequestMetaHeader) FromGRPCMessage(m grpc.Message) error {
r.epoch = v.GetEpoch()
r.ttl = v.GetTtl()
r.netMagic = v.GetNetworkMagic()
return nil
}