[#755] neofs-adm: print NNS records during initialization

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-08-10 11:38:48 +03:00 committed by Alex Vanin
parent da19799c37
commit 58e8d6e1fd

View file

@ -53,6 +53,7 @@ func (c *initializeContext) setNNS() error {
if err := c.nnsRegisterDomain(h, alphaCs.Hash, domain); err != nil {
return err
}
c.Command.Printf("NNS: Set %s -> %s\n", domain, alphaCs.Hash.StringLE())
}
for _, ctrName := range contractList {
@ -66,6 +67,7 @@ func (c *initializeContext) setNNS() error {
if err := c.nnsRegisterDomain(h, cs.Hash, domain); err != nil {
return err
}
c.Command.Printf("NNS: Set %s -> %s\n", domain, cs.Hash.StringLE())
}
return c.awaitTx()