开发文档

可能的服务器状态

此篇内容尚无原站英文对应版本;切换语言后可浏览英文资料库。

依据streamd服务器配置方式、运行时间和其他因素,一个服务器可能在不同程度上参与跨国Stream点对点网络。这在对server_info 和server_state命令的回应中表示为server_state字段。这种可能的回应追踪一系列上升互动,每个后面的值取代前一个。它们的定义如下(以从小到大优先级排序):

ValueDescription
disconnectedThe server is not connected to the Stream Ledger peer-to-peer network whatsoever. It may be running in offline mode, or it may not be able to access the network for whatever reason.
connectedThe server believes it is connected to the network.
syncingThe server is currently behind on ledger versions. (It is normal for a server to spend a few minutes catching up after you start it.)
trackingThe server is in agreement with the network
fullThe server is fully caught-up with the network and could participate in validation, but is not doing so (possibly because it has not been configured as a validator).
validatingThe server is currently participating in validation of the ledger
proposingThe server is participating in validation of the ledger and currently proposing its own version

 

注意:full、validating和proposing间的区别是基于剩余全球网络的同步性,而且一般性操作时服务器在这些状态间波动很正常。

THE NEXT CONNECTION

下一次连接,从这里开始。

加入 Stream 社区,一起探索价值互联。

联系我们