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
49128c88
Unverified
Commit
49128c88
authored
Sep 07, 2021
by
Shawn Tabrizi
Committed by
GitHub
Sep 08, 2021
Browse files
Update Slot Range Expect Proof (#3707)
* update slot range expect proof * update to same acronym
parent
a543821d
Pipeline
#156046
passed with stages
in 49 minutes and 24 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
runtime/common/src/auctions.rs
View file @
49128c88
...
@@ -605,7 +605,7 @@ impl<T: Config> Pallet<T> {
...
@@ -605,7 +605,7 @@ impl<T: Config> Pallet<T> {
.map
(|(
_
,
_
,
amount
)|
*
amount
*
(
range
.len
()
as
u32
)
.into
())
.map
(|(
_
,
_
,
amount
)|
*
amount
*
(
range
.len
()
as
u32
)
.into
())
};
};
for
i
in
0
..
SlotRange
::
LEASE_PERIODS_PER_SLOT
{
for
i
in
0
..
SlotRange
::
LEASE_PERIODS_PER_SLOT
{
let
r
=
SlotRange
::
new_bounded
(
0
,
0
,
i
as
u32
)
.expect
(
"`i <
4
`; qed"
);
let
r
=
SlotRange
::
new_bounded
(
0
,
0
,
i
as
u32
)
.expect
(
"`i <
LPPS
`; qed"
);
if
let
Some
(
bid
)
=
best_bid
(
r
)
{
if
let
Some
(
bid
)
=
best_bid
(
r
)
{
best_winners_ending_at
[
i
]
=
(
vec!
[
r
],
bid
);
best_winners_ending_at
[
i
]
=
(
vec!
[
r
],
bid
);
}
}
...
...
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