Skip to content

CLN plugin doesn't detect sync complete #377

@s373nZ

Description

@s373nZ

From the Discord discussion here.

Peerswap 5.0.0-rc2
CLN v25.02.2
Elementsd v23.2.7

On lightningd startup, Peerswap logs end with plugin-peerswap: Waiting for cln to be synced..., but looking through the code, it seems that there should be a subsequent CLN synced message if the process continued successfully.

A quick investigation indicates there might be an infinite loop during the sync verification here, which checks on the glightning variables WarningBitcoinSync and WarningLightningSync here.

Tried to whip up a quick PR to test these values for nil instead of "", but the typing didn't work. I'm not a Go programmer (yet). Perhaps there is an issue with omitempty on these properties and the marshalling or unmarshalling of the values?

It's also possible my config or unique combination of versions is to blame, so any suggestions would be appreciated to gather more information on the RPC connectivity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions