forked from TrueCloudLab/frostfs-node
[#1628] innerring: Relax container homomorphic hashing check
Our initial desire was to prohibit using homomorphic hashing on the network level because of the resource consumption. However, the ability to use it, doesn't mean that we must. So only fail validation if container wants to have homomorphic hashing, but the network prohibits it. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
b2adf1109e
commit
003d568ae2
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ func checkHomomorphicHashing(ctx context.Context, ns NetworkState, cnr container
|
||||||
return fmt.Errorf("could not get setting in contract: %w", err)
|
return fmt.Errorf("could not get setting in contract: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if cnrSetting := containerSDK.IsHomomorphicHashingDisabled(cnr); netSetting != cnrSetting {
|
if cnrSetting := containerSDK.IsHomomorphicHashingDisabled(cnr); netSetting && !cnrSetting {
|
||||||
return fmt.Errorf("network setting: %t, container setting: %t", netSetting, cnrSetting)
|
return fmt.Errorf("network setting: %t, container setting: %t", netSetting, cnrSetting)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue