Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/handle geopatch updates in notifier #1620

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

wassimans
Copy link
Contributor

Description

This pull request refactors the Notifier module to align with the updated topology change handling GeoPatch updates. The changes include:

  1. Refactor Notifier Logic:
    • Removed dependency on unavailable_nodes for election and topology change calculations.
    • Simplified logic to work exclusively with prev_available_nodes and new_available_nodes, reflecting the current architecture needs.

  2. Enhance GeoPatch Handling:
    • Triggered a systematic Notifier process when a GeoPatch update occurs, ensuring consistency in storage elections and data distribution.

This enhancement resolves outdated logic in the Notifier module and addresses potential inconsistencies caused by GeoPatch updates.

Fixes #1619

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Unit Tests:

    • Refactored existing unit tests to align with the new Notifier logic.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

bchamagne and others added 4 commits November 25, 2024 17:45
…#1588)

* add stamp.genesis_address

* migration: add genesis to io

* code_change

* add genesis to graphql

* add genesis to explorer

* add genesis column to transactions list

* set the genesis before decoding columns

* code_change fix

* remove opts from deserialize

* add missing aliases

* update graphql desc

* Add genesis address only if requested

* Hide genesis address in mobile view

---------

Co-authored-by: Neylix <[email protected]>
@wassimans wassimans added P2P Involve P2P networking enhancements election labels Dec 4, 2024
@wassimans wassimans added this to the BLS prerequisites milestone Dec 4, 2024
@wassimans wassimans force-pushed the feature/handle-geopatch-updates-in-notifier branch from 07a79d4 to f1c4300 Compare December 5, 2024 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
election enhancements P2P Involve P2P networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance Notifier to Handle GeoPatch Changes
3 participants