#759] node: Log notary status on startup

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
support/v0.27
Pavel Karpy 2021-08-23 14:15:08 +03:00 committed by Alex Vanin
parent 85a4682c0c
commit 53036276e5
1 changed files with 8 additions and 0 deletions

View File

@ -53,10 +53,18 @@ func initMorphComponents(c *cfg) {
// since current function initializes sidechain components
fn(mainchainconfig.RPCEndpoint(c.appCfg), mainchainconfig.DialTimeout(c.appCfg), func(cli *client.Client) {
c.mainChainClient = cli
c.log.Debug("notary support",
zap.Bool("mainchain_enabled", cli.ProbeNotary()),
)
})
fn(morphconfig.RPCEndpoint(c.appCfg), morphconfig.DialTimeout(c.appCfg), func(cli *client.Client) {
c.cfgMorph.client = cli
c.log.Debug("notary support",
zap.Bool("sidechain_enabled", cli.ProbeNotary()),
)
})
wrap, err := wrapper.NewFromMorph(c.cfgMorph.client, c.cfgNetmap.scriptHash, 0)