X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FErrorAction.ts;h=64eea7a0b89855539a0d9aae7755c3edc442f960;hb=1854b5cebef22ace9e9e4dd191f609818df9ce08;hp=ff12a1ded092d7a55610e74d05695a207b875270;hpb=5fd405f7a48aaeca779c45c88ec6b3d3d3dbf0e4;p=ldk-java diff --git a/ts/structs/ErrorAction.ts b/ts/structs/ErrorAction.ts index ff12a1de..64eea7a0 100644 --- a/ts/structs/ErrorAction.ts +++ b/ts/structs/ErrorAction.ts @@ -19,6 +19,9 @@ export default class ErrorAction extends CommonBase { if (raw_val instanceof bindings.LDKErrorAction.IgnoreAndLog) { return new IgnoreAndLog(this.ptr, raw_val); } + if (raw_val instanceof bindings.LDKErrorAction.IgnoreDuplicateGossip) { + return new IgnoreDuplicateGossip(this.ptr, raw_val); + } if (raw_val instanceof bindings.LDKErrorAction.SendErrorMessage) { return new SendErrorMessage(this.ptr, raw_val); } @@ -48,6 +51,11 @@ export class IgnoreAndLog extends ErrorAction { this.ignore_and_log = obj.ignore_and_log; } } +export class IgnoreDuplicateGossip extends ErrorAction { + private constructor(ptr: number, obj: bindings.LDKErrorAction.IgnoreDuplicateGossip) { + super(null, ptr); + } +} export class SendErrorMessage extends ErrorAction { public msg: ErrorMessage; private constructor(ptr: number, obj: bindings.LDKErrorAction.SendErrorMessage) { @@ -91,6 +99,13 @@ export class SendErrorMessage extends ErrorAction { return ret_hu_conv; } + public static ErrorAction constructor_ignore_duplicate_gossip() { + number ret = bindings.ErrorAction_ignore_duplicate_gossip(); + ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(ret_hu_conv); + return ret_hu_conv; + } + public static ErrorAction constructor_send_error_message(ErrorMessage msg) { number ret = bindings.ErrorAction_send_error_message(msg == null ? 0 : msg.ptr & ~1); ErrorAction ret_hu_conv = ErrorAction.constr_from_ptr(ret);