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
38299d3c
Commit
38299d3c
authored
Dec 02, 2020
by
Peter Goodspeed-Niklaus
Browse files
don't modify inherent data on heavy block
parent
550d84a8
Pipeline
#115840
passed with stages
in 21 minutes and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/core/proposer/src/lib.rs
View file @
38299d3c
...
...
@@ -193,12 +193,19 @@ where
record_proof
:
RecordProof
,
)
->
Self
::
Proposal
{
async
move
{
let
provisioner_data
=
match
self
.get_provisioner_data
()
.await
{
Ok
(
pd
)
=>
pd
,
Err
(
err
)
=>
{
tracing
::
warn!
(
err
=
?
err
,
"could not get provisioner inherent data; injecting default data"
);
Default
::
default
()
// TODO: how can we tell, here, if we expect a heavy block?
let
expect_heavy_block
=
false
;
let
provisioner_data
=
if
!
expect_heavy_block
{
match
self
.get_provisioner_data
()
.await
{
Ok
(
pd
)
=>
pd
,
Err
(
err
)
=>
{
tracing
::
warn!
(
err
=
?
err
,
"could not get provisioner inherent data; injecting default data"
);
Default
::
default
()
}
}
}
else
{
Default
::
default
()
};
inherent_data
.put_data
(
...
...
gabriel klawitter
🏄
@gabriel
mentioned in commit
c260f943
·
Dec 14, 2020
mentioned in commit
c260f943
mentioned in commit c260f9431e75bb4cdf18efcfb9626b011b718edf
Toggle commit list
gabriel klawitter
🏄
@gabriel
mentioned in commit
0508b6f2
·
Jan 05, 2021
mentioned in commit
0508b6f2
mentioned in commit 0508b6f2e2ab52bc5d783fc1352c24b6086f5c4f
Toggle commit list
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