Stratos Chain 介绍
`Stratos 是第一个去中心化数据架构,它提供了可扩展、可靠、自平衡的存储、数据库和计算网络,并为数据处理提供坚实的基础。 Stratos-Chain 是 Stratos 协议的 Golang 实现。
源码编译
请首先安装
操作系统
git clone https://github.com/stratosnet/stratos-chain.git
cd stratos-chain
make build
此时, 你会在 ./build 目录下找到可执行的二进制文件 stchaincli 和 stchaind。
可执行文件
在 ./build 目录中包含有2种类型的可执行文件
stchaincli
Strstos-chain 客户端(Client)。 它是与 stchaind 交互的命令行界面,也是 Stratos 网络(主网络、测试网络或私有网络)的入口点,能够作为完整节点(默认)、存档节点(保留所有历史状态)或轻节点(实时获取数据)运行。 它可以被其他进程用作通过 JSON RPC 端点进入 Stratos 网络的网关。 可使用 stchaincli --help
或 Stratos Chain `stchaincli` Commands 查询命令选项
stchaind
Strstos-chain 服务端 (the app daemon server).可使用 stchaind --help
或 Stratos Chain `stchaind` Commands 查询命令选项
示例:
stchaincli --help
stchaincli --help
Usage:
stchaincli [command]
Available Commands:
status Query remote node for status
config Create or query an application CLI configuration file
query Querying subcommands
tx Transactions subcommands
rest-server Start LCD (light-client daemon), a local REST server
keys Add or view local private keys
version Print the app version
help Help about any command
stchaind --help
stchaind --help
Usage:
stchaind [command]
Available Commands:
init Initialize private validator, p2p, genesis, and application configuration files
collect-gentxs Collect genesis txs and output a genesis.json file
migrate Migrate genesis to a specified target version
gentx Generate a genesis tx carrying a self delegation
validate-genesis validates the genesis file at the default location or at the location passed as an arg
add-genesis-account Add a genesis account to genesis.json
faucet Run a faucet cmd
debug Tool for helping with debugging your application
start Run the full node
unsafe-reset-all Resets the blockchain database, removes address book files, and resets priv_validator.json to the genesis state
tendermint Tendermint subcommands
export Export state to JSON
version Print the app version
help Help about any command
连接到 Stratos 网络
这里我们无法浏览所有的命令行标志,但我们列举了一些常见的参数组合,让您快速上手来运行自己的 Stratos
节点。
测试网上的完整节点
有关连接测试网络的详细说明,请参阅Stratos-chain testnet 测试网说明。
主网上的完整节点
主网的详细说明将在以后添加。
参与贡献
感谢您考虑帮助提供源代码!我们欢迎互联网上任何人的贡献,并感谢即使是最小的修复!如果您想为 Stratos-chain
做出贡献,请分支、修复、提交并向我们发送拉取请求 (pull request) 以审查并合并到主代码库中。
请确保符合我们的编码指南
代码需要遵守官方 Go 格式( formatting) 及指南 (gofmt)。
代码文档需要遵守官方 Go 评论指南。
拉取请求(PR)需要基于并针对
dev
分支打开,PR 名称应遵循常规提交
(conventional commits
)。提交消息应该以它们修改的包为前缀
例如 "pp: make trace configs optional"
License
Copyright 2021 Stratos
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Last updated