[#170] checksum: Do not use pointers

Do not return pointers from getters. Do not pass pointers to the methods
that does not modify the checksum. Add `Empty` method.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-03-04 14:38:23 +03:00 committed by LeL
parent fd13e61266
commit caa055236b
7 changed files with 53 additions and 35 deletions

View file

@ -78,7 +78,7 @@ func TestNew(t *testing.T) {
// check initial values
require.Nil(t, sg.Members())
require.Nil(t, sg.ValidationDataHash())
require.True(t, sg.ValidationDataHash().Empty())
require.Zero(t, sg.ExpirationEpoch())
require.Zero(t, sg.ValidationDataSize())