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

Introduces initial range consesnus mechanism #391

Conversation

thadouk
Copy link
Contributor

@thadouk thadouk commented Apr 25, 2024

Proposed changes

Adds a new endpoint that allows the chain to reach consenus over the initial ethereum range to be used.
This allows to simplify the voting logic for active ranges, eliminating the special case of the first range.

Adds a new endpoint that allows the chain to reach consenus over the
initial ethereum range to be used.
This allows to simplify the voting logic for active ranges, eliminating
the special case of the first range.
pallets/eth-bridge/src/lib.rs Show resolved Hide resolved
pallets/eth-bridge/src/lib.rs Outdated Show resolved Hide resolved
pallets/eth-bridge/src/lib.rs Show resolved Hide resolved
latest_seen_block,
);
if let Some(events_partition) =
events_helpers::discovered_eth_events_partition_factory(nominated_range, Vec::new())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we calling this function with an empty array?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its a factory method that produces partitions given an input of events. In the case of the initial range consensus we are interested in producing a partition with no events and the nominated_range

pallets/eth-bridge/src/lib.rs Outdated Show resolved Hide resolved
pallets/eth-bridge/src/lib.rs Outdated Show resolved Hide resolved
pallets/eth-bridge/src/lib.rs Outdated Show resolved Hide resolved
@thadouk thadouk changed the title Introduces intial range consesnus mechanism Introduces initial range consesnus mechanism May 2, 2024
@thadouk thadouk merged commit 9af749d into feat/SYS-3560-add-event-listener May 2, 2024
@thadouk thadouk deleted the thadouk-introduce-first-range-consensus-mechanism-extrinsic branch May 2, 2024 14:45
thadouk added a commit that referenced this pull request May 3, 2024
Adds a new endpoint that allows the chain to reach consenus over the initial ethereum range to be used.
This allows to simplify the voting logic for active ranges, eliminating the special case of the first range.

Jira ticket:
- SYS-3930
thadouk added a commit that referenced this pull request May 23, 2024
Adds a new endpoint that allows the chain to reach consenus over the initial ethereum range to be used.
This allows to simplify the voting logic for active ranges, eliminating the special case of the first range.

Jira ticket:
- SYS-3930
thadouk added a commit that referenced this pull request Jun 5, 2024
Adds a new endpoint that allows the chain to reach consenus over the initial ethereum range to be used.
This allows to simplify the voting logic for active ranges, eliminating the special case of the first range.

Jira ticket:
- SYS-3930
thadouk added a commit that referenced this pull request Jun 26, 2024
Adds a new endpoint that allows the chain to reach consenus over the initial ethereum range to be used.
This allows to simplify the voting logic for active ranges, eliminating the special case of the first range.

Jira ticket:
- SYS-3930
thadouk added a commit that referenced this pull request Jun 26, 2024
Adds a new endpoint that allows the chain to reach consenus over the initial ethereum range to be used.
This allows to simplify the voting logic for active ranges, eliminating the special case of the first range.

Jira ticket:
- SYS-3930
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants