Skip to content

smite-scenarios: handle channel_ready implicitly on receive - #265

Open
NishantBansal2003 wants to merge 1 commit into
lnfuzz:masterfrom
NishantBansal2003:implicit-recv-channel-ready
Open

NishantBansal2003 wants to merge 1 commit into
lnfuzz:masterfrom
NishantBansal2003:implicit-recv-channel-ready

Conversation

@NishantBansal2003

Copy link
Copy Markdown
Contributor

This would allow the executor to avoid halting when channel_ready is received in the middle of another negotiation. It would also be useful for HTLC fuzzing once we add implicit handling of commitment_signed and revoke_and_ack.

The reason for splitting recv_implicit_bolt and recv_explicit_bolt is that explicitly handled message types do not care about implicitly handled messages, so when receiving one, we can simply skip those. For implicitly handled message types, however, check a precondition when the specific implicit message is received before receiving the next message. This split helps separate those drains based on that behavior

The target can send channel_ready before a message
we're explicitly waiting for, so recv_non_ping now
records it into channel_states and explicit receives
skip past it instead of failing.

Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant