Skip to content

Commit 07baf80

Browse files
committed
introduce Gemini-3c
1 parent d3a8537 commit 07baf80

File tree

7 files changed

+33
-33
lines changed

7 files changed

+33
-33
lines changed

.github/workflows/chain-spec-snapshot-build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ jobs:
2828

2929
- name: Generate testnet chain specifications
3030
run: |
31-
docker run --rm -u root ${{ steps.build.outputs.digest }} build-spec --chain gemini-3b-compiled --disable-default-bootnode > chain-spec-gemini-3b.json
32-
docker run --rm -u root ${{ steps.build.outputs.digest }} build-spec --chain gemini-3b-compiled --disable-default-bootnode --raw > chain-spec-raw-gemini-3b.json
31+
docker run --rm -u root ${{ steps.build.outputs.digest }} build-spec --chain gemini-3c-compiled --disable-default-bootnode > chain-spec-gemini-3c.json
32+
docker run --rm -u root ${{ steps.build.outputs.digest }} build-spec --chain gemini-3c-compiled --disable-default-bootnode --raw > chain-spec-raw-gemini-3c.json
3333
3434
- name: Upload chain specifications to artifacts
3535
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # @v3.1.1
3636
with:
3737
name: chain-specifications
3838
path: |
39-
chain-spec-gemini-3b.json
40-
chain-spec-raw-gemini-3b.json
39+
chain-spec-gemini-3c.json
40+
chain-spec-raw-gemini-3c.json
4141
if-no-files-found: error
4242

4343
- name: Upload chain specifications to assets
4444
uses: alexellis/upload-assets@259de5111cb56966d046ced998941e93f91d2c93 # @0.4.0
4545
env:
4646
GITHUB_TOKEN: ${{ github.token }}
4747
with:
48-
asset_paths: '["chain-spec-gemini-3b.json", "chain-spec-raw-gemini-3b.json"]'
48+
asset_paths: '["chain-spec-gemini-3c.json", "chain-spec-raw-gemini-3c.json"]'

crates/subspace-node/src/chain_spec.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use subspace_runtime_primitives::{AccountId, Balance, BlockNumber, SSC};
3131
use system_domain_runtime::GenesisConfig as SystemDomainGenesisConfig;
3232

3333
const SUBSPACE_TELEMETRY_URL: &str = "wss://telemetry.subspace.network/submit/";
34-
const GEMINI_3B_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-gemini-3b.json");
34+
// const GEMINI_3B_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-gemini-3b.json");
3535
const X_NET_2_CHAIN_SPEC: &[u8] = include_bytes!("../res/chain-spec-raw-x-net-2.json");
3636

3737
/// List of accounts which should receive token grants, amounts are specified in SSC.
@@ -70,18 +70,18 @@ struct GenesisParams {
7070
enable_transfer: bool,
7171
}
7272

