Commit a5cfdb3c authored by Florian Franzen's avatar Florian Franzen
Browse files

gossamer-host: update config path patch

parent da447943
Pipeline #9604 failed with stages
in 19 seconds
diff --git a/chain/dev/config.toml b/chain/dev/config.toml
index a9d31d18..f4c46359 100644
--- a/chain/dev/config.toml
+++ b/chain/dev/config.toml
@@ -13,9 +13,6 @@ babe = ""
grandpa = ""
sync = ""
-[init]
-genesis = "./chain/dev/genesis.json"
-
[account]
key = "alice"
unlock = ""
diff --git a/chain/dev/defaults.go b/chain/dev/defaults.go
index 68a9bc4f..c7b8ffd6 100644
--- a/chain/dev/defaults.go
+++ b/chain/dev/defaults.go
@@ -29,7 +29,7 @@ var (
// DefaultID is the chain ID
DefaultID = string("dev")
// DefaultConfig is the toml configuration path
- DefaultConfig = string("./chain/dev/config.toml")
+ DefaultConfig = string("@out@/share/dev/config.toml")
// DefaultBasePath is the node base directory path
DefaultBasePath = string("~/.gossamer/dev")
@@ -47,7 +47,7 @@ var (
// InitConfig
// DefaultGenesis is the default genesis configuration path
- DefaultGenesis = string("./chain/dev/genesis.json")
+ DefaultGenesis = string("@out@/share/dev/genesis.json")
// AccountConfig
diff --git a/chain/gssmr/config.toml b/chain/gssmr/config.toml
index 67be0403..a87551c9 100644
index bff58944..eee4af43 100644
--- a/chain/gssmr/config.toml
+++ b/chain/gssmr/config.toml
@@ -12,9 +12,6 @@ babe = ""
@@ -13,9 +13,6 @@ babe = ""
grandpa = ""
sync = ""
-[init]
-genesis-raw = "./chain/gssmr/genesis-raw.json"
-genesis = "./chain/gssmr/genesis.json"
-
[account]
key = ""
unlock = ""
diff --git a/chain/gssmr/defaults.go b/chain/gssmr/defaults.go
index d09d708d..9c21cf34 100644
index 5d7ebfc7..358ec6d7 100644
--- a/chain/gssmr/defaults.go
+++ b/chain/gssmr/defaults.go
@@ -29,7 +29,7 @@ var (
......@@ -25,53 +61,53 @@ index d09d708d..9c21cf34 100644
// DefaultBasePath Default node base directory path
DefaultBasePath = string("~/.gossamer/gssmr")
@@ -39,7 +39,7 @@ var (
@@ -47,7 +47,7 @@ var (
// InitConfig
// DefaultGenesisRaw Default genesis configuration path
- DefaultGenesisRaw = string("./chain/gssmr/genesis-raw.json")
+ DefaultGenesisRaw = string("@out@/share/gssmr/genesis-raw.json")
// DefaultGenesis is the default genesis configuration path
- DefaultGenesis = string("./chain/gssmr/genesis.json")
+ DefaultGenesis = string("@out@/share/gssmr/genesis.json")
// AccountConfig
diff --git a/chain/ksmcc/config.toml b/chain/ksmcc/config.toml
index a8ffb0b1..bb8bebcb 100644
--- a/chain/ksmcc/config.toml
+++ b/chain/ksmcc/config.toml
@@ -12,9 +12,6 @@ babe = ""
diff --git a/chain/kusama/config.toml b/chain/kusama/config.toml
index 941df4b6..f4d9b748 100644
--- a/chain/kusama/config.toml
+++ b/chain/kusama/config.toml
@@ -13,9 +13,6 @@ babe = ""
grandpa = ""
sync = ""
-[init]
-genesis-raw = "./chain/ksmcc/genesis-raw.json"
-genesis = "./chain/kusama/genesis.json"
-
[account]
key = ""
unlock = ""
diff --git a/chain/ksmcc/defaults.go b/chain/ksmcc/defaults.go
index 5cea4421..2007fe07 100644
--- a/chain/ksmcc/defaults.go
+++ b/chain/ksmcc/defaults.go
diff --git a/chain/kusama/defaults.go b/chain/kusama/defaults.go
index e4c2e265..15234094 100644
--- a/chain/kusama/defaults.go
+++ b/chain/kusama/defaults.go
@@ -29,7 +29,7 @@ var (
// DefaultID Default chain ID
DefaultID = string("ksmcc")
DefaultID = string("ksmcc3")
// DefaultConfig Default toml configuration path
- DefaultConfig = string("./chain/ksmcc/config.toml")
+ DefaultConfig = string("@out@/share/ksmcc/config.toml")
- DefaultConfig = string("./chain/kusama/config.toml")
+ DefaultConfig = string("@out@/share/kusama/config.toml")
// DefaultBasePath Default node base directory path
DefaultBasePath = string("~/.gossamer/ksmcc")
DefaultBasePath = string("~/.gossamer/kusama")
@@ -39,7 +39,7 @@ var (
@@ -47,7 +47,7 @@ var (
// InitConfig
// DefaultGenesisRaw Default genesis configuration path
- DefaultGenesisRaw = string("./chain/ksmcc/genesis-raw.json")
+ DefaultGenesisRaw = string("@out@/share/ksmcc/genesis-raw.json")
// DefaultGenesis is the default genesis configuration path
- DefaultGenesis = string("./chain/kusama/genesis.json")
+ DefaultGenesis = string("@out@/share/kusama/genesis.json")
// AccountConfig
diff --git a/chain/polkadot/config.toml b/chain/polkadot/config.toml
index 44a1b090..b22c6878 100644
index a7166b5a..b22c6878 100644
--- a/chain/polkadot/config.toml
+++ b/chain/polkadot/config.toml
@@ -12,9 +12,6 @@ babe = ""
......@@ -79,13 +115,13 @@ index 44a1b090..b22c6878 100644
sync = ""
-[init]
-genesis-raw = "./chain/polkadot/genesis-raw.json"
-genesis = "./chain/polkadot/genesis.json"
-
[account]
key = ""
unlock = ""
diff --git a/chain/polkadot/defaults.go b/chain/polkadot/defaults.go
index 258976cf..c7c0ffd8 100644
index 4af96caf..5986043c 100644
--- a/chain/polkadot/defaults.go
+++ b/chain/polkadot/defaults.go
@@ -29,7 +29,7 @@ var (
......@@ -97,12 +133,12 @@ index 258976cf..c7c0ffd8 100644
// DefaultBasePath Default node base directory path
DefaultBasePath = string("~/.gossamer/polkadot")
@@ -39,7 +39,7 @@ var (
@@ -44,7 +44,7 @@ var (
// InitConfig
// DefaultGenesisRaw Default genesis configuration path
- DefaultGenesisRaw = string("./chain/polkadot/genesis-raw.json")
+ DefaultGenesisRaw = string("@out@/share/polkadot/genesis-raw.json")
// DefaultGenesis is the default genesis configuration path
- DefaultGenesis = string("./chain/polkadot/genesis.json")
+ DefaultGenesis = string("@out@/share/polkadot/genesis.json")
// AccountConfig
......@@ -11,8 +11,9 @@ buildGoModule rec {
patches = [ ./config_path.patch ];
postPatch = ''
substituteAllInPlace chain/dev/defaults.go
substituteAllInPlace chain/gssmr/defaults.go
substituteAllInPlace chain/ksmcc/defaults.go
substituteAllInPlace chain/kusama/defaults.go
substituteAllInPlace chain/polkadot/defaults.go
'';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment