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
0330f3ba
Commit
0330f3ba
authored
5 years ago
by
André Silva
Committed by
Bastian Köcher
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
grandpa: send authority id to telemetry when starting new voter (#3705)
parent
55e5b214
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/core/finality-grandpa/src/lib.rs
+9
-6
9 additions, 6 deletions
substrate/core/finality-grandpa/src/lib.rs
with
9 additions
and
6 deletions
substrate/core/finality-grandpa/src/lib.rs
+
9
−
6
View file @
0330f3ba
...
...
@@ -632,19 +632,22 @@ where
/// has changed (e.g. as signalled by a voter command).
fn
rebuild_voter
(
&
mut
self
)
{
debug!
(
target
:
"afg"
,
"{}: Starting new voter with set ID {}"
,
self
.env.config
.name
(),
self
.env.set_id
);
let
authority_id
=
is_voter
(
&
self
.env.voters
,
&
self
.env.config.keystore
)
.map
(|
ap
|
ap
.public
())
.unwrap_or
(
Default
::
default
());
telemetry!
(
CONSENSUS_DEBUG
;
"afg.starting_new_voter"
;
"name"
=>
?
self
.env.config
.name
(),
"set_id"
=>
?
self
.env.set_id
"name"
=>
?
self
.env.config
.name
(),
"set_id"
=>
?
self
.env.set_id
,
"authority_id"
=>
authority_id
.to_string
(),
);
let
chain_info
=
self
.env.inner
.info
();
let
maybe_authority_id
=
is_voter
(
&
self
.env.voters
,
&
self
.env.config.keystore
)
.map
(|
ap
|
ap
.public
())
.unwrap_or
(
Default
::
default
());
telemetry!
(
CONSENSUS_INFO
;
"afg.authority_set"
;
"number"
=>
?
chain_info
.chain.finalized_number
,
"hash"
=>
?
chain_info
.chain.finalized_hash
,
"authority_id"
=>
maybe_
authority_id
.to_string
(),
"authority_id"
=>
authority_id
.to_string
(),
"authority_set_id"
=>
?
self
.env.set_id
,
"authorities"
=>
{
let
authorities
:
Vec
<
String
>
=
self
.env.voters
.voters
()
...
...
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