Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
nodes
rust
Duniter v2S
Merge requests
!303
Resolve "OutgoingAuthorities event is triggered too many times."
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "OutgoingAuthorities event is triggered too many times."
281-outgoingauthorities-event-is-triggered-too-many-times
into
master
Overview
1
Commits
5
Pipelines
9
Changes
4
Merged
Hugo Trentesaux
requested to merge
281-outgoingauthorities-event-is-triggered-too-many-times
into
master
3 months ago
Overview
1
Commits
5
Pipelines
9
Changes
4
Expand
Closes
#281 (closed)
Closes
#243 (closed)
Edited
3 months ago
by
Hugo Trentesaux
0
0
Merge request reports
Compare
master
version 3
2aa18ec5
3 months ago
version 2
f36c580f
3 months ago
version 1
d6706d9d
3 months ago
master (base)
and
latest version
latest version
c8247b06
5 commits,
3 months ago
version 3
2aa18ec5
4 commits,
3 months ago
version 2
f36c580f
2 commits,
3 months ago
version 1
d6706d9d
1 commit,
3 months ago
4 files
+
105
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
Search (e.g. *.vue) (Ctrl+P)
pallets/authority-members/src/lib.rs
+
11
−
0
Options
@@ -575,14 +575,25 @@ impl<T: Config> pallet_session::SessionManager<T::ValidatorId> for Pallet<T> {
return
None
;
}
// -- handle incoming members
// callback when smith is incoming
for
member_id
in
members_ids_to_add
.iter
()
{
T
::
OnIncomingMember
::
on_incoming_member
(
*
member_id
);
}
// a single event with all authorities if some
if
!
members_ids_to_add
.is_empty
()
{
Self
::
deposit_event
(
Event
::
IncomingAuthorities
{
members
:
members_ids_to_add
.clone
(),
});
}
// -- handle outgoing members
// callback when smith is outgoing
for
member_id
in
members_ids_to_del
.iter
()
{
T
::
OnOutgoingMember
::
on_outgoing_member
(
*
member_id
);
}
// a single event with all authorities if some
if
!
members_ids_to_del
.is_empty
()
{
Self
::
deposit_event
(
Event
::
OutgoingAuthorities
{
members
:
members_ids_to_del
.clone
(),
});
Loading