state: implement SignedDataSource on MetricsRequest message

This commit is contained in:
Leonard Lyubich 2020-05-11 16:11:17 +03:00
parent 539e93e558
commit df9a04e542
2 changed files with 12 additions and 0 deletions

View file

@ -6,3 +6,10 @@ package state
func (m NetmapRequest) SignedData() ([]byte, error) {
return make([]byte, 0), nil
}
// SignedData returns payload bytes of the request.
//
// Always returns empty slice.
func (m MetricsRequest) SignedData() ([]byte, error) {
return make([]byte, 0), nil
}

View file

@ -27,6 +27,11 @@ func TestRequestSign(t *testing.T) {
return new(NetmapRequest)
},
},
{ // MetricsRequest
constructor: func() sigType {
return new(MetricsRequest)
},
},
}
for _, item := range items {