Skip to content

Commit

Permalink
Merge pull request #667 from galacticcouncil/fix_testnets
Browse files Browse the repository at this point in the history
  • Loading branch information
vgantchev authored Sep 4, 2024
2 parents 01c712c + 6019b66 commit 2775594
Show file tree
Hide file tree
Showing 24 changed files with 986 additions and 1,572 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ sp-consensus-beefy = { git = "https://github.com/paritytech/polkadot-sdk", branc
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch ="release-polkadot-v1.7.2", default-features = false }
sp-debug-derive = { git = "https://github.com/paritytech/polkadot-sdk", branch ="release-polkadot-v1.7.2", default-features = false }
sp-externalities = { git = "https://github.com/paritytech/polkadot-sdk", branch ="release-polkadot-v1.7.2", default-features = false }
sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2", default-features = false }
sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", branch ="release-polkadot-v1.7.2", default-features = false }
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch ="release-polkadot-v1.7.2", default-features = false }
sp-keyring = { git = "https://github.com/paritytech/polkadot-sdk", branch ="release-polkadot-v1.7.2", default-features = false }
Expand Down Expand Up @@ -277,6 +278,7 @@ sp-consensus-aura = { git = "https://github.com/paritytech/polkadot-sdk", branch
sp-consensus-babe = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2" }
sp-core = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2" }
sp-externalities = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2" }
sp-genesis-builder = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2" }
sp-inherents = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2" }
sp-io = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2" }
sp-keystore = { git = "https://github.com/paritytech/polkadot-sdk", branch = "release-polkadot-v1.7.2" }
Expand Down
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,26 +30,15 @@ make build

## Run

### Local Testnet
### Local Testnet with Zombienet
Prerequisites:
* Relay chain repository (polkadot) has to be built in `../polkadot`
* Grab `zombienet` utility used to start network from [releases](https://github.com/paritytech/zombienet/releases)

Relay chain repository [Polkadot](https://github.com/paritytech/polkadot) has to be built in `../polkadot` sibling directory
Install `polkadot-launch` utility used to start network.

```
npm install -g polkadot-launch
```

Start local testnet with 4 relay chain validators and Basilisk as a parachain with 2 collators.

```
cd ../rococo-local
polkadot-launch config.json
```

Observe Basilisk logs

```
multitail 99*.log
cd ./launch-configs/zombienet
zombienet spawn local.json
```

### Interaction with the node
Expand Down
62 changes: 62 additions & 0 deletions launch-configs/zombienet/local.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"settings": {
"timeout": 1000,
"provider": "native"
},
"relaychain": {
"default_command": "../../../polkadot/target/release/polkadot",
"chain": "rococo-local",
"default_args": [
"--no-hardware-benchmarks",
"--database=paritydb"
],
"nodes": [
{
"name": "alice",
"ws_port": 9944,
"validator": true
},
{
"name": "bob",
"ws_port": 9955,
"validator": true
}
]
},
"parachains": [
{
"id": 2090,
"chain": "local",
"collators": [
{
"name": "alice",
"command": "../../target/release/basilisk",
"ws_port": 9988,
"rpc_port": 9999,
"args": [
"--no-hardware-benchmarks",
"--force-authoring",
"--database=paritydb"
]
},
{
"name": "bob",
"command": "../../target/release/basilisk",
"ws_port": 9989,
"args": [
"--no-hardware-benchmarks",
"--force-authoring",
"--database=paritydb"
]
}
]
}
],
"types": {
"Header": {
"number": "u64",
"parent_hash": "Hash",
"post_state": "Hash"
}
}
}
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "basilisk"
version = "13.0.0"
version = "14.0.0"
description = "Basilisk node"
authors = ["GalacticCouncil"]
edition = "2021"
Expand Down
138 changes: 138 additions & 0 deletions node/res/paseo.json

Large diffs are not rendered by default.

138 changes: 138 additions & 0 deletions node/res/rococo.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2775594

Please sign in to comment.