Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
e3226575
Commit
e3226575
authored
6 years ago
by
Gav
Browse files
Options
Downloads
Patches
Plain Diff
Initial stuff
parent
79932f19
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
polkadot/runtime/src/lib.rs
+1
-1
1 addition, 1 deletion
polkadot/runtime/src/lib.rs
polkadot/runtime/src/parachains.rs
+1
-1
1 addition, 1 deletion
polkadot/runtime/src/parachains.rs
polkadot/service/src/chain_spec.rs
+2
-2
2 additions, 2 deletions
polkadot/service/src/chain_spec.rs
with
4 additions
and
4 deletions
polkadot/runtime/src/lib.rs
+
1
−
1
View file @
e3226575
...
...
@@ -128,6 +128,7 @@ impl HasPublicAux for Concrete {
}
impl
system
::
Trait
for
Concrete
{
type
PublicAux
=
<
Concrete
as
HasPublicAux
>
::
PublicAux
;
type
Index
=
Index
;
type
BlockNumber
=
BlockNumber
;
type
Hash
=
Hash
;
...
...
@@ -140,7 +141,6 @@ impl system::Trait for Concrete {
pub
type
System
=
system
::
Module
<
Concrete
>
;
impl
consensus
::
Trait
for
Concrete
{
type
PublicAux
=
<
Concrete
as
HasPublicAux
>
::
PublicAux
;
type
SessionKey
=
SessionKey
;
}
/// Consensus module for this concrete runtime.
...
...
This diff is collapsed.
Click to expand it.
polkadot/runtime/src/parachains.rs
+
1
−
1
View file @
e3226575
...
...
@@ -258,10 +258,10 @@ mod tests {
type
PublicAux
=
u64
;
}
impl
consensus
::
Trait
for
Test
{
type
PublicAux
=
<
Self
as
HasPublicAux
>
::
PublicAux
;
type
SessionKey
=
u64
;
}
impl
system
::
Trait
for
Test
{
type
PublicAux
=
<
Self
as
HasPublicAux
>
::
PublicAux
;
type
Index
=
u64
;
type
BlockNumber
=
u64
;
type
Hash
=
H256
;
...
...
This diff is collapsed.
Click to expand it.
polkadot/service/src/chain_spec.rs
+
2
−
2
View file @
e3226575
...
...
@@ -63,7 +63,7 @@ fn staging_testnet_config_genesis() -> GenesisConfig {
balances
:
endowed_accounts
.iter
()
.map
(|
&
k
|(
k
,
1u128
<<
60
))
.collect
(),
validator_count
:
12
,
sessions_per_era
:
12
,
// 1 hour per era
bonding_duration
:
24
,
// 1 day per bond.
bonding_duration
:
24
*
60
*
12
,
// 1 day per bond.
}),
democracy
:
Some
(
DemocracyConfig
{
launch_period
:
12
*
60
*
24
,
// 1 day per public referendum
...
...
@@ -136,7 +136,7 @@ fn testnet_genesis(initial_authorities: Vec<AuthorityId>) -> GenesisConfig {
balances
:
endowed_accounts
.iter
()
.map
(|
&
k
|(
k
,
(
1u128
<<
60
)))
.collect
(),
validator_count
:
2
,
sessions_per_era
:
5
,
bonding_duration
:
2
,
bonding_duration
:
2
*
60
*
12
,
early_era_slash
:
0
,
session_reward
:
0
,
}),
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment