mpp: Add the presplit-modifier that splits a root payment first

This commit is contained in:
Christian Decker
2020-07-01 18:59:42 +02:00
parent 7f53ade64b
commit c97ff05ffb
3 changed files with 110 additions and 0 deletions

View File

@@ -326,6 +326,7 @@ REGISTER_PAYMENT_MODIFIER_HEADER(exemptfee, struct exemptfee_data);
REGISTER_PAYMENT_MODIFIER_HEADER(shadowroute, struct shadow_route_data);
REGISTER_PAYMENT_MODIFIER_HEADER(directpay, struct direct_pay_data);
extern struct payment_modifier waitblockheight_pay_mod;
extern struct payment_modifier presplit_pay_mod;
/* For the root payment we can seed the channel_hints with the result from
* `listpeers`, hence avoid channels that we know have insufficient capacity