6983a9e146
In this commit, we fix an off-by-one error when handling force closes from the remote party. Before this commit, if the remote party broadcasts state 2, and we were on state 1, then we wouldn't act at all. This is due to an extraneous +1 in the comparison, causing us to only detect this DLP case if the remote party's state is two beyond what we know atm. Before this commit, the test added in the prior commit failed. |
||
---|---|---|
.. | ||
briefcase_test.go | ||
briefcase.go | ||
chain_arbitrator_test.go | ||
chain_arbitrator.go | ||
chain_watcher_test.go | ||
chain_watcher.go | ||
channel_arbitrator_test.go | ||
channel_arbitrator.go | ||
commit_sweep_resolver.go | ||
contract_resolvers_test.go | ||
contract_resolvers.go | ||
htlc_incoming_contest_resolver.go | ||
htlc_outgoing_contest_resolver.go | ||
htlc_success_resolver.go | ||
htlc_timeout_resolver.go | ||
log.go |