X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FHTLCFailChannelUpdate.ts;h=b89c14622ff4f5af312ea9b3c1068a6dd4774c4b;hb=c3ae2d6897e5a809459c8d9a72a4b3aa0052c8c8;hp=2d33a1385654091867eb3b844375709eb0458525;hpb=acecce750cf1159a51f9d1a4dbfd717520739e92;p=ldk-java diff --git a/ts/structs/HTLCFailChannelUpdate.ts b/ts/structs/HTLCFailChannelUpdate.ts index 2d33a138..b89c1462 100644 --- a/ts/structs/HTLCFailChannelUpdate.ts +++ b/ts/structs/HTLCFailChannelUpdate.ts @@ -29,6 +29,7 @@ export class ChannelUpdateMessage extends HTLCFailChannelUpdate { super(null, ptr); const msg: number = obj.msg; const msg_hu_conv: ChannelUpdate = new ChannelUpdate(null, msg); + msg_hu_conv.ptrs_to.add(this); this.msg = msg_hu_conv; } } @@ -49,4 +50,12 @@ export class NodeFailure extends HTLCFailChannelUpdate { this.node_id = obj.node_id; this.is_permanent = obj.is_permanent; } +} + public HTLCFailChannelUpdate clone() { + number ret = bindings.HTLCFailChannelUpdate_clone(this.ptr); + HTLCFailChannelUpdate ret_hu_conv = HTLCFailChannelUpdate.constr_from_ptr(ret); + ret_hu_conv.ptrs_to.add(this); + return ret_hu_conv; + } + }