Skip to content

if we are accepting channels, check for channel_id collisions - #10819

Open
ecdsa wants to merge 1 commit into
masterfrom
check_channel_id
Open

if we are accepting channels, check for channel_id collisions#10819
ecdsa wants to merge 1 commit into
masterfrom
check_channel_id

Conversation

@ecdsa

@ecdsa ecdsa commented Aug 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@ecdsa
ecdsa force-pushed the check_channel_id branch from bb003fe to bd7929b Compare August 7, 2026 15:51
@ecdsa
ecdsa marked this pull request as ready for review August 7, 2026 16:09
Comment thread electrum/lnworker.py
assert type(temp_chan.storage) is dict
channel_id = temp_chan.channel_id.hex()
channels_db = self.db.get_dict('channels')
assert channel_id not in channels_db

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe also add

assert bfh(channel_id) not in self._channel_backups

@SomberNight SomberNight added this to the 4.8.1 milestone Aug 7, 2026
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