Skip to content

Commit 9c1ae6d

Browse files
committed
fix: log
1 parent 8de22bf commit 9c1ae6d

File tree

1 file changed

+4
-1
lines changed
  • packages/neuron-wallet/src/services

1 file changed

+4
-1
lines changed

packages/neuron-wallet/src/services/node.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,16 @@ class NodeService {
160160
const localNodeInfo = await new RpcService(network.remote, network.type).localNodeInfo()
161161
const type: CKBNodeType = network.type === NetworkType.Light ? 'light' : 'full'
162162
const internalNodeVersion = this.getInternalNodeVersion(type)
163+
logger.info('CKB:\tinternalNodeVersion:', internalNodeVersion)
163164
const neuronVersion = app.getVersion()
164165
if (!internalNodeVersion || !localNodeInfo.version) return
165-
return {
166+
const result = {
166167
ckbIsCompatible: this.isCkbCompatibility(neuronVersion, localNodeInfo.version, type),
167168
withIndexer: await this.isStartWithIndexer(),
168169
shouldUpdate: this.verifyCKbNodeShouldUpdate(internalNodeVersion, localNodeInfo.version),
169170
}
171+
logger.info('CKB:\texternal ckb node:', JSON.stringify(result, null, 2))
172+
return result
170173
}
171174
}
172175

0 commit comments

Comments
 (0)