Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hnt-pub
Miner
Commits
825457f9
Commit
825457f9
authored
4 years ago
by
Evan Vigil-McClanahan
Browse files
Options
Download
Email Patches
Plain Diff
fix hbbft perf for pre-validator code
parent
c2efe4ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cli/miner_cli_hbbft.erl
+3
-2
src/cli/miner_cli_hbbft.erl
with
3 additions
and
2 deletions
+3
-2
src/cli/miner_cli_hbbft.erl
+
3
-
2
View file @
825457f9
...
...
@@ -258,8 +258,9 @@ hbbft_perf(["hbbft", "perf"], [], Flags) ->
{
Start1
,
maps
:
to_list
(
Penalties1
)};
_
->
{
Start0
+
1
,
[{
A
,
S
}
||
{
S
,
_
L
,
A
}
<-
blockchain_election
:
adjust_old_group
(
[{
0
,
0
,
A
}
||
A
<-
ConsensusAddrs
],
Ledger
)]}
[{
A
,
{
S
,
0
.
0
}}
||
{
S
,
_
L
,
A
}
<-
blockchain_election
:
adjust_old_group
(
[{
0
,
0
,
A
}
||
A
<-
ConsensusAddrs
],
Ledger
)]}
end
,
Blocks
=
[
begin
{
ok
,
Block
}
=
blockchain
:
get_block
(
Ht
,
Chain
),
Block
end
||
Ht
<-
lists
:
seq
(
Start
,
End
)],
...
...
This diff is collapsed.
Click to expand it.
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