Skip to content

Commit

Permalink
Merge PR: set the genesis block to 6028399 and DefaultBondDenom to to…
Browse files Browse the repository at this point in the history
…kt (#177)

* set DefaultBondDenom in genesis to tokt

* set DefaultBondDenom in backend.db to tokt

* set the genesis block to 6028399
  • Loading branch information
zhongqiuwood authored May 29, 2020
1 parent b0c7959 commit 915570d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 40 deletions.
24 changes: 15 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ SUM := $(shell which shasum)
COMMIT := $(shell git rev-parse HEAD)
CAT := $(if $(filter $(OS),Windows_NT),type,cat)

GithubTop=github.com/okex/okchain/vendor/github.com

Version=v0.10.5
CosmosSDK=v0.37.9
Tendermint=v0.32.10
Iavl=v0.12.4
Name=okchain
ServerName=okchaind
ClientName=okchaincli
# the height of the 1st block is GenesisHeight+1
GenesisHeight=6028399

# process linker flags
ifeq ($(VERSION),)
Expand All @@ -25,21 +29,23 @@ endif
build_tags += $(BUILD_TAGS)
build_tags := $(strip $(build_tags))

ldflags = -X github.com/cosmos/cosmos-sdk/version.Version=$(Version) \
-X github.com/cosmos/cosmos-sdk/version.Name=$(Name) \
-X github.com/cosmos/cosmos-sdk/version.ServerName=$(ServerName) \
-X github.com/cosmos/cosmos-sdk/version.ClientName=$(ClientName) \
-X github.com/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X github.com/cosmos/cosmos-sdk/version.CosmosSDK=$(CosmosSDK) \
-X github.com/cosmos/cosmos-sdk/version.Tendermint=$(Tendermint) \
-X "github.com/cosmos/cosmos-sdk/version.BuildTags=$(build_tags)"

ldflags = -X $(GithubTop)/cosmos/cosmos-sdk/version.Version=$(Version) \
-X $(GithubTop)/cosmos/cosmos-sdk/version.Name=$(Name) \
-X $(GithubTop)/cosmos/cosmos-sdk/version.ServerName=$(ServerName) \
-X $(GithubTop)/cosmos/cosmos-sdk/version.ClientName=$(ClientName) \
-X $(GithubTop)/cosmos/cosmos-sdk/version.Commit=$(COMMIT) \
-X $(GithubTop)/cosmos/cosmos-sdk/version.CosmosSDK=$(CosmosSDK) \
-X $(GithubTop)/cosmos/cosmos-sdk/version.Tendermint=$(Tendermint) \
-X $(GithubTop)/cosmos/cosmos-sdk/version.BuildTags=$(build_tags) \
-X $(GithubTop)/tendermint/tendermint/types.startBlockHeightStr=$(GenesisHeight) \


ldflags += $(LDFLAGS)
ldflags := $(strip $(ldflags))

BUILD_FLAGS := -ldflags '$(ldflags)' -gcflags "all=-N -l"
BUILD_TESTNET_FLAGS := $(BUILD_FLAGS) -ldflags '-X github.com/okex/okchain/vendor/github.com/tendermint/tendermint/types.startBlockHeightStr=6028399'
BUILD_TESTNET_FLAGS := $(BUILD_FLAGS)

all: install

Expand Down
54 changes: 23 additions & 31 deletions app/genesis/genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"coins": [
{
"amount": "9000000.00000000",
"denom": "okt"
"denom": "tokt"
}
],
"delegated_free": [],
Expand Down Expand Up @@ -54,7 +54,7 @@
"crisis": {
"constant_fee": {
"amount": "1000.00000000",
"denom": "okt"
"denom": "tokt"
}
},
"debug": null,
Expand All @@ -64,17 +64,17 @@
"delist_min_deposit": [
{
"amount": "100.00000000",
"denom": "okt"
"denom": "tokt"
}
],
"delist_voting_period": "259200000000000",
"list_fee": {
"amount": "20000.00000000",
"denom": "okt"
"denom": "tokt"
},
"transfer_ownership_fee": {
"amount": "10.00000000",
"denom": "okt"
"denom": "tokt"
},
"withdraw_period": "259200000000000"
},
Expand Down Expand Up @@ -117,7 +117,7 @@
},
"min_self_delegation": {
"amount": "0.00100000",
"denom": "okt"
"denom": "tokt"
},
"pubkey": "okchainvalconspub1zcjduepqqxsxcjjletkq40ypzuqz8n925pk0ycw9h8g4saw27adyf2t93szsvpk77u",
"validator_address": "okchainvaloper10q0rk5qnyag7wfvvt7rtphlw589m7frs863s3m"
Expand All @@ -130,7 +130,7 @@
"type": "tendermint/PubKeySecp256k1",
"value": "AgYaL1tZ7ekqvweQhKojG8sDHUfN23qJWviAsTDIWvYU"
},
"signature": "ZuRwla7Kpt6H3etoJ6peAwzaC6k8m8lu7lQozm4oQKIpYEaoWAIZAqZBbAaqebKmIov3f22Ys4xDOlCt2teHlg=="
"signature": "MX+gzxaThOt7qpgX8mNGlgqpv3mbLQGvErMaA9VjsAk4WHyvcGQXWxuu2PwDhExApbhZQrBtz+5fZ7ZWcbSo9Q=="
}
]
}
Expand All @@ -143,7 +143,7 @@
"min_deposit": [
{
"amount": "100.00000000",
"denom": "okt"
"denom": "tokt"
}
]
},
Expand All @@ -168,23 +168,23 @@
"minted_per_block": [
{
"amount": "0.00000000",
"denom": "okt"
"denom": "tokt"
}
],
"next_block_to_update": "0"
},
"params": {
"blocks_per_year": "10519200",
"inflation_rate": "0.01000000",
"mint_denom": "okt"
"mint_denom": "tokt"
}
},
"order": {
"open_orders": null,
"params": {
"fee_per_block": {
"amount": "0.00000100",
"denom": "okt"
"amount": "0.00000000",
"denom": "tokt"
},
"max_deals_per_block": "1000",
"order_expire_blocks": "259200",
Expand All @@ -198,7 +198,7 @@
"min_deposit": [
{
"amount": "100.00000000",
"denom": "okt"
"denom": "tokt"
}
],
"voting_period": "259200000000000"
Expand All @@ -222,7 +222,7 @@
"last_total_power": "0",
"last_validator_powers": null,
"params": {
"bond_denom": "okt",
"bond_denom": "tokt",
"epoch": 252,
"max_bonded_validators": 21,
"max_validators_to_vote": 30,
Expand All @@ -244,31 +244,23 @@
"params": {
"burn_fee": {
"amount": "10.00000000",
"denom": "okt"
"denom": "tokt"
},
"issue_fee": {
"amount": "20000.00000000",
"denom": "okt"
"amount": "2500.00000000",
"denom": "tokt"
},
"mint_fee": {
"amount": "2000.00000000",
"denom": "okt"
"amount": "10.00000000",
"denom": "tokt"
},
"modify_fee": {
"amount": "0.00000000",
"denom": "okt"
},
"multi_send_fee": {
"amount": "0.01000000",
"denom": "okt"
},
"send_fee": {
"amount": "0.00000000",
"denom": "okt"
"denom": "tokt"
},
"transfer_ownership_fee": {
"amount": "10.00000000",
"denom": "okt"
"denom": "tokt"
}
},
"tokens": [
Expand All @@ -278,7 +270,7 @@
"original_symbol": "OKT",
"original_total_supply": "1000000000.00000000",
"owner": "okchain10q0rk5qnyag7wfvvt7rtphlw589m7frsmyq4ya",
"symbol": "okt",
"symbol": "tokt",
"total_supply": "1000000000.00000000",
"whole_name": "OKT"
}
Expand All @@ -302,7 +294,7 @@
"app_upgrade_min_deposit": [
{
"amount": "100.00000000",
"denom": "okt"
"denom": "tokt"
}
],
"app_upgrade_voting_period": "259200000000000"
Expand Down
Binary file modified x/backend/orm/backend.db
Binary file not shown.

0 comments on commit 915570d

Please sign in to comment.