d0df5a4ddd
In this commit, we fix an existing bug in the package, causing resolutions to be restarted without their required supplementary information. This can happen if a distinct HTLC set gets confirmed compared to the HTLCs that we may have had our commitment at time of close. Due to this bug, on restart certain HTLCS would be rejected as they would present their state to the invoice registry, but be rejected due to checks such as amount value. To fix this, we'll now pass in the set of confirmed HTLCs into the resolvers when we re-launch them, giving us access to all the information we need to supplement the HTLCS. We also add a new test that ensures that the proper fields of a resolver are set after a restart. |
||
---|---|---|
.. | ||
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.go | ||
htlc_incoming_contest_resolver.go | ||
htlc_incoming_resolver_test.go | ||
htlc_outgoing_contest_resolver.go | ||
htlc_success_resolver.go | ||
htlc_timeout_resolver_test.go | ||
htlc_timeout_resolver.go | ||
interfaces.go | ||
log.go | ||
mock_registry_test.go | ||
utils_test.go |