Skip to content

Commit

Permalink
Update mainnet genesis with new accounts & decrease create validator …
Browse files Browse the repository at this point in the history
…stake (#441)

* Change mainnet genesis validator delegations to 20150CORE
* Add another team wallet & bridge wallet to genesis
  • Loading branch information
ysv authored Mar 15, 2023
1 parent c9b37aa commit bd00ef9
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"value": {
"denom": "ucore",
"amount": "25000000000"
"amount": "20150000000"
}
}
],
Expand Down Expand Up @@ -89,6 +89,6 @@
}
},
"signatures": [
"CkBfDhX8wr3CetkC3HL3HBllPGZq3RAiFZINvaFkw9KvlDFRd4WD4cZ1H4lmurt3iy8Be/OaGAteNn9iPDuuwmouCkBHR6D+NbifDq+l5Sz8S6ueoLhpe3EXruLmDCF4YD44mwKr6OPMwG1Eg4+JCEWQUxpoE+qMFGRXNbqP28Gn4HyE"
"CkAlDu5h5bZSh6a+nUiwBylsuKn5jMEy8hu4XD5NzzvUoUDe1izLExi1qv6Mhq2hyChnQQoIvAU2ya+Sez9DNNVrCkAqr9kNUWtrEjNAN/g0WI9mx2ZL+lpciCEkoHyfYE3J/2rnl4ZheAzIJ2jJhvYUxp6qZ8fCiPvGA2XYT+MpHwAS"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"value": {
"denom": "ucore",
"amount": "25000000000"
"amount": "20150000000"
}
}
],
Expand Down Expand Up @@ -89,6 +89,6 @@
}
},
"signatures": [
"CkBtRbGp6yw/jImK6vjZb/anylO5ZBOxJcStWgquZmtZgkCHisoURPTDNGhY9E4Z6NjAFNm5cllV1Lx5VuhgQfOYCkBKFrTKc5Yx2zhPHA8tVw2XFzS+aXrGlgtFBDd2zuTazwhgX8DwqnAabXHWt7MTp3VF9USqNCbeBPxfYFjRITJx"
"CkBqig8iz5pyIBLfZMIm31GCpCz485DGbRkGH7HWJRnh5Xny2ycnt0+8cBgq7otYPMBQIMeDobcNOAU0yFBrnOpNCkCUoGxtr5QumTv1zrKKgmA6R9qkVmZXs63HCBDgRR7QJQIgg3iZYo8D0948LQzIrLHoqlArM1cK8kkI03OyRttI"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"value": {
"denom": "ucore",
"amount": "25000000000"
"amount": "20150000000"
}
}
],
Expand Down Expand Up @@ -89,6 +89,6 @@
}
},
"signatures": [
"CkCnXJ/iwhkkShK/xQuEeJql4GU8ra0pJz4To8TZKb7aJlLZuStrmWvWLapF7FZ0sCRUBCSka349EnKHszAhCYbZCkD1MqUrVzDY/uIPDE1qYsBzj/X7qLUJFpzwSq2vRBzu9Q8xQffr05CTKPGKphm5x0TvUcXHkQ5gM3eMbFNn/NLl"
"CkBDGuyJKSRyeV73NJ5j7Ph0TtZdtb1D7Jy93ogewijljSYBXlEH8ysV5If2irHX+k0W6FBMuYmJf8jURq98+LT8CkD5DWwQTCJZ7bED1/wo02G9RaWWwQgZxNJSVPC42PbNuCREg/eHCDbd0DG2J+0SzvrN195TEX+0vjemJiAjWvC2"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"value": {
"denom": "ucore",
"amount": "25000000000"
"amount": "20150000000"
}
}
],
Expand Down Expand Up @@ -89,6 +89,6 @@
}
},
"signatures": [
"CkC5M9b8tyh/1IIKkc2ToYK9utaZ6wnVzt+gsmmFcgipyHk4C0DL6GIGcOkpbsvP9ff6XU311wuH4dLnLu70D1ljCkDjVC02ryq2BAYKgyirDXufwhytI5C63ao6IXcNz7aauFp2i0qZGwEX+x181/8tV53Kxt0UXRyih+1A/Klj1iKT"
"CkAJchNXsMo46ghqO93SJONoZ0x+i6bWgqhU6N4+tywVoGkxABMGm+ZH0zug74QJCz/uiYe90M+terpcDzTkyKNWCkCdzaqaQOQc3RjYJ7YAyJkjBQmsAcvL+Ohl/IplNNvcS0F26VMKpkzX/AXUc0XQsxzAAe1osO9ui+YkGr5HSiZV"
]
}
27 changes: 20 additions & 7 deletions pkg/config/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,17 @@ func init() {
// mainnet vars

// CORE allocation:
// 500M = (4 * 25_000 + 99_900_000) + 4 * 100_000_000
// In total 8 wallets will be created in genesis:
// where 4 * 25_000 is a balance of each of 4 wallet used to create genesis validators.
// where 99_900_000 is a balance of foundation-0 wallet.
// where 4 * 100_000_000 is a balance of each of remaining 4 foundation wallets.
// 500M = (5 * 25_000 + 700_000 + 99_175_000) + 4 * 100_000_000
// In total 11 wallets will be created in genesis:
// 5 * 25_000 is a balance of each of 4 wallets used to create genesis validators & 1 extra wallet to join network as validator later.
// 700_000 is a balance of bridge wallet.
// 99_175_000 is a balance of foundation-0 wallet (99_175_000 = 100_000_000 - (5 * 25_000 + 700_000)).
// 4 * 100_000_000 is a balance of each of remaining 4 foundation wallets.
mainGenesisValidatorCreatorBalance := sdk.NewCoins(sdk.NewCoin(constant.DenomMain, sdk.NewInt(25_000_000_000)))

mainFoundationZeroInitialBalance := sdk.NewCoins(sdk.NewCoin(constant.DenomMain, sdk.NewInt(99_900_000_000_000)))
mainBridgeBalance := sdk.NewCoins(sdk.NewCoin(constant.DenomMain, sdk.NewInt(700_000_000_000)))

mainFoundationZeroInitialBalance := sdk.NewCoins(sdk.NewCoin(constant.DenomMain, sdk.NewInt(99_175_000_000_000)))
mainFoundationOtherInitialBalance := sdk.NewCoins(sdk.NewCoin(constant.DenomMain, sdk.NewInt(100_000_000_000_000)))

// testnet vars
Expand Down Expand Up @@ -158,7 +161,17 @@ func init() {
Address: "core1hsmhywnkehyyv8muzswhdumzztae4hq4k3dj8p",
Balances: mainGenesisValidatorCreatorBalance,
},
// coreum-foundation-0: 99_900_000
// coreum-argon genesis-validators-creator: 25k
{
Address: "core1vj6p0qpw0ntzv6v3n9zjdtwkjxzc3krnx04mlk", // TODO: Replace with team's wallet.
Balances: mainGenesisValidatorCreatorBalance,
},
// bridge: 700k
{
Address: "core1455z555ldd3zmkay4td4rv54f7yt2sdpvlvptg", // TODO: Replace with a real bridge address.
Balances: mainBridgeBalance,
},
// coreum-foundation-0: 99_175_000
{
Address: "core13xmyzhvl02xpz0pu8v9mqalsvpyy7wvs9q5f90",
Balances: mainFoundationZeroInitialBalance,
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func TestGenesisHash(t *testing.T) {
}{
{
chainID: constant.ChainIDMain,
wantHash: "f26ff015245b674641c7b197d40669b4f55e9da8a3a60a831c79e8c37d034a4c",
wantHash: "d69a7b327e994bc3e9ab90f15158fe8c0f84848cdae5b03f4f0f82a7032f9c0f",
},
{
chainID: constant.ChainIDTest,
Expand Down

0 comments on commit bd00ef9

Please sign in to comment.