link+contractcourt: rename processHodlEvent to processHtlcResolution

This commit is contained in:
carla committed 2019-12-20 12:59:56 +02:00
1 parent 6464f0dda0
commit ebfbc48973
2 files changed
+10 -9

No files matched your search

@@ -169,8 +169,8 @@ func (h *htlcIncomingContestResolver) Resolve() (ContractResolver, error) {
// Define closure to process htlc resolutions either direct or triggered by
// later notification.
processHodlEvent := func(e invoices.HtlcResolution) (ContractResolver,
error) {
processHtlcResolution := func(e invoices.HtlcResolution) (
ContractResolver, error) {
if e.Preimage == nil {
log.Infof("%T(%v): Exit hop HTLC canceled "+
@@ -212,7 +212,7 @@ func (h *htlcIncomingContestResolver) Resolve() (ContractResolver, error) {
// Resolve the htlc directly if possible.
if event != nil {
return processHodlEvent(*event)
return processHtlcResolution(*event)
}
default:
return nil, err
@@ -254,7 +254,7 @@ func (h *htlcIncomingContestResolver) Resolve() (ContractResolver, error) {
case hodlItem := <-hodlChan:
htlcResolution := hodlItem.(invoices.HtlcResolution)
return processHodlEvent(htlcResolution)
return processHtlcResolution(htlcResolution)
case newBlock, ok := <-blockEpochs.Epochs:
if !ok {