From b0eeb0dfcf6a2cc5b4a465c51baf46206841d88f Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 30 Nov 2022 19:51:48 +0300 Subject: [PATCH] [#1486] node: Use endless notary deposit for side chain Signed-off-by: Alex Vanin --- cmd/neofs-node/morph.go | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/cmd/neofs-node/morph.go b/cmd/neofs-node/morph.go index e97ee5ee83..6699122912 100644 --- a/cmd/neofs-node/morph.go +++ b/cmd/neofs-node/morph.go @@ -141,15 +141,7 @@ func makeNotaryDeposit(c *cfg) (util.Uint256, error) { return util.Uint256{}, fmt.Errorf("could not calculate notary deposit: %w", err) } - epochDur, err := c.cfgNetmap.wrapper.EpochDuration() - if err != nil { - return util.Uint256{}, fmt.Errorf("could not get current epoch duration: %w", err) - } - - return c.cfgMorph.client.DepositNotary( - depositAmount, - uint32(epochDur)+notaryDepositExtraBlocks, - ) + return c.cfgMorph.client.DepositEndlessNotary(depositAmount) } var (