[#685] neofs-adm: reduce amount of logs

If `init` is run on a dirty network (i.e. with some stages already
done), no transactions are really sent so clean up logs a bit.

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-07-26 10:55:51 +03:00 committed by Alex Vanin
parent b95c16879d
commit 90259b5cc7

View file

@ -180,6 +180,10 @@ func openAlphabetWallets(walletDir string) ([]*wallet.Wallet, error) {
}
func (c *initializeContext) awaitTx() error {
if len(c.Hashes) == 0 {
return nil
}
c.Command.Println("Waiting for transactions to persist...")
tick := time.NewTicker(c.PollInterval)