ElementsProject / ElementsProject/lightning

Peer storage sent too early

Open
#7,931 7 comments 1 reaction 1 assignee Claimed by @vincenzopalazzo View on GitHub
BOUNTY! 🫰 Status::Assigned
Dominant language
C
Stars
3.1k
Forks
1k
Avg merge
4d 10h
Merged PRs (30d)
13

Description

### Issue and Steps to Reproduce
When opening a new channel, CLN immediately sends a `peer_storage` before the channel is fully open. Eclair will ignore such `peer_storage` as we only accept storage from peers that have an **active** channel with us.
When reconnecting with a peer, CLN sends a `peer_storage` immediately, even before sending `peer_storage_retrieval`. This will override any previous storage backup and cancel any benefit from the feature (or in Eclair's case it will simply be ignored because there is no **active** channel yet).

### `getinfo` output
`"version": "v24.08.2"`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.