container: implement SignedDataSource on GetRequest message

This commit is contained in:
Leonard Lyubich 2020-05-11 15:05:03 +03:00
parent eedb97d135
commit a41f22782b
4 changed files with 67 additions and 0 deletions

View file

@ -74,6 +74,21 @@ func TestRequestSign(t *testing.T) {
cid := req.GetCID()
cid[0]++
req.SetCID(cid)
},
},
},
{ // GetRequest
constructor: func() sigType {
return new(GetRequest)
},
payloadCorrupt: []func(sigType){
func(s sigType) {
req := s.(*GetRequest)
cid := req.GetCID()
cid[0]++
req.SetCID(cid)
},
},