Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
[fix][r-cli][*]: add query-curr-active-nodes to README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dawn-to-dusk committed Jan 4, 2024
1 parent fda8a09 commit 90b088a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions r-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ start.sh - Start the AntChain Bridge Relayer Command Line Interface Tool
-h print help information.
```

命令执行情况如下
启动命令执行情况如下

```shell
$ ./r-cli/bin/start.sh
Expand All @@ -91,7 +91,7 @@ relayer:>

# 命令操作详情

中继CLI工具目前累计支持`48`条交互命令,分别应用于BCDNS管理、区块链管理、中继器管理、服务管理及其他工具功能。
中继CLI工具目前累计支持`50`条交互命令,分别应用于BCDNS管理、区块链管理、中继器管理、服务管理及其他工具功能。

- 直接输入`help`可以查看支持命令概况
- 直接输入`version`可以查看当前中继CLI工具版本
Expand Down Expand Up @@ -945,6 +945,28 @@ relayer:> get-cross-chain-msg-acl --bizId a3b56eea-3a31-43cd-9002-e656f6c3b521
not found
```


### 4.8 query-curr-active-nodes 查询中继节点

用于查询当前中继的节点列表信息,注意用于查询节点活跃状态,
每个节点的信息包括最近活跃时间戳、是否活跃以及节点IP和节点ID(默认为节点IP)。
可以通过当前命令查询中继节点是否正常活跃可用。

用法如下:

```shell
relayer:> query-curr-active-nodes
# 当前中继服务只有一个节点,节点活跃状态正常
[
{
"last_active_time":1704366281000,
"node_ip":"30.75.64.168",
"active":true,
"node_id":"30.75.64.168"
}
]
```

## 5 其他工具命令

为方便用户使用,中继CLI工具提供部分工具命令,包括区块链域名申请文件生成、跨链中继身份申请相关文件生成等辅助功能。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private boolean checkContractsStatus(AbstractBBCContext bbcContext) {
boolean ifAMPrepared = ContractStatusEnum.CONTRACT_READY == bbcContext.getAuthMessageContract().getStatus();
if (!ifAMPrepared) {
log.info(
"AM contract of heterogeneous blockchain client ( product: {} , domain: {} ) is {} but ready",
"AM contract of heterogeneous blockchain client ( product: {} , domain: {} ) is {} instead of ready",
getBlockchainMeta().getProduct(), getDomain(), bbcContext.getAuthMessageContract().getStatus()
);
return false;
Expand Down

0 comments on commit 90b088a

Please sign in to comment.