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
54b773ee
Unverified
Commit
54b773ee
authored
Mar 30, 2021
by
Andronik Ordian
Committed by
GitHub
Mar 30, 2021
Browse files
approval-distribution: add an assertion (#2761)
parent
c8e11982
Pipeline
#131783
failed with stages
in 29 minutes and 55 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
node/network/approval-distribution/src/lib.rs
View file @
54b773ee
...
...
@@ -848,12 +848,19 @@ impl State {
(
ApprovalState
::
Approved
(
cert
,
vote
.signature
.clone
()),
local_source
),
);
}
_
=>
{
Some
((
ApprovalState
::
Approved
(
..
),
_
))
=>
{
unreachable!
(
"we only insert it after the fingerprint, checked the fingerprint above; qed"
);
}
None
=>
{
// this would indicate a bug in approval-voting
tracing
::
warn!
(
target
:
LOG_TARGET
,
hash
=
?
block_hash
,
?
candidate_index
,
"Expected a candidate entry with `ApprovalState::Assigned`"
,
?
validator_index
,
"Importing an approval we don't have an assignment for"
,
);
}
}
...
...
@@ -863,6 +870,7 @@ impl State {
target
:
LOG_TARGET
,
hash
=
?
block_hash
,
?
candidate_index
,
?
validator_index
,
"Expected a candidate entry on import_and_circulate_approval"
,
);
}
...
...
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