pytest: Reproduce #3915

This commit is contained in:
Christian Decker
2020-08-11 15:23:33 +02:00
parent 639eaaf2b4
commit 0dcd974d97
2 changed files with 46 additions and 1 deletions

View File

@@ -2661,6 +2661,11 @@ static void presplit_cb(struct presplit_mod_data *d, struct payment *p)
struct payment *c =
payment_new(p, NULL, p, p->modifiers);
/* Annotate the subpayments with the bolt11 string,
* they'll be used when aggregating the payments
* again. */
c->bolt11 = tal_strdup(c, p->bolt11);
/* Get ~ target, but don't exceed amt */
c->amount = fuzzed_near(target, amt);