X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=ts%2Fstructs%2FP2PGossipSync.mts;fp=ts%2Fstructs%2FP2PGossipSync.mts;h=362415d8e4dfd1570d7b51c8c2eb85b470b33db6;hb=44e2b3520205dadcda0d34de8addc7a0b7ea7362;hp=2e980a11245bc969156610073a0027d6050986b1;hpb=27b8cc09b5182166e0ee7d7071dff5abfe71b8a2;p=ldk-java diff --git a/ts/structs/P2PGossipSync.mts b/ts/structs/P2PGossipSync.mts index 2e980a11..362415d8 100644 --- a/ts/structs/P2PGossipSync.mts +++ b/ts/structs/P2PGossipSync.mts @@ -456,7 +456,7 @@ export class P2PGossipSync extends CommonBase { * correct, and the announcement is signed with channel owners' keys. */ public static constructor_new(network_graph: NetworkGraph, utxo_lookup: Option_UtxoLookupZ, logger: Logger): P2PGossipSync { - const ret: bigint = bindings.P2PGossipSync_new(network_graph == null ? 0n : CommonBase.get_ptr_of(network_graph), CommonBase.get_ptr_of(utxo_lookup), logger == null ? 0n : CommonBase.get_ptr_of(logger)); + const ret: bigint = bindings.P2PGossipSync_new(network_graph == null ? 0n : CommonBase.get_ptr_of(network_graph), CommonBase.get_ptr_of(utxo_lookup), CommonBase.get_ptr_of(logger)); const ret_hu_conv: P2PGossipSync = new P2PGossipSync(null, ret); CommonBase.add_ref_from(ret_hu_conv, ret_hu_conv); CommonBase.add_ref_from(ret_hu_conv, network_graph);