Disallow optimistic sends #2670
Labels
04-channel
change: state machine breaking
Issues or PRs that break consensus (need to be released in at least a new minor version)
help wanted
Issues for which we would appreciate help/support from the community
type: bug
Something isn't working as expected
Milestone
Problem
Optimistic sends are not fully functional since a packet that is sent on a channel that would not eventually open cannot be timed out.
Solution
To prevent that this situation happens and affects users we should not allow optimistic sends for now until we can properly support them. This problem actually already affected a user in the past.
Proposal
channel.State != types.OPEN
so that packets can only be sent when the channel is open.This is a state-machine breaking change. We can discuss whether to do minor back ports or not.
cc: @AdityaSripal
For Admin Use
The text was updated successfully, but these errors were encountered: