Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
62bc0218
Unverified
Commit
62bc0218
authored
Oct 02, 2021
by
Andronik Ordian
Committed by
GitHub
Oct 02, 2021
Browse files
some tweaks to rococo-local (#3996)
* some tweaks to rococo-local * rococo-local, not staging
parent
fb74ac6a
Pipeline
#160292
passed with stages
in 35 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/service/src/chain_spec.rs
View file @
62bc0218
...
...
@@ -1558,7 +1558,10 @@ pub fn rococo_testnet_genesis(
authority_discovery
:
rococo_runtime
::
AuthorityDiscoveryConfig
{
keys
:
vec!
[]
},
sudo
:
rococo_runtime
::
SudoConfig
{
key
:
root_key
.clone
()
},
configuration
:
rococo_runtime
::
ConfigurationConfig
{
config
:
default_parachains_host_configuration
(),
config
:
polkadot_runtime_parachains
::
configuration
::
HostConfiguration
{
max_validators_per_core
:
Some
(
1
),
..
default_parachains_host_configuration
()
},
},
hrmp
:
Default
::
default
(),
paras
:
rococo_runtime
::
ParasConfig
{
paras
:
vec!
[]
},
...
...
@@ -1820,13 +1823,18 @@ pub fn westend_local_testnet_config() -> Result<WestendChainSpec, String> {
fn
rococo_local_testnet_genesis
(
wasm_binary
:
&
[
u8
])
->
rococo_runtime
::
GenesisConfig
{
rococo_testnet_genesis
(
wasm_binary
,
vec!
[
get_authority_keys_from_seed
(
"Alice"
),
get_authority_keys_from_seed
(
"Bob"
)],
vec!
[
get_authority_keys_from_seed
(
"Alice"
),
get_authority_keys_from_seed
(
"Bob"
),
get_authority_keys_from_seed
(
"Charlie"
),
get_authority_keys_from_seed
(
"Dave"
),
],
get_account_id_from_seed
::
<
sr25519
::
Public
>
(
"Alice"
),
None
,
)
}
/// Rococo local testnet config (multivalidator Alice + Bob)
/// Rococo local testnet config (multivalidator Alice + Bob
+ Charlie + Dave
)
#[cfg(feature
=
"rococo-native"
)]
pub
fn
rococo_local_testnet_config
()
->
Result
<
RococoChainSpec
,
String
>
{
let
wasm_binary
=
rococo
::
WASM_BINARY
.ok_or
(
"Rococo development wasm not available"
)
?
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment