当前的区块链水平
2 个回答
- 投票数
-
- 2019-07-31
您可以使用
./tezos-client rpc get /chains/main/blocks/head
(并查找level
和hash
信息).然后,使用您喜欢的块浏览器来了解当前头部的水平.或者,
./tezos-client bootstrapped
命令旨在仅在节点同步时挂起并返回.You can request the current head of your node using
./tezos-client rpc get /chains/main/blocks/head
(and look for thelevel
andhash
information). Then, use your favorite block explorer to know the level of the current head.Alternatively, the
./tezos-client bootstrapped
command aims to hang and return only when the node is synchronized. -
- 2019-07-31
这是我的goto命令.
tezos-client rpc get /chains/main/blocks/head/ | jq -r '.header.level, .header.timestamp';date --iso-8601=seconds
输出将类似于:
544640 2019-07-31T10:53:57Z 2019-07-31T10:54:10+00:00
哪个是节点的块级别,最后一个块时间戳和系统的时间戳.
运行几次,等待10到20秒,以估算剩余的追赶时间.
Here's my goto command.
tezos-client rpc get /chains/main/blocks/head/ | jq -r '.header.level, .header.timestamp';date --iso-8601=seconds
The output will look something like:
544640 2019-07-31T10:53:57Z 2019-07-31T10:54:10+00:00
Which is the node's block level, the last block timestamp and your system's timestamp.
Run it a few times, waiting 10 - 20 seconds in between, to get an estimate on the time remaining to catch up.
如何从未同步的节点(通过RPC)获取实际的区块链级别.即我的节点如何剩下多少块用于同步?