传奇4
成为传的战争

什么是EIYARO?

Spacemesh-浏览器

EIYARO 协议的官方 golang 实现。

自动构建可用于稳定版本和不稳定的 master 分支。二进制存档在 https://github.com/EIYARO-Project/core/releases 上发布。

什么是EIYARO?

EIYARO项目的目标是打造应用场景广泛的区块链生态,为用户提供安全、高效、便捷的数字资产交易服务。我们将通过持续的技术创新和优化,降低交易成本,提高交易速度,确保网络安全稳定。

在当前状态下能够:eiyaro

  • 管理密钥、帐户和资产
  • 发送交易,即发行、支出和报废资产

从源代码构建

要求

  • 转到 1.18 或更高版本,设置为首选目录$GOPATH

安装

确保 Go 及其支持版本已正确安装:

$ go version
$ go env GOROOT GOPATH
  • 获取源代码
$ git clone https://github.com/EIYARO-Project/core.git $GOPATH/src/eiyaro/core
  • 构建源代码
$ cd $GOPATH/src/eiyaro/core
$ go mod tidy
$ make eiyarod    
$ make eiyarocli  

成功构建项目时,和 二进制文件应分别存在于 和 目录中。eiyarodeiyaroclicmd/eiyarodcmd/eiyarocli

可执行文件

EIYARO 项目附带了在目录中找到的几个可执行文件。cmd

命令 描述
eiyarod Eiyarod 命令可以通过自定义参数帮助初始化和启动 Eiyaro 域。 用于命令行选项。eiyarod --help
eiyarocli 我们的主要 EIYARO CLI 客户端。它是进入EIYARO网络(主网、测试网或专用网)的入口点,能够作为全节点存档节点运行(保留所有历史状态)。它可以被其他进程用作进入 EIYARO 网络的网关,通过暴露在 HTTP、WebSocket 和/或 IPC 传输之上的 JSON RPC 端点。 以及用于命令行选项的 eiyaroccli API 页面eiyarocli --help

Running eiyaro

目前,eiyaro 仍在积极开发中,需要做大量的工作,但我们也为那些渴望做点什么的人提供以下内容。本节不会详细介绍所有命令,有关更多信息,请帮助每个命令,例如 .eiyaroeiyarodeiyaroclieiyarocli help

初始化

首先,初始化节点:

$ cd ./cmd/eiyarod
$ ./eiyarod init --chain_id mainnet

该标志有三个选项:--chain_id

  • mainnet:连接到主网。
  • testnet:连接到测试网智慧。
  • solonet:独立模式。

之后,您将看到生成,然后启动节点。config.toml

launch

$ nohup ./eiyarod node &

可用于以下标志:eiyarod node

Flags:
      --auth.disable                     Disable rpc access authenticate
      --chain_id string                  Select network type
  -h, --help                             help for node
      --log_file string                  Log output file (default "log")
      --log_level string                 Select log level(debug, info, warn, error or fatal)
      --mining                           Enable mining
      --p2p.dial_timeout int             Set dial timeout (default 3)
      --p2p.handshake_timeout int        Set handshake timeout (default 30)
      --p2p.keep_dial string             Peers addresses try keeping connecting to, separated by ',' (for example "1.1.1.1:46657;2.2.2.2:46658")
      --p2p.laddr string                 Node listen address. (0.0.0.0:0 means any interface, any port) (default "tcp://0.0.0.0:46656")
      --p2p.lan_discoverable             Whether the node can be discovered by nodes in the LAN (default true)
      --p2p.max_num_peers int            Set max num peers (default 50)
      --p2p.node_key string              Node key for p2p communication
      --p2p.proxy_address string         Connect via SOCKS5 proxy (eg. 127.0.0.1:1086)
      --p2p.proxy_password string        Password for proxy server
      --p2p.proxy_username string        Username for proxy server
      --p2p.seeds string                 Comma delimited host:port seed nodes
      --p2p.skip_upnp                    Skip UPNP configuration
      --prof_laddr string                Use http to profile eiyarod programs
      --simd.enable                      Enable SIMD mechan for tensority
      --vault_mode                       Run in the offline enviroment
      --wallet.disable                   Disable wallet
      --wallet.rescan                    Rescan wallet
      --wallet.txindex                   Save global tx index
      --web.closed                       Lanch web browser or not
      --ws.max_num_concurrent_reqs int   Max number of concurrent websocket requests that may be processed concurrently (default 20)
      --ws.max_num_websockets int        Max number of websocket connections (default 25)

Global Flags:
      --home string   root directory for config and data
  -r, --root string   DEPRECATED. Use --home (default "/Users/zcc/Library/Application Support/EIYARO")
      --trace         print out full stack trace on errors

假设节点正在运行,则常规工作流如下所示:eiyarod

  • 创建密钥,然后您可以创建帐户和资产。
  • 发送事务,即构建、签名和提交事务。
  • 查询各种信息,比如说,可用的密钥、账户、密钥、余额、交易等。

SIMD功能:

您可以启用 simd 功能来加速 PoW 验证(例如,在挖矿和区块验证期间):

$ eiyarod node --simd.enable

要启用此功能,您需要自己从源代码编译,并且 .make eiyarod-simd

更重要的是,

  • 如果您使用的是 Mac,请确保 llvm 是由 安装的。brew install llvm
  • 如果您使用的是 Windows,请确保已安装 mingw-w64 并相应地设置 PATH 环境变量。

有关使用命令的更多详细信息,请参阅 API 参考eiyarocli

Dashboard

复制并保存您的 tokename,tokename 用于登录您的节点页面 访问仪表板:

$ cd ./cmd/eiyarocli
$ ./eiyarocli create-access-token eiyaro

$ open http://localhost:9888/ OR Login with your IP + 9888 port

在 Docker 中

确保您的 Docker 版本为 17.05 或更高版本。

$ docker build -t eiyaro .

有关用法,请参阅 running-in-docker-wiki

使用 Homebrew 安装

$ brew tap eiyaro/eiyaro && brew install eiyaro
赞(0) 打赏
未经允许不得转载:传奇4 » 什么是EIYARO?

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