Skip to content

Commit

Permalink
[euler-dev3] New testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
hleb-albau committed Dec 26, 2018
1 parent 8d62f19 commit 229bca7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# cyberd. Knowledge consensus computer
![banner](logo.png)

[![testnet](https://img.shields.io/badge/testnet-euler--dev2-green.svg?style=flat-square)](https://github.com/cybercongress/cyberd/blob/master/docs/run_validator.md)
[![testnet](https://img.shields.io/badge/testnet-euler--dev3-green.svg?style=flat-square)](https://github.com/cybercongress/cyberd/blob/master/docs/run_validator.md)
[![version](https://img.shields.io/github/release/cybercongress/cyberd.svg?style=flat-square)](https://github.com/cosmos/cosmos-sdk/releases/latest)
[![CircleCI](https://img.shields.io/circleci/project/github/cybercongress/cyberd.svg?style=flat-square)](https://circleci.com/gh/cybercongress/cyberd/tree/master)
[![license](https://img.shields.io/github/license/cybercongress/cyb.svg?style=flat-square)](https://github.com/cybercongress/cyberd)
Expand Down
12 changes: 2 additions & 10 deletions daemon/init/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command {
if chainID == "" {
chainID = fmt.Sprintf("test-chain-%v", common.RandStr(6))
}
nodeID, _, err := InitializeNodeValidatorFiles(config)
_, _, err := InitializeNodeValidatorFiles(config)
if err != nil {
return err
}
Expand All @@ -74,16 +74,8 @@ func InitCmd(ctx *server.Context, cdc *codec.Codec) *cobra.Command {
return err
}

toPrint := printInfo{
ChainID: chainID,
Moniker: config.Moniker,
NodeID: nodeID,
AppMessage: appState,
}

cfg.WriteConfigFile(filepath.Join(config.RootDir, "config", "config.toml"), config)

return displayInfo(cdc, toPrint)
return nil
},
}

Expand Down
2 changes: 1 addition & 1 deletion docs/run_validator.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Join Cyberd Network As Validator

**Note**. Currently active dev testnet is `euler-dev2` (substitute <testnet_chain_id> with that value).
**Note**. Currently active dev testnet is `euler-dev3` (substitute <testnet_chain_id> with that value).

## Prepare your server

Expand Down
11 changes: 10 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@ then
cyberd init
cp /genesis.json /root/.cyberd/config/
cp /config.toml /root/.cyberd/config/
cat /root/.cyberd/config/genesis.json
fi

if [ ! -f "/root/.cyberd/config/genesis.json" ]
then
cp /genesis.json /root/.cyberd/config/
fi

if [ ! -f "/root/.cyberd/config/config.toml" ]
then
cp /config.toml /root/.cyberd/config/
fi

exec "$@"
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ require (
github.com/tendermint/btcd v0.0.0-20180816174608-e5840949ff4f // indirect
github.com/tendermint/go-amino v0.14.1
github.com/tendermint/iavl v0.12.0 // indirect
github.com/tendermint/tendermint v0.27.3
github.com/tendermint/tendermint v0.27.4
github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc // indirect
github.com/zondax/ledger-goclient v0.1.0 // indirect
golang.org/x/crypto v0.0.0-20181015023909-0c41d7ab0a0e // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ github.com/tendermint/go-amino v0.14.1 h1:o2WudxNfdLNBwMyl2dqOJxiro5rfrEaU0Ugs6o
github.com/tendermint/go-amino v0.14.1/go.mod h1:i/UKE5Uocn+argJJBb12qTZsCDBcAYMbR92AaJVmKso=
github.com/tendermint/iavl v0.12.0 h1:xcaFAr+ycqCj7WN1RzL2EfcBioRDOHcU1oWcg83K028=
github.com/tendermint/iavl v0.12.0/go.mod h1:EoKMMv++tDOL5qKKVnoIqtVPshRrEPeJ0WsgDOLAauM=
github.com/tendermint/tendermint v0.27.3 h1:yJQhTEjFiNtTqO2OQTPnIYmy1Gj3EBqBik3c5wCY7nU=
github.com/tendermint/tendermint v0.27.3/go.mod h1:ymcPyWblXCplCPQjbOYbrF1fWnpslATMVqiGgWbZrlc=
github.com/tendermint/tendermint v0.27.4 h1:rytK6+o/TYPhLJJu/tRaq6PBx/25VGAwiee2qdNnFsY=
github.com/tendermint/tendermint v0.27.4/go.mod h1:ymcPyWblXCplCPQjbOYbrF1fWnpslATMVqiGgWbZrlc=
github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc h1:BCPnHtcboadS0DvysUuJXZ4lWVv5Bh5i7+tbIyi+ck4=
github.com/whyrusleeping/base32 v0.0.0-20170828182744-c30ac30633cc/go.mod h1:r45hJU7yEoA81k6MWNhpMj/kms0n14dkzkxYHoB96UM=
github.com/zondax/ledger-goclient v0.1.0 h1:9JZVE1s565asON/yvxvpDB6k+xfel1BGuvlNflLCu+o=
Expand Down
2 changes: 1 addition & 1 deletion testnet/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ db_backend = "leveldb"
db_dir = "data"

# Output level for logging, including package level options
log_level = "*:error"
log_level = "main:info,state:info,*:error"

# Output format: 'plain' (colored text) or 'json'
log_format = "plain"
Expand Down
2 changes: 1 addition & 1 deletion x/mint/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const (
// assuming 1 second block times
BlocksPerYear = 60 * 60 * 24 * 365
// todo hardcoded
GenesisSupply = uint64(17) * 1000 * 1000 * 1000
GenesisSupply = uint64(13)*1000*1000*1000 + uint64(10)*1000*1000
// percentage value 0....1, 1 means 100% year inflation
InflationRatePerYear = 1
)

0 comments on commit 229bca7

Please sign in to comment.