Blockstream / greenlight

Build apps using self-custodial lightning nodes in the cloud
https://blockstream.github.io/greenlight/getting-started/
MIT License
117 stars 27 forks source link

signer: Relax two rules to be warnings only #527

Closed cdecker closed 1 month ago

cdecker commented 1 month ago

We need to accept repeat signature requests and revocations for older states because the signer state update and the CLN state update are not atomic, i.e., the signer commits first, therefore ratchets up, before CLN stores its state, meaning we could potentially replay some prior state due to a preemption and restart inbetween. Relaxing these two should address the majority of our desync issue.