forked from TrueCloudLab/frostfs-node
[#979] morph/client: Return zero values from CalculateNonceAndVUB
Make `CalculateNonceAndVUB` to return zero values if notary isn't enabled. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
4b8ca75274
commit
ca2c6ad77f
1 changed files with 4 additions and 0 deletions
|
@ -875,6 +875,10 @@ func (c *Client) CalculateNonceAndVUB(hash util.Uint256) (nonce uint32, vub uint
|
|||
})
|
||||
}
|
||||
|
||||
if c.notary == nil {
|
||||
return 0, 0, nil
|
||||
}
|
||||
|
||||
// TODO: cache values since some operations uses same TX as triggers
|
||||
nonce = binary.LittleEndian.Uint32(hash.BytesLE())
|
||||
|
||||
|
|
Loading…
Reference in a new issue