state: implement SignedDataSource on DumpVarsRequest message
This commit is contained in:
parent
603db9c325
commit
5545b25a95
2 changed files with 12 additions and 0 deletions
|
@ -27,3 +27,10 @@ func (m HealthRequest) SignedData() ([]byte, error) {
|
||||||
func (m DumpRequest) SignedData() ([]byte, error) {
|
func (m DumpRequest) SignedData() ([]byte, error) {
|
||||||
return make([]byte, 0), nil
|
return make([]byte, 0), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SignedData returns payload bytes of the request.
|
||||||
|
//
|
||||||
|
// Always returns an empty slice.
|
||||||
|
func (m DumpVarsRequest) SignedData() ([]byte, error) {
|
||||||
|
return make([]byte, 0), nil
|
||||||
|
}
|
||||||
|
|
|
@ -42,6 +42,11 @@ func TestRequestSign(t *testing.T) {
|
||||||
return new(DumpRequest)
|
return new(DumpRequest)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{ // DumpVarsRequest
|
||||||
|
constructor: func() sigType {
|
||||||
|
return new(DumpVarsRequest)
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, item := range items {
|
for _, item := range items {
|
||||||
|
|
Loading…
Reference in a new issue