Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
grandpa: use weights types in latest finality-grandpa
Browse files Browse the repository at this point in the history
  • Loading branch information
octol committed Apr 15, 2020
1 parent 8b11a5b commit 83c82c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions client/finality-grandpa/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ impl RoundState {

Self {
round,
total_weight: round_state.total_weight,
threshold_weight: round_state.threshold_weight,
total_weight: round_state.total_weight.get(),
threshold_weight: round_state.threshold_weight.get(),
prevotes: Prevotes {
current_weight: round_state.prevote_current_weight,
current_weight: round_state.prevote_current_weight.0,
missing: missing_prevotes,
},
precommits: Precommits {
current_weight: round_state.precommit_current_weight,
current_weight: round_state.precommit_current_weight.0,
missing: missing_precommits,
},
}
Expand Down

0 comments on commit 83c82c9

Please sign in to comment.