Skip to content

Commit

Permalink
Adds beresheet testnet, updates to new node key format
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Aug 3, 2020
1 parent c6aacf2 commit 365602d
Show file tree
Hide file tree
Showing 7 changed files with 8,268 additions and 23,659 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ edgeware*.wasm

# Misc
.vscode
mainnet-state.json
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ cargo build --release

Ensure you have a fresh start if updating from another version:
```
./scripts/purge-chain.sh berlin
./scripts/purge-chain.sh beresheet
```

To start up the Edgeware node and connect to the Berlin testnet, run:
To start up the Edgeware node and connect to the Beresheet testnet, run:
```
./target/release/edgeware --chain=berlin --name <INSERT_NAME>
./target/release/edgeware --chain=beresheet --name <INSERT_NAME>
```
23,648 changes: 0 additions & 23,648 deletions chains/beresheet-candidate.chainspec.json

This file was deleted.

4 changes: 2 additions & 2 deletions chains/beresheet.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Berlin",
"id": "berlin_edgeware_testnet",
"name": "Beresheet",
"id": "beresheet_edgeware_testnet",
"bootNodes": [
"/ip4/45.77.148.197/tcp/30333/p2p/QmUeUUGWMthMvmqKVRPKdXsuDMynCQfmZ7sjVMvce9VU7V",
"/ip4/45.77.106.16/tcp/30333/p2p/QmcfVBingGpGxZX34KW5JNmknTvPXPP5n6yV6VC9sLot4o",
Expand Down
8,256 changes: 8,256 additions & 0 deletions node/cli/res/beresheet.chainspec.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions node/cli/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ pub fn edgeware_mainnet_official() -> ChainSpec {
}
}

/// 1.0.0 Berlin Testnet configuration
pub fn edgeware_berlin_official() -> ChainSpec {
match ChainSpec::from_json_bytes(&include_bytes!("../res/berlin.chainspec.json")[..]) {
/// Beresheet Testnet configuration
pub fn edgeware_beresheet_official() -> ChainSpec {
match ChainSpec::from_json_bytes(&include_bytes!("../res/beresheet.chainspec.json")[..]) {
Ok(spec) => spec,
Err(e) => panic!(e),
}
Expand Down
6 changes: 3 additions & 3 deletions node/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ impl SubstrateCli for Cli {
"multi-dev" | "multi" => Box::new(chain_spec::multi_development_config()),
"local" => Box::new(chain_spec::local_testnet_config()),
"testnet-conf" => Box::new(chain_spec::edgeware_testnet_config(
"Berlin".to_string(),
"berlin_edgeware_testnet".to_string(),
"Beresheet".to_string(),
"beresheet_edgeware_testnet".to_string(),
)),
"mainnet-conf" => Box::new(chain_spec::edgeware_mainnet_config()),
"berlin" => Box::new(chain_spec::edgeware_berlin_official()),
"beresheet" => Box::new(chain_spec::edgeware_beresheet_official()),
"edgeware" => Box::new(chain_spec::edgeware_mainnet_official()),
path => Box::new(chain_spec::ChainSpec::from_json_file(
std::path::PathBuf::from(path),
Expand Down

0 comments on commit 365602d

Please sign in to comment.