X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FUnsignedChannelUpdate.mts;fp=ts%2Fstructs%2FUnsignedChannelUpdate.mts;h=180a95a298c25f2470bb976991ada3755613c919;hb=bbf1ef578b7cfe9fc7d3ad8b6626ae6204e370e5;hp=116e1bf6c803ffb3b8dce2aae985f09e7cad9f66;hpb=65e786e1912ddad0d749508b8830cf30b37e784e;p=ldk-java diff --git a/ts/structs/UnsignedChannelUpdate.mts b/ts/structs/UnsignedChannelUpdate.mts index 116e1bf6..180a95a2 100644 --- a/ts/structs/UnsignedChannelUpdate.mts +++ b/ts/structs/UnsignedChannelUpdate.mts @@ -515,6 +515,19 @@ export class UnsignedChannelUpdate extends CommonBase { bindings.UnsignedChannelUpdate_set_fee_proportional_millionths(this.ptr, val); } + /** + * Excess data which was signed as a part of the message which we do not (yet) understand how + * to decode. This is stored to ensure forward-compatibility as new fields are added to the + * lightning gossip + * + * Returns a copy of the field. + */ + public get_excess_data(): Uint8Array { + const ret: number = bindings.UnsignedChannelUpdate_get_excess_data(this.ptr); + const ret_conv: Uint8Array = bindings.decodeUint8Array(ret); + return ret_conv; + } + /** * Excess data which was signed as a part of the message which we do not (yet) understand how * to decode. This is stored to ensure forward-compatibility as new fields are added to the