73-
pub fn gemini_3b() -> Result<ConsensusChainSpec<GenesisConfig, SystemDomainGenesisConfig>, String> {
74-
ConsensusChainSpec::from_json_bytes(GEMINI_3B_CHAIN_SPEC)
73+
pub fn gemini_3c() -> Result<ConsensusChainSpec<GenesisConfig, SystemDomainGenesisConfig>, String> {
74+
unimplemented!("please run gemini-3c compiled chain")
7575
}
7676

77-
pub fn gemini_3b_compiled(
77+
pub fn gemini_3c_compiled(
7878
) -> Result<ConsensusChainSpec<GenesisConfig, SystemDomainGenesisConfig>, String> {
7979
Ok(ConsensusChainSpec::from_genesis(
8080
// Name
81-
"Subspace Gemini 3b",
81+
"Subspace Gemini 3c",
8282
// ID
83-
"subspace_gemini_3b",
84-
ChainType::Custom("Subspace Gemini 3b".to_string()),
83+
"subspace_gemini_3c",
84+
ChainType::Custom("Subspace Gemini 3c".to_string()),
8585
|| {
8686
let sudo_account =
8787
AccountId::from_ss58check("5CXTmJEusve5ixyJufqHThmy4qUrrm6FyLCR7QfE4bbyMTNC")
@@ -150,13 +150,13 @@ pub fn gemini_3b_compiled(
150150
.map_err(|error| error.to_string())?,
151151
),
152152
// Protocol ID
153-
Some("subspace-gemini-3b"),
153+
Some("subspace-gemini-3c"),
154154
None,
155155
// Properties
156156
Some(chain_spec_properties()),
157157
// Extensions
158158
ChainSpecExtensions {
159-
execution_chain_spec: system_domain::chain_spec::gemini_3b_config(),
159+
execution_chain_spec: system_domain::chain_spec::gemini_3c_config(),
160160
},
161161
))
162162
}

crates/subspace-node/src/core_domain/cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ impl SubstrateCli for CoreDomainCli {
154154
let chain_spec = match self.domain_id {
155155
DomainId::CORE_PAYMENTS => match id {
156156
"dev" => core_payments_chain_spec::development_config(),
157-
"gemini-3b" => core_payments_chain_spec::gemini_3b_config(),
157+
"gemini-3c" => core_payments_chain_spec::gemini_3c_config(),
158158
"" | "local" => core_payments_chain_spec::local_testnet_config(),
159159
path => core_payments_chain_spec::ChainSpec::from_json_file(
160160
std::path::PathBuf::from(path),

crates/subspace-node/src/core_domain/core_payments_chain_spec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,12 @@ pub fn local_testnet_config() -> ExecutionChainSpec<GenesisConfig> {
110110
)
111111
}
112112

113-
pub fn gemini_3b_config() -> ExecutionChainSpec<GenesisConfig> {
113+
pub fn gemini_3c_config() -> ExecutionChainSpec<GenesisConfig> {
114114
ExecutionChainSpec::from_genesis(
115115
// Name
116-
"Subspace Gemini 3b Core Payments Domain",
116+
"Subspace Gemini 3c Core Payments Domain",
117117
// ID
118-
"subspace_gemini_3b_core_payments_domain",
118+
"subspace_gemini_3c_core_payments_domain",
119119
ChainType::Local,
120120
move || {
121121
let sudo_account =
@@ -136,7 +136,7 @@ pub fn gemini_3b_config() -> ExecutionChainSpec<GenesisConfig> {
136136
// Telemetry
137137
None,
138138
// Protocol ID
139-
Some("subspace-gemini-3b-core-payments-domain"),
139+
Some("subspace-gemini-3c-core-payments-domain"),
140140
None,
141141
// Properties
142142
Some(chain_spec_properties()),

crates/subspace-node/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ impl SubstrateCli for Cli {
252252

253253
fn load_spec(&self, id: &str) -> Result<Box<dyn ChainSpec>, String> {
254254
let mut chain_spec = match id {
255-
"gemini-3b" => chain_spec::gemini_3b()?,
256-
"gemini-3b-compiled" => chain_spec::gemini_3b_compiled()?,
255+
"gemini-3c" => chain_spec::gemini_3c()?,
256+
"gemini-3c-compiled" => chain_spec::gemini_3c_compiled()?,
257257
"x-net-2" => chain_spec::x_net_2_config()?,
258258
"x-net-2-compiled" => chain_spec::x_net_2_config_compiled()?,
259259
"dev" => chain_spec::dev_config()?,

crates/subspace-node/src/system_domain/chain_spec.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ pub fn local_testnet_config() -> ExecutionChainSpec<GenesisConfig> {
162162
)
163163
}
164164

165-
pub fn gemini_3b_config() -> ExecutionChainSpec<GenesisConfig> {
165+
pub fn gemini_3c_config() -> ExecutionChainSpec<GenesisConfig> {
166166
ExecutionChainSpec::from_genesis(
167167
// Name
168-
"Subspace Gemini 3b System Domain",
168+
"Subspace Gemini 3c System Domain",
169169
// ID
170-
"subspace_gemini_3b_system_domain",
170+
"subspace_gemini_3c_system_domain",
171171
ChainType::Local,
172172
move || {
173173
let sudo_account =
@@ -217,7 +217,7 @@ pub fn gemini_3b_config() -> ExecutionChainSpec<GenesisConfig> {
217217
// Telemetry
218218
None,
219219
// Protocol ID
220-
Some("subspace-gemini-3b-system-domain"),
220+
Some("subspace-gemini-3c-system-domain"),
221221
None,
222222
// Properties
223223
Some(chain_spec_properties()),

docs/farming.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If you're connected directly without any router, then again nothing needs to be
4444
# Replace `INSERT_YOUR_ID` with a nickname you choose
4545
# Copy all of the lines below, they are all part of the same command
4646
.\NODE_FILE_NAME.exe `
47-
--chain gemini-3b `
47+
--chain gemini-3c `
4848
--execution wasm `
4949
--blocks-pruning archive `
5050
--state-pruning archive `
@@ -96,7 +96,7 @@ If you're connected directly without any router, then again nothing needs to be
9696
# Replace `INSERT_YOUR_ID` with a nickname you choose
9797
# Copy all of the lines below, they are all part of the same command
9898
./NODE_FILE_NAME \
99-
--chain gemini-3b \
99+
--chain gemini-3c \
100100
--execution wasm \
101101
--blocks-pruning archive \
102102
--state-pruning archive \
@@ -151,7 +151,7 @@ After this, simply repeat the step you prompted for (step 4 or 6). This time, cl
151151
# Replace `INSERT_YOUR_ID` with a nickname you choose
152152
# Copy all of the lines below, they are all part of the same command
153153
./NODE_FILE_NAME \
154-
--chain gemini-3b \
154+
--chain gemini-3c \
155155
--execution wasm \
156156
--blocks-pruning archive \
157157
--state-pruning archive \
@@ -214,7 +214,7 @@ services:
214214
- "0.0.0.0:30433:30433"
215215
restart: unless-stopped
216216
command: [
217-
"--chain", "gemini-3b",
217+
"--chain", "gemini-3c",
218218
"--base-path", "/var/subspace",
219219
"--execution", "wasm",
220220
"--blocks-pruning", "archive",
@@ -289,7 +289,7 @@ You can read logs with `docker-compose logs --tail=1000 -f`, for the rest read [
289289

290290
## Checking results and interacting with the network
291291

292-
Visit [Polkadot.js explorer](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Feu-0.gemini-3b.subspace.network%2Fws#/explorer), from there you can interact with Subspace Network as any Substrate-based blockchain.
292+
Visit [Polkadot.js explorer](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Feu-0.gemini-3c.subspace.network%2Fws#/explorer), from there you can interact with Subspace Network as any Substrate-based blockchain.
293293

294294
## Switching from older/different versions of Subspace
295295

@@ -300,7 +300,7 @@ If you were running a node previously, and want to switch to a new snapshot, ple
300300
# Replace `FARMER_FILE_NAME` with the name of the node file you downloaded from releases
301301
./FARMER_FILE_NAME wipe
302302
# Replace `NODE_FILE_NAME` with the name of the node file you downloaded from releases
303-
./NODE_FILE_NAME purge-chain --chain gemini-3b
303+
./NODE_FILE_NAME purge-chain --chain gemini-3c
304304
```
305305
Does not matter if the node/farmer executable is the previous one or from the new snapshot, both will work :)
306306
The reason we require this is, with every snapshot change, the network might get partitioned, and you may be on a different genesis than the current one.
@@ -322,8 +322,8 @@ Below are some helpful samples:
322322

323323
- `./FARMER_FILE_NAME --base-path /path/to/data farm ...` : will store data in `/path/to/data` instead of default location
324324
- `./FARMER_FILE_NAME --base-path /path/to/data wipe` : erases everything related to farmer if data were stored in `/path/to/data`
325-
- `./NODE_FILE_NAME --base-path /path/to/data --chain gemini-3b ...` : start node and store data in `/path/to/data` instead of default location
326-
- `./NODE_FILE_NAME purge-chain --base-path /path/to/data --chain gemini-3b` : erases data related to the node if data were stored in `/path/to/data`
325+
- `./NODE_FILE_NAME --base-path /path/to/data --chain gemini-3c ...` : start node and store data in `/path/to/data` instead of default location
326+
- `./NODE_FILE_NAME purge-chain --base-path /path/to/data --chain gemini-3c` : erases data related to the node if data were stored in `/path/to/data`
327327

328328
Examples:
329329
```bash

0 commit comments

Comments
 (0)