Browse Source

fixup! paymod: Teach the presplit modifier to respect the chan HTLC limit

travis-test
Christian Decker 5 years ago
parent
commit
f6633c7de2
  1. 3
      plugins/libplugin-pay.c

3
plugins/libplugin-pay.c

@ -2460,8 +2460,7 @@ static void presplit_cb(struct presplit_mod_data *d, struct payment *p)
return payment_fail(
p, "Cannot attempt payment, we have no channel to "
"which we can add an HTLC");
} else if (p->amount.millisatoshis / MPP_TARGET_SIZE >
htlcs) /* Raw: division */
} else if (p->amount.millisatoshis / MPP_TARGET_SIZE > htlcs) /* Raw: division */
target.millisatoshis = p->amount.millisatoshis / htlcs; /* Raw: division */
/* If we are already below the target size don't split it

Loading…
Cancel
Save