dappledger/AnnChain
Fork: 124 Star: 225 (更新于 1970-01-01 00:00:00)
license: Apache-2.0
Language: Go .
AnnChain is the core engine of the new generation alliance chain of Zhongan Science and Technology
最后发布版本: v1.5.0 ( 2020-05-06 17:30:47)
AnnChain/简体中文
AnnChain is the core engine of the new generation alliance chain of Zhongan Science and Technology. It has the characteristics of high security, high performance and high availability. It aims to provide a tightly integrated block chain system for enterprises. It is very suitable for business cooperation among commercial organizations with alliance nature, and also for high-frequency financial transactions and security. A demanding scene. Dozens of actual business scenarios have been applied.
Branch | Tests | Coverage |
---|---|---|
master |
Releases
Automated builds are available for stable releases.
Requirements
Requirement | Notes |
---|---|
Go version | Go1.12.0 or higher |
Building the source
export GOPATH=$HOME/.gopkgs
git clone https://github.com/dappledger/AnnChain.git
cd AnnChain
./get_pkgs.sh
make
Supported Consensus
AnnChain supports bft and raft consensus as valid consensus options,and bft is the default.if you want to use raft, you can operate like this:
First, set consensus to raft in config.toml file:
consensus = "raft"
Then, add raft peers config file raft-cluster.json into the runtime dir(take four nodes for example):
{
"advertise": "ann7939-validator8fc99df2-2.default.svc.cluster.local:23000",
"local": {
"bind": "0.0.0.0:23000",
"pub_key": [
1,
"35EC28D113DB8D057140F903BAB049770CABAD4C2838509602552511C3F2D2E3"
],
"rpc": "ann7939-validator8fc99df2-2.default.svc.cluster.local:47000"
},
"peers": [
{
"bind": "ann7939-validator480649ca-0.default.svc.cluster.local:23000",
"pub_key": [
1,
"7B788FD0A5A1504C438B2D6B5602717C07F5E82D25175B4065B75C46017B770D"
],
"rpc": "ann7939-validator480649ca-0.default.svc.cluster.local:47000"
},
{
"bind": "ann7939-validatorb14a47dc-1.default.svc.cluster.local:23000",
"pub_key": [
1,
"1FE0A5560BB9376348CB8F218BDA2011280606571DB20B841FA9F7560143796D"
],
"rpc": "ann7939-validatorb14a47dc-1.default.svc.cluster.local:47000"
},
{
"bind": "ann7939-validator8fc99df2-2.default.svc.cluster.local:23000",
"pub_key": [
1,
"35EC28D113DB8D057140F903BAB049770CABAD4C2838509602552511C3F2D2E3"
],
"rpc": "ann7939-validator8fc99df2-2.default.svc.cluster.local:47000"
},
{
"bind": "ann7939-validatore78bd527-3.default.svc.cluster.local:23000",
"pub_key": [
1,
"3C521E9D3D942654FA1E6C52E7B3A4EDE059E047FB4DF4F00F04C092149002EA"
],
"rpc": "10.103.237.176:47000"
}
]
}
-
advertise: advertise address is used for others peers to connect.
-
local.bind: local bind address for raft protocl.
-
local.pub_key: node's pubkey, same as pbft pubkey.
-
local.rpc: node's rpc bind address.
-
peers: others node's bind address and pub_key info, including it selft.
Quick Start
Single node
./build.sh genesis
./build/genesis init
./build/genesis run
Local cluster using docker-compose
# docker build image and docker-compose run
make fastrun
# remove cluster
make clean_fastrun
Usage
Command Tool
Golang SDK
Java SDK
Applications
Contributing
If you have any questions,please report.
If you'd like to contribute code, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base
最近版本更新:(数据更新于 1970-01-01 00:00:00)
2020-05-06 17:30:47 v1.5.0
2020-02-10 14:54:07 v1.4.4
2020-01-16 14:32:38 v1.4.3
2019-12-27 16:45:49 v1.4.2
2019-11-07 15:14:37 v1.4.1
2019-10-18 14:14:24 v1.4.0
2019-09-02 19:34:00 v1.3.4
2019-09-02 15:29:52 v0.7.1_stable
2019-09-02 15:28:39 v0.6.4_stable
2019-05-28 13:29:35 v0.6.3_stable
dappledger/AnnChain同语言 Go最近更新仓库
2024-11-06 03:37:39 containerd/containerd
2024-11-05 20:42:00 aurora-develop/aurora
2024-11-05 08:55:31 XTLS/Xray-core
2024-11-05 00:03:47 SagerNet/sing-box
2024-11-04 20:34:19 Permify/permify
2024-11-03 20:10:56 flipped-aurora/gin-vue-admin