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

Send channel tlc info directly to counterparty and update network graph with owned channel information #446

Merged

Conversation

contrun
Copy link
Collaborator

@contrun contrun commented Jan 6, 2025

No description provided.

@contrun contrun force-pushed the update-channel-info-with-counterparty branch from a338f8f to 7fadd70 Compare January 6, 2025 15:00
@contrun contrun force-pushed the update-channel-info-with-counterparty branch from 84a2710 to f2346fb Compare January 6, 2025 15:38
@contrun contrun force-pushed the update-channel-info-with-counterparty branch from 185f659 to 4686404 Compare January 7, 2025 09:49
@contrun contrun force-pushed the update-channel-info-with-counterparty branch from 144cde1 to 12a8555 Compare January 7, 2025 11:20
@contrun contrun marked this pull request as ready for review January 7, 2025 11:35
@contrun contrun force-pushed the update-channel-info-with-counterparty branch from 86f3e48 to cf3d47c Compare January 10, 2025 03:51
@contrun contrun force-pushed the update-channel-info-with-counterparty branch from 794077d to 2353f37 Compare January 10, 2025 06:45
@contrun contrun force-pushed the update-channel-info-with-counterparty branch from 2353f37 to 0d996cd Compare January 10, 2025 06:46
@contrun contrun force-pushed the update-channel-info-with-counterparty branch from 20c5b5c to dfb2683 Compare January 10, 2025 10:19
@contrun contrun changed the title Send channel tlc info directly to counterparty Send channel tlc info directly to counterparty and update network graph with owned channel information Jan 10, 2025
@contrun
Copy link
Collaborator Author

contrun commented Jan 14, 2025

This PR added new fields to ChannelActorState thus requires migration. I will add relevant migration code after the concepts presented in this PR are reviewed.

src/fiber/schema/fiber.mol Outdated Show resolved Hide resolved
src/fiber/graph.rs Outdated Show resolved Hide resolved
state
.generate_and_broadcast_channel_update(&self.network)
.await;
state.notify_owned_channel_updated(&self.network).await;
Copy link
Member

Choose a reason for hiding this comment

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

handle_update_command only update our part of channel, I think we should send OwnedChannelUpdateEvent::Updated instead of OwnedChannelUpdateEvent::Up here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done in f25f54e

@quake quake merged commit 7f2ca14 into nervosnetwork:develop Jan 14, 2025
18 checks passed
@gpBlockchain
Copy link
Contributor

LGTM

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