Skip to content

Write rgb_payment for pending HTLCs to match deserialization#32

Merged
zoedberg merged 1 commit into
RGB-Tools:rgbfrom
dcorral:fix-pending-htlc-rgb-payment-ser
Jul 24, 2026
Merged

Write rgb_payment for pending HTLCs to match deserialization#32
zoedberg merged 1 commit into
RGB-Tools:rgbfrom
dcorral:fix-pending-htlc-rgb-payment-ser

Conversation

@dcorral

@dcorral dcorral commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The channel serializer does not write rgb_payment for pending inbound and outbound HTLCs, while deserialization reads it for both. A node that persists a channel with an HTLC in flight then fails to deserialize it on restart. This writes the field on both paths so write and read match.

Regression test: RGB-Tools/rgb-lightning-node#136.

@zoedberg
zoedberg merged commit e0e7aab into RGB-Tools:rgb Jul 24, 2026
12 checks passed
@zoedberg

Copy link
Copy Markdown
Member

Thank you!

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