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
0089ad40
Commit
0089ad40
authored
5 years ago
by
Gavin Wood
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Revert "Allow warnings (#2627)" (#2648)
This reverts commit
b9c39d77
.
parent
1ce221f0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
substrate/core/consensus/babe/src/lib.rs
+3
-2
3 additions, 2 deletions
substrate/core/consensus/babe/src/lib.rs
substrate/core/finality-grandpa/src/lib.rs
+2
-0
2 additions, 0 deletions
substrate/core/finality-grandpa/src/lib.rs
with
5 additions
and
2 deletions
substrate/core/consensus/babe/src/lib.rs
+
3
−
2
View file @
0089ad40
...
...
@@ -533,6 +533,7 @@ impl<B: Block, C, E, I, Error, SO> SlotWorker<B> for BabeWorker<C, E, I, SO> whe
/// This digest item will always return `Some` when used with `as_babe_seal`.
//
// FIXME #1018 needs misbehavior types
#[forbid(warnings)]
fn
check_header
<
B
:
Block
+
Sized
,
C
:
AuxStore
>
(
client
:
&
Arc
<
C
>
,
slot_now
:
u64
,
...
...
@@ -584,7 +585,7 @@ fn check_header<B: Block + Sized, C: AuxStore>(
format!
(
"VRF verification failed"
)
})
?
};
if
check
(
&
inout
,
threshold
)
{
match
check_equivocation
(
&
client
,
slot_now
,
slot_num
,
header
.clone
(),
signer
.clone
())
{
Ok
(
Some
(
equivocation_proof
))
=>
{
...
...
@@ -1018,7 +1019,7 @@ mod tests {
Default
::
default
(),
0
,
);
let
(
inout
,
proof
,
_batchable_proof
)
=
get_keypair
(
&
pair
)
.vrf_sign_n_check
(
transcript
,
|
inout
|
check
(
inout
,
u64
::
MAX
))
.unwrap
();
let
pre_hash
:
H256
=
header
.hash
();
let
to_sign
=
(
slot_num
,
pre_hash
,
proof
.to_bytes
())
.encode
();
...
...
This diff is collapsed.
Click to expand it.
substrate/core/finality-grandpa/src/lib.rs
+
2
−
0
View file @
0089ad40
...
...
@@ -51,6 +51,8 @@
//! number (this is num(signal) + N). When finalizing a block, we either apply
//! or prune any signaled changes based on whether the signaling block is
//! included in the newly-finalized chain.
#![forbid(warnings)]
#![allow(deprecated)]
// FIXME #2532: remove once the refactor is done https://github.com/paritytech/substrate/issues/2532
use
futures
::
prelude
::
*
;
use
log
::{
debug
,
info
,
warn
};
...
...
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