X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=inline;f=ts%2Fstructs%2FNodeFeatures.ts;h=d65e11e3f445eac9e5a34117eb60a940f1421d60;hb=7d6be8a5ef72a4ebfe07660cce55f43f6cc30b80;hp=13652f14d720313d86d2b5443342e64ec9770bf6;hpb=9e8763c71cd61d55be7c869d973524f75209a3f3;p=ldk-java diff --git a/ts/structs/NodeFeatures.ts b/ts/structs/NodeFeatures.ts index 13652f14..d65e11e3 100644 --- a/ts/structs/NodeFeatures.ts +++ b/ts/structs/NodeFeatures.ts @@ -18,6 +18,12 @@ import * as bindings from '../bindings' // TODO: figure out location bindings.NodeFeatures_free(this.ptr); } } + public boolean eq(NodeFeatures b) { + boolean ret = bindings.NodeFeatures_eq(this.ptr, b == null ? 0 : b.ptr & ~1); + this.ptrs_to.add(b); + return ret; + } + public NodeFeatures clone() { number ret = bindings.NodeFeatures_clone(this.ptr); const ret_hu_conv: NodeFeatures = new NodeFeatures(null, ret); @@ -39,6 +45,16 @@ import * as bindings from '../bindings' // TODO: figure out location return ret_hu_conv; } + public boolean requires_unknown_bits() { + boolean ret = bindings.NodeFeatures_requires_unknown_bits(this.ptr); + return ret; + } + + public boolean supports_payment_secret() { + boolean ret = bindings.NodeFeatures_supports_payment_secret(this.ptr); + return ret; + } + public Uint8Array write() { Uint8Array ret = bindings.NodeFeatures_write(this.ptr); return ret;