基于区块链的毕业设计Eth2 Weak Subjectivity Provider Server – Eth2弱主观性提供者服务器

本文提供基于区块链的毕业设计国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,基于区块链的毕业设计Eth2 Weak Subjectivity Provider Server – Eth2弱主观性提供者服务器 是一篇很好的国外资料

Eth2 Weak Subjectivity Provider Server

This repo contains a simple Eth2 weak subjectivity provider server.

Prerequisites

  • Docker Engine
  • Docker Compose

Launching the server

  1. Build the containers:
  • Copy ./default.env to ./.env and fill in your ETH2_API
  • Build the docker image:
docker-compose build
  1. Run the server on the standard HTTP port 80:
docker-compose up

User guide

The Eth2 WS server will serve the following data in JSON format:

  • current_epoch: The current epoch number of the Eth2 network
  • is_safe: A boolean value representing whether the Eth2 API endpoint used was operating under safe WS conditions, i.e., if the current epoch is within the safe WS period of the WS checkpoint that is provided in this response
  • ws_checkpoint: The WS checkpoint in block_root:epoch_number format
  • ws_period: The WS period as calculated for the state at the WS checkpoint that is provided in this response

Example:

{   "current_epoch":16552,   "is_safe":true,   "ws_checkpoint":"0xe8e4b0170c4b9bfb09e477c754db0f5a02756859ccf1e834a39dbafbe9292f3c:15601",   "ws_period":1188 }

We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Learn more.


Eth2 Weak Subjectivity Provider Server

这个repo包含一个简单的Eth2弱主观性提供者服务器。

Prerequisites

  • 构建docker映像:
  • 在标准HTTP端口80上运行服务器:

Launching the server

  1. 当前历元:ETH2网络的当前epoch编号是安全的:一个布尔值,表示所使用的ETH2 API端点是否在安全WS条件下运行,例如,如果当前epoch位于此响应中提供的WS-checkpoint的安全WS-period内
  • WS-checkpoint:WS-checkpoint-in块_根:历元数format
  • ws_period:为此响应中提供的ws checkpoint处的状态计算的ws-period
docker-compose build
  1. Run the server on the standard HTTP port 80:
docker-compose up

User guide

Eth2 WS服务器将以JSON格式提供以下数据:

  • current_epoch: The current epoch number of the Eth2 network
  • is_safe: A boolean value representing whether the Eth2 API endpoint used was operating under safe WS conditions, i.e., if the current epoch is within the safe WS period of the WS checkpoint that is provided in this response
  • ws_checkpoint: The WS checkpoint in block_root:epoch_number format
  • ws_period: The WS period as calculated for the state at the WS checkpoint that is provided in this response

示例:

{   "current_epoch":16552,   "is_safe":true,   "ws_checkpoint":"0xe8e4b0170c4b9bfb09e477c754db0f5a02756859ccf1e834a39dbafbe9292f3c:15601",   "ws_period":1188 }

我们使用可选的第三方分析cookie来了解您如何使用GitHub.com网站所以我们可以制造更好的产品。了解更多。

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/18493.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » 基于区块链的毕业设计Eth2 Weak Subjectivity Provider Server – Eth2弱主观性提供者服务器

提供最优质的资源集合

立即查看 了解详情