#759] node: Log notary status on startup
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
85a4682c0c
commit
53036276e5
1 changed files with 8 additions and 0 deletions
|
@ -53,10 +53,18 @@ func initMorphComponents(c *cfg) {
|
||||||
// since current function initializes sidechain components
|
// since current function initializes sidechain components
|
||||||
fn(mainchainconfig.RPCEndpoint(c.appCfg), mainchainconfig.DialTimeout(c.appCfg), func(cli *client.Client) {
|
fn(mainchainconfig.RPCEndpoint(c.appCfg), mainchainconfig.DialTimeout(c.appCfg), func(cli *client.Client) {
|
||||||
c.mainChainClient = cli
|
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) {
|
fn(morphconfig.RPCEndpoint(c.appCfg), morphconfig.DialTimeout(c.appCfg), func(cli *client.Client) {
|
||||||
c.cfgMorph.client = cli
|
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)
|
wrap, err := wrapper.NewFromMorph(c.cfgMorph.client, c.cfgNetmap.scriptHash, 0)
|
||||||
|
|
Loading…
Reference in a new issue