diff --git a/cmd/frostfs-node/morph.go b/cmd/frostfs-node/morph.go index 6c09ae022..4ab2eacad 100644 --- a/cmd/frostfs-node/morph.go +++ b/cmd/frostfs-node/morph.go @@ -117,6 +117,14 @@ func makeAndWaitNotaryDeposit(c *cfg) { tx, err := makeNotaryDeposit(c) fatalOnErr(err) + if tx.Equals(util.Uint256{}) { + // non-error deposit with an empty TX hash means + // that the deposit has already been made; no + // need to wait it. + c.log.Info("notary deposit has already been made") + return + } + err = waitNotaryDeposit(c, tx) fatalOnErr(err) } diff --git a/pkg/innerring/notary.go b/pkg/innerring/notary.go index 0567857c5..617d7bbe0 100644 --- a/pkg/innerring/notary.go +++ b/pkg/innerring/notary.go @@ -79,6 +79,14 @@ func (s *Server) initNotary(ctx context.Context, deposit depositor, await awaite return err } + if tx.Equals(util.Uint256{}) { + // non-error deposit with an empty TX hash means + // that the deposit has already been made; no + // need to wait it. + s.log.Info("notary deposit has already been made") + return nil + } + s.log.Info(msg) return await(ctx, tx)