X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=ts%2Fstructs%2FPaymentParameters.mts;h=a71ce7ded4c0439df40332828ba5303fea830bf4;hb=7cbcc5ef17b8036b2e99980e227c7ca0d44dba7f;hp=510946030724d0d1b9836f013ea9271c0223dff3;hpb=e2bd9223757025980105f0aeb17900f17734b2e3;p=ldk-java diff --git a/ts/structs/PaymentParameters.mts b/ts/structs/PaymentParameters.mts index 51094603..a71ce7de 100644 --- a/ts/structs/PaymentParameters.mts +++ b/ts/structs/PaymentParameters.mts @@ -526,6 +526,19 @@ export class PaymentParameters extends CommonBase { bindings.PaymentParameters_set_max_channel_saturation_power_of_half(this.ptr, val); } + /** + * A list of SCIDs which this payment was previously attempted over and which caused the + * payment to fail. Future attempts for the same payment shouldn't be relayed through any of + * these SCIDs. + * + * Returns a copy of the field. + */ + public get_previously_failed_channels(): bigint[] { + const ret: number = bindings.PaymentParameters_get_previously_failed_channels(this.ptr); + const ret_conv: bigint[] = bindings.decodeUint64Array(ret); + return ret_conv; + } + /** * A list of SCIDs which this payment was previously attempted over and which caused the * payment to fail. Future attempts for the same payment shouldn't be relayed through any of