lightning icon indicating copy to clipboard operation
lightning copied to clipboard

Peer storage doesn't scale

Open morehouse opened this issue 10 months ago • 3 comments

If SCBs get larger than 64KB, the peer_storage message sent to peers gets truncated. This means that later when the SCB is sent back in the your_peer_storage message, it fails the MAC check.

Based on typical scb_chan serialized sizes, peer storage starts to break at ~500 channels. At maximum scb_chan serialized sizes, things break at ~200 channels.

One potential solution is to packetize large SCBs for transfer to/from peers.

morehouse avatar Sep 07 '23 19:09 morehouse