Skip to content

Remove system channels.#3634

Merged
afck merged 2 commits intolinera-io:mainfrom
afck:system-channel
Mar 24, 2025
Merged

Remove system channels.#3634
afck merged 2 commits intolinera-io:mainfrom
afck:system-channel

Conversation

@afck
Copy link
Contributor

@afck afck commented Mar 24, 2025

Motivation

As of #3432 we are not using system channels anymore.

Proposal

Remove the SystemChannel type and any system channel-specific logic, in particular the "off-chain subscription handling".

Test Plan

The social example tests make sure that user pub-sub channels still work.

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

Links

@afck afck changed the title System channel Remove system channels. Mar 24, 2025
@afck afck requested review from bart-linera, deuszx and ma2bd March 24, 2025 17:13
@afck afck marked this pull request as ready for review March 24, 2025 17:13
message.grant == Amount::ZERO,
ChainError::GrantUseOnBroadcast
);
let GenericApplicationId::User(application_id) =
Copy link
Contributor

Choose a reason for hiding this comment

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

Is GenericApplicationId::System used anywhere else now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, in events.

@afck afck merged commit 7c814f8 into linera-io:main Mar 24, 2025
23 checks passed
@afck afck deleted the system-channel branch March 24, 2025 17:45
afck added a commit that referenced this pull request Mar 25, 2025
## Motivation

`SystemMessage::Subscribe` and `Unsubscribe` were only used for system
channels, which are now gone.

## Proposal

Remove them, and the `subscribers` collection in the system execution
state view.

## Test Plan

CI

## Release Plan

- Nothing to do / These changes follow the usual release cycle.

## Links

- System channels were removed in
#3634.
- [reviewer
checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
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.

2 participants