Skip to content

Commit

Permalink
Regenerate testnet genesis (#327)
Browse files Browse the repository at this point in the history
* Regenerate chain testnet genesis accounts

.

* Try script

* .

* Polish script

* .

* Change root only

* Change to pre_release

* .

* Update testnet wasm

* .

* .

* Update btc genesis header
  • Loading branch information
liuchengxu authored Nov 5, 2020
1 parent fa3e39a commit 5e53ec3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ on:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Draft Release
name: Create Pre-release

jobs:

release:
name: Create Draft Release
name: Create Pre-release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master

- name: Create Draft Release
- name: Create Pre-release
id: create_release
uses: actions/create-release@v1
env:
Expand All @@ -25,8 +25,8 @@ jobs:
release_name: Release ${{ github.ref }}
body: |
${{ github.ref }}
draft: true
prerelease: false
draft: false
prerelease: true

publish:
name: Publish for ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions cli/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ pub fn staging_testnet_config() -> Result<ChainSpec, String> {
pub fn testnet_config() -> Result<ChainSpec, String> {
let wasm_binary = include_bytes!("./wasm/chainx_runtime_testnet.compact.wasm");
// subkey inspect-key --uri "$SECRET"
// 5ERUBzfWtZzB59HM2qekCKzPm9sFo433z3V4rGgJXd7ugWNv
// 5DevKrCXVnGtJ5epm19VCQwdbjXVGLvDVVe86b67sRweMh8P
let root_key: AccountId =
hex!["684e9d27ae6b5ab3a673616de27bd3e455062c83090de607ab49a2f7396b5a19"].into();
hex!["46548ce2fca0244d9ca8bc2b82d599458d340d0da3c13078689cf4f17bbb3017"].into();
// bash:
// for i in 1 2 3; do for j in validator blockauthor; do subkey inspect-key --uri "$SECRET//$i//$j"; done; done
// for i in 1 2 3; do for j in babe; do subkey inspect-key --scheme sr25519 --uri "$SECRET//$i//$j"; done; done
Expand Down
14 changes: 7 additions & 7 deletions cli/src/res/btc_genesis_params_testnet.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"network": "Testnet",
"confirmation_number": 4,
"height": 1865225,
"hash": "000000000000000ebe4d600e523ac18285d5ffd4a15ce7f7e94427bcb9d5daec",
"version": 671080448,
"previous_header_hash": "00000000000000266addf9be31441caa8ee034dcc98e5e12afce43857b113846",
"merkle_root_hash": "e3f1880660223b676ee6645e1d249818d2ad34404d7c83b3142dd2bff609893b",
"time": 1603865822,
"height": 1866660,
"hash": "000000000000005e44ec045544a10ddcaa58008f76240b2be2c806ed034863c6",
"version": 536870912,
"previous_header_hash": "0000000000000093c2749dc1967130db153e0e77934754d48c267ea2209a88a1",
"merkle_root_hash": "a99a16e3256f8d75a5f8b3475130efe61559ba1e1af168e8d5f3167c123383af",
"time": 1604540429,
"bits": 436254651,
"nonce": 3239452607
"nonce": 1968157362
}
Binary file modified cli/src/wasm/chainx_runtime_testnet.compact.wasm
Binary file not shown.

0 comments on commit 5e53ec3

Please sign in to comment.