Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
336cbe29
Commit
336cbe29
authored
Aug 31, 2021
by
Bernhard Schuster
Browse files
fixup: avoid underflow issue
parent
139ecf90
Pipeline
#154896
failed with stages
in 9 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
node/service/src/relay_chain_selection.rs
View file @
336cbe29
...
...
@@ -417,8 +417,8 @@ where
let
(
lag
,
subchain_head
)
=
if
cfg!
(
feature
=
"disputes"
)
{
// Prevent sending flawed data to the dispute-coordinator.
if
Some
(
subchain_block_descriptions
.len
()
as
u
32
-
1
)
!=
subchain_number
.checked_sub
(
target_number
)
if
Some
(
subchain_block_descriptions
.len
()
as
u
64
)
!=
(
subchain_number
+
1_u64
)
.checked_sub
(
target_number
)
{
tracing
::
error!
(
LOG_TARGET
,
...
...
Bernhard Schuster
@drahnr
mentioned in commit
4a93c46e
·
Aug 31, 2021
mentioned in commit
4a93c46e
mentioned in commit 4a93c46e3057828e72b78d7c949a13e242a10d16
Toggle commit list
Javier Viola
@pepoviola
mentioned in commit
2ffb293e
·
Nov 20, 2021
mentioned in commit
2ffb293e
mentioned in commit 2ffb293e6478c8cd230723ae1c299d2eefa15b42
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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