[#1365] ir: Check homomorphic hash setting on ContainerPut

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-04-29 20:48:11 +03:00 committed by fyrchik
parent fa9c910648
commit 8a61d33c65
2 changed files with 27 additions and 0 deletions

View file

@ -53,6 +53,14 @@ type NetworkState interface {
// Must return any error encountered
// which did not allow reading the value.
Epoch() (uint64, error)
// HomomorphicHashDisabled must return boolean that
// represents homomorphic network state:
// * true if hashing is disabled;
// * false if hashing is enabled.
//
// which did not allow reading the value.
HomomorphicHashDisabled() (bool, error)
}
const (