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
63d13a0c
Commit
63d13a0c
authored
Aug 29, 2018
by
Gav
Browse files
Compat fix for substrate#624
parent
d12426b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
runtime/src/parachains.rs
View file @
63d13a0c
...
...
@@ -61,16 +61,17 @@ decl_module! {
}
decl_storage!
{
trait
Store
for
Module
<
T
:
Trait
>
;
// Vector of all parachain IDs.
pub
Parachains
get
(
active_parachains
):
b"para:chains"
=>
default
Vec
<
Id
>
;
// The parachains registered at present.
pub
Code
get
(
parachain_code
):
b"para:code"
=>
map
[
Id
=>
Vec
<
u8
>
];
// The heads of the parachains registered at present. these are kept sorted.
pub
Heads
get
(
parachain_head
):
b"para:head"
=>
map
[
Id
=>
Vec
<
u8
>
];
// Did the parachain heads get updated in this block?
DidUpdate
:
b"para:did"
=>
default
bool
;
trait
Store
for
Module
<
T
:
Trait
>
as
Parachains
{
// Vector of all parachain IDs.
pub
Parachains
get
(
active_parachains
):
default
Vec
<
Id
>
;
// The parachains registered at present.
pub
Code
get
(
parachain_code
):
map
[
Id
=>
Vec
<
u8
>
];
// The heads of the parachains registered at present. these are kept sorted.
pub
Heads
get
(
parachain_head
):
map
[
Id
=>
Vec
<
u8
>
];
// Did the parachain heads get updated in this block?
DidUpdate
:
default
bool
;
}
}
impl
<
T
:
Trait
>
Module
<
T
>
{
...
...
runtime/src/utils.rs
View file @
63d13a0c
...
...
@@ -25,7 +25,7 @@ use session::Call as SessionCall;
/// Produces the list of inherent extrinsics.
pub
fn
inherent_extrinsics
(
data
:
::
primitives
::
InherentData
)
->
Vec
<
UncheckedExtrinsic
>
{
let
make_inherent
=
|
function
|
UncheckedExtrinsic
::
new
(
let
make_inherent
=
|
function
|
UncheckedExtrinsic
::
new
(
Extrinsic
{
signed
:
Default
::
default
(),
function
,
...
...
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