Browse Source

update genesis docs, closes #2814 (#2831)

pull/2847/head
Zach 6 years ago
committed by Anton Kaliaev
parent
commit
27fcf96556
2 changed files with 24 additions and 29 deletions
  1. +21
    -29
      docs/tendermint-core/using-tendermint.md
  2. +3
    -0
      types/genesis.go

+ 21
- 29
docs/tendermint-core/using-tendermint.md View File

@ -60,42 +60,34 @@ definition](https://github.com/tendermint/tendermint/blob/master/types/genesis.g
``` ```
{ {
"genesis_time": "2018-07-09T22:43:06.255718641Z",
"chain_id": "chain-IAkWsK",
"validators": [
{
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "oX8HhKsErMluxI0QWNSR8djQMSupDvHdAYrHwP7n73k="
},
"power": "1",
"name": "node0"
},
{
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "UZNSJA9zmeFQj36Rs296lY+WFQ4Rt6s7snPpuKypl5I="
},
"power": "1",
"name": "node1"
"genesis_time": "2018-11-13T18:11:50.277637Z",
"chain_id": "test-chain-s4ui7D",
"consensus_params": {
"block_size": {
"max_bytes": "22020096",
"max_gas": "-1"
}, },
{
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "i9GrM6/MHB4zjCelMZBUYHNXYIzl4n0RkDCVmmLhS/o="
},
"power": "1",
"name": "node2"
"evidence": {
"max_age": "100000"
}, },
"validator": {
"pub_key_types": [
"ed25519"
]
}
},
"validators": [
{ {
"address": "39C04A480B54AB258A45355A5E48ADDED9956C65",
"pub_key": { "pub_key": {
"type": "tendermint/PubKeyEd25519", "type": "tendermint/PubKeyEd25519",
"value": "0qq7954l87trEqbQV9c7d1gurnjTGMxreXc848ZZ5aw="
"value": "DMEMMj1+thrkUCGocbvvKzXeaAtRslvX9MWtB+smuIA="
}, },
"power": "1",
"name": "node3"
"power": "10",
"name": ""
} }
]
],
"app_hash": ""
} }
``` ```


+ 3
- 0
types/genesis.go View File

@ -19,6 +19,9 @@ const (
//------------------------------------------------------------ //------------------------------------------------------------
// core types for a genesis definition // core types for a genesis definition
// NOTE: any changes to the genesis definition should
// be reflected in the documentation:
// docs/tendermint-core/using-tendermint.md
// GenesisValidator is an initial validator. // GenesisValidator is an initial validator.
type GenesisValidator struct { type GenesisValidator struct {


Loading…
Cancel
Save