forked from TrueCloudLab/frostfs-node
[#787] morph: Calculate VUB and nonce when hash is nil
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
2393d13e4d
commit
c8a62ffedd
3 changed files with 25 additions and 13 deletions
|
@ -154,9 +154,9 @@ func (s StaticClient) Invoke(prm InvokePrm) (InvokeRes, error) {
|
|||
|
||||
if prm.hash != nil {
|
||||
if prm.controlTX {
|
||||
nonce, vub, err = s.client.CalculateNonceAndVUBControl(*prm.hash)
|
||||
nonce, vub, err = s.client.CalculateNonceAndVUBControl(prm.hash)
|
||||
} else {
|
||||
nonce, vub, err = s.client.CalculateNonceAndVUB(*prm.hash)
|
||||
nonce, vub, err = s.client.CalculateNonceAndVUB(prm.hash)
|
||||
}
|
||||
if err != nil {
|
||||
return InvokeRes{}, fmt.Errorf("could not calculate nonce and VUB for notary alphabet invoke: %w", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue