Repository navigation
smite: reject channel_ready for an unsigned channel - #304
Conversation
00b0941 to
c436cd4
Compare
c436cd4 to
ebed335
Compare
|
ebed335: addressed feedback + rebase on master (74d7514) Do you think the lightning developers will be interested in a PR to mention this:
It's an issue with funds at risk for the peer, though, not for the misbehaving node. Maybe SHOULD instead of MUST? |
The spec already says not to broadcast the transaction until There's probably a gap that could be closed here, and it would probably get merged if the change is small, but I'm not sure it will really make a difference for anyone implementing the spec. |
A channel is tracked from the moment we build its `funding_created`, so `ChannelReadyOracle` accepted a `channel_ready` from a target that never answered with a `funding_signed`. Without that signature we hold no valid commitment transaction, so a channel the target treats as ready leaves our funding output spendable only with its cooperation. The two-channel `channel_ready` programs skipped `funding_signed`, so they now await one for each channel.
ebed335 to
5dde24e
Compare
Based on #303