X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FUtxoLookup.java;fp=src%2Fmain%2Fjava%2Forg%2Fldk%2Fstructs%2FUtxoLookup.java;h=c9346de440751b408e078baf0de87718d849fe64;hb=2f0e19ab23f28c5c1bc11dc6bff24e156da3ec01;hp=6087060d97cd03f887dbfeff647fbf84e2b7effa;hpb=ab07d4394be144b5e7eb123655031dba5349b849;p=ldk-java diff --git a/src/main/java/org/ldk/structs/UtxoLookup.java b/src/main/java/org/ldk/structs/UtxoLookup.java index 6087060d..c9346de4 100644 --- a/src/main/java/org/ldk/structs/UtxoLookup.java +++ b/src/main/java/org/ldk/structs/UtxoLookup.java @@ -39,19 +39,19 @@ public class UtxoLookup extends CommonBase { public static interface UtxoLookupInterface { /** * Returns the transaction output of a funding transaction encoded by [`short_channel_id`]. - * Returns an error if `genesis_hash` is for a different chain or if such a transaction output - * is unknown. + * Returns an error if `chain_hash` is for a different chain or if such a transaction output is + * unknown. * * [`short_channel_id`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#definition-of-short_channel_id */ - UtxoResult get_utxo(byte[] genesis_hash, long short_channel_id); + UtxoResult get_utxo(byte[] chain_hash, long short_channel_id); } private static class LDKUtxoLookupHolder { UtxoLookup held; } public static UtxoLookup new_impl(UtxoLookupInterface arg) { final LDKUtxoLookupHolder impl_holder = new LDKUtxoLookupHolder(); impl_holder.held = new UtxoLookup(new bindings.LDKUtxoLookup() { - @Override public long get_utxo(byte[] genesis_hash, long short_channel_id) { - UtxoResult ret = arg.get_utxo(genesis_hash, short_channel_id); + @Override public long get_utxo(byte[] chain_hash, long short_channel_id) { + UtxoResult ret = arg.get_utxo(chain_hash, short_channel_id); Reference.reachabilityFence(arg); long result = ret == null ? 0 : ret.clone_ptr(); if (impl_holder.held != null) { impl_holder.held.ptrs_to.add(ret); }; @@ -62,15 +62,15 @@ public class UtxoLookup extends CommonBase { } /** * Returns the transaction output of a funding transaction encoded by [`short_channel_id`]. - * Returns an error if `genesis_hash` is for a different chain or if such a transaction output - * is unknown. + * Returns an error if `chain_hash` is for a different chain or if such a transaction output is + * unknown. * * [`short_channel_id`]: https://github.com/lightning/bolts/blob/master/07-routing-gossip.md#definition-of-short_channel_id */ - public UtxoResult get_utxo(byte[] genesis_hash, long short_channel_id) { - long ret = bindings.UtxoLookup_get_utxo(this.ptr, InternalUtils.check_arr_len(genesis_hash, 32), short_channel_id); + public UtxoResult get_utxo(byte[] chain_hash, long short_channel_id) { + long ret = bindings.UtxoLookup_get_utxo(this.ptr, InternalUtils.check_arr_len(chain_hash, 32), short_channel_id); Reference.reachabilityFence(this); - Reference.reachabilityFence(genesis_hash); + Reference.reachabilityFence(chain_hash); Reference.reachabilityFence(short_channel_id); if (ret >= 0 && ret <= 4096) { return null; } org.ldk.structs.UtxoResult ret_hu_conv = org.ldk.structs.UtxoResult.constr_from_ptr(ret);