]>
git.bitcoin.ninja Git - ldk-java/log
Matt Corallo [Thu, 27 Apr 2023 05:33:05 +0000 (05:33 +0000)]
Merge pull request #128 from TheBlueMatt/main
Update to LDK 0.0.115
Matt Corallo [Thu, 27 Apr 2023 02:24:22 +0000 (02:24 +0000)]
Explicitly use bitcoinj 0.17 since I already did it
Matt Corallo [Wed, 26 Apr 2023 18:34:08 +0000 (18:34 +0000)]
Update CI refernces to 0.0.115
Matt Corallo [Wed, 26 Apr 2023 18:34:40 +0000 (18:34 +0000)]
[TS] Update auto-generated bindings to LDK 0.0.115
Matt Corallo [Wed, 26 Apr 2023 18:29:38 +0000 (18:29 +0000)]
[TS] Support arrays of strings for LDK 0.0.115
Matt Corallo [Wed, 26 Apr 2023 18:04:51 +0000 (18:04 +0000)]
[Java] Update tests to LDK 0.0.115
Matt Corallo [Wed, 26 Apr 2023 18:04:31 +0000 (18:04 +0000)]
[Java] Update auto-generated bindings to 0.0.115
Matt Corallo [Wed, 26 Apr 2023 18:02:49 +0000 (18:02 +0000)]
[Java] Don't use `wait` as a method name as its reserved
Matt Corallo [Wed, 26 Apr 2023 02:56:17 +0000 (02:56 +0000)]
[Java] Handle array-of-strings for 0.0.115
Matt Corallo [Wed, 26 Apr 2023 02:56:07 +0000 (02:56 +0000)]
Add handling for new LDK types in 0.0.115
Matt Corallo [Fri, 31 Mar 2023 17:25:48 +0000 (17:25 +0000)]
[TS] log when an exception is thrown inside of a trait call
This was what #125 was supposed to be about, but the issue
description was overly vague.
Matt Corallo [Wed, 18 Jan 2023 18:43:57 +0000 (18:43 +0000)]
[Python] Add python bindings hooks
Matt Corallo [Sun, 19 Mar 2023 23:46:32 +0000 (23:46 +0000)]
Merge pull request #127 from TheBlueMatt/main
Add missing `UtilMethods` export and sanity-test node-net setups
Matt Corallo [Fri, 17 Mar 2023 23:21:56 +0000 (23:21 +0000)]
[TS] Update auto-generated bindings
Matt Corallo [Fri, 17 Mar 2023 17:40:54 +0000 (17:40 +0000)]
Add missing export of `UtilMethods`
Matt Corallo [Wed, 15 Mar 2023 17:33:37 +0000 (17:33 +0000)]
[TS] Throw a reasonable error if two `NodeLDKNet`s are on one `PM`
Matt Corallo [Fri, 10 Mar 2023 18:25:37 +0000 (18:25 +0000)]
Revert "Use yesterday's rustc on OSX as the release binaries were built with it"
This reverts commit
df806a3a7287441c2f27cb44135e3cb06ee83b42 .
Matt Corallo [Fri, 10 Mar 2023 18:16:26 +0000 (18:16 +0000)]
Merge pull request #126 from TheBlueMatt/main
0.0.114.0
Matt Corallo [Thu, 9 Mar 2023 20:51:46 +0000 (20:51 +0000)]
Use yesterday's rustc on OSX as the release binaries were built with it
Matt Corallo [Thu, 9 Mar 2023 17:44:12 +0000 (17:44 +0000)]
Work around rustc regression in 1.68 on android
Matt Corallo [Thu, 9 Mar 2023 00:55:29 +0000 (00:55 +0000)]
Export more CCs in an attempt to get OSX builds deterministic
Matt Corallo [Wed, 8 Mar 2023 19:37:00 +0000 (19:37 +0000)]
Work around actions brokenness
Matt Corallo [Wed, 8 Mar 2023 05:54:02 +0000 (05:54 +0000)]
Update OSX CI build to LLVM 15.0.7 (matching release builds)
Matt Corallo [Wed, 8 Mar 2023 05:13:58 +0000 (05:13 +0000)]
Update CI branches to LDK 0.0.114
Matt Corallo [Wed, 8 Mar 2023 02:43:26 +0000 (02:43 +0000)]
[TS] Update auto-generated TS bindings
Matt Corallo [Wed, 8 Mar 2023 02:43:07 +0000 (02:43 +0000)]
[Java] Update auto-generated Java bindings
Matt Corallo [Wed, 8 Mar 2023 06:04:01 +0000 (06:04 +0000)]
[TS] Slightly improve logging in TS trait calls that fail
Not actually 100% sure what we can do much better on the logging
front, but this is at least a marginal improvement.
Fixes #125.
Matt Corallo [Thu, 9 Mar 2023 18:48:32 +0000 (18:48 +0000)]
[Java] Allow the user to hook route-finding when using CMC
Matt Corallo [Wed, 8 Mar 2023 05:04:14 +0000 (05:04 +0000)]
[Java] Expose the ProbabilisticScorer from the CMC correctly
We'd previously exposed a race-y version of the ProbabilisticScorer
where its held within a lock but also made public with no threading
requirements placed on it.
This resolves that issue by exposing it via a wrapper that holds
the score lock.
Matt Corallo [Wed, 8 Mar 2023 04:48:58 +0000 (04:48 +0000)]
[Java] Expose the finalizer of traits, as some traits are locks
Matt Corallo [Wed, 8 Mar 2023 01:06:31 +0000 (01:06 +0000)]
[Java] Update tests to latest (0.0.114) LDK API, rm non-hu ones
The old non-human-object-based tests don't really have any
business being held on to, so we simply remove them entirely here,
relying on the `HumanObjectPeerTest` to do all our work.
Matt Corallo [Wed, 8 Mar 2023 01:04:56 +0000 (01:04 +0000)]
[Java] Update batteries to latest upstream (0.0.114) API
This also fixes a bug where we allowed multi-threaded access to the
`ProbabilisticScorer` without the lock required to make it safe.
Matt Corallo [Tue, 7 Mar 2023 22:40:23 +0000 (22:40 +0000)]
[TS] Update tests to latest upstream (0.0.114) LDK API
Matt Corallo [Fri, 3 Mar 2023 01:20:33 +0000 (01:20 +0000)]
Support traits with supertraits of supertraits
Matt Corallo [Fri, 3 Mar 2023 01:12:36 +0000 (01:12 +0000)]
Support (fixed-length) arrays of 16-bit integers
Matt Corallo [Wed, 8 Mar 2023 01:58:42 +0000 (01:58 +0000)]
Ensure enums generate a ref in owning structs
Previously we only added a ref in an owning struct to an enum if
that enum contained a trait in a field. This isn't sufficient as an
enum could still contain a reference to an opaque object, which
needs to stick around as long as the enum exists.
For simplicity, simply add a ref in all cases as it seems to still
work in our own internal tests.
Matt Corallo [Wed, 18 Jan 2023 18:43:44 +0000 (18:43 +0000)]
[TS] Remove unused variable in generator
Matt Corallo [Tue, 17 Jan 2023 01:17:44 +0000 (01:17 +0000)]
Pass fewer link-only args to compilation clang
Matt Corallo [Sat, 14 Jan 2023 23:24:29 +0000 (23:24 +0000)]
Merge pull request #124 from TheBlueMatt/main
Update to 0.0.113
Matt Corallo [Sat, 14 Jan 2023 08:20:38 +0000 (08:20 +0000)]
[TS] Update CI libicu package
Matt Corallo [Sat, 14 Jan 2023 06:33:48 +0000 (06:33 +0000)]
Fix WASM CI build due to Actions being trash
Matt Corallo [Sat, 14 Jan 2023 06:21:18 +0000 (06:21 +0000)]
Fix OSX CI to *actually* use upstream clang
Matt Corallo [Fri, 13 Jan 2023 20:22:06 +0000 (20:22 +0000)]
[C#,Java] Fix building on OSX due to bug in latest ld64.lld/clang
Matt Corallo [Thu, 12 Jan 2023 22:06:50 +0000 (22:06 +0000)]
[OSX] Update LLVM/clang to 15.0.3 (the latest x86_64 version)
Matt Corallo [Wed, 11 Jan 2023 00:54:24 +0000 (00:54 +0000)]
Update CI references to 0.0.113
Matt Corallo [Mon, 2 Jan 2023 01:14:43 +0000 (01:14 +0000)]
[C#] Check in initial auto-generated C# bindings
Matt Corallo [Mon, 2 Jan 2023 01:12:41 +0000 (01:12 +0000)]
[C#] Add initial hooks, the C# code compiles, the C not at all
Matt Corallo [Wed, 28 Dec 2022 18:27:51 +0000 (18:27 +0000)]
[Java] Update tests to 0.0.113 API
Matt Corallo [Wed, 28 Dec 2022 18:27:05 +0000 (18:27 +0000)]
[TS] Update tests to 0.0.113 API
Matt Corallo [Wed, 28 Dec 2022 18:26:22 +0000 (18:26 +0000)]
[TS] Update auto-generated TS bindings to 0.0.113
Matt Corallo [Wed, 28 Dec 2022 18:25:40 +0000 (18:25 +0000)]
[Java] Update auto-generated Java bindings for 0.0.113
Matt Corallo [Mon, 2 Jan 2023 01:04:45 +0000 (01:04 +0000)]
Add some additional writing hooks which C# needs
Matt Corallo [Mon, 2 Jan 2023 00:23:23 +0000 (00:23 +0000)]
[Java] Use util method where possible
Matt Corallo [Thu, 29 Dec 2022 17:20:15 +0000 (17:20 +0000)]
[Java] Drop unused util methods
Matt Corallo [Tue, 27 Dec 2022 16:50:37 +0000 (16:50 +0000)]
[TS] Support one more call function
Matt Corallo [Tue, 27 Dec 2022 16:49:49 +0000 (16:49 +0000)]
New manual U5 (from u5) and Witness types
Matt Corallo [Tue, 27 Dec 2022 02:02:24 +0000 (02:02 +0000)]
Add support for U128, passed as [u8; 16] but with human wrappers
Matt Corallo [Tue, 27 Dec 2022 02:01:40 +0000 (02:01 +0000)]
Pass array type, not subty to primitive_arr_*_hu for more context
Matt Corallo [Mon, 26 Dec 2022 19:32:44 +0000 (19:32 +0000)]
Remove args_known and fix `(void)` parsing (duh, its no arguments)
Matt Corallo [Fri, 18 Nov 2022 19:46:15 +0000 (19:46 +0000)]
Merge pull request #123 from tnull/patch-1
Update bindings branch to v0.0.112
Elias Rohrer [Fri, 18 Nov 2022 11:51:34 +0000 (12:51 +0100)]
Update bindings branch to v0.0.112.
Matt Corallo [Tue, 8 Nov 2022 23:48:07 +0000 (23:48 +0000)]
Only set up `NioPeerHandler` after chain sync completes
No peer connections must be made until after `chain_sync_complete`
is called when using the `ChannelManagerConstructor`, so
initializing the `NioPeerHandler` before then just tempts fate and
risks doing Bad Things.
Matt Corallo [Sat, 29 Oct 2022 23:05:04 +0000 (23:05 +0000)]
[Java] Always log the LDK versions on startup
Matt Corallo [Fri, 28 Oct 2022 20:44:17 +0000 (20:44 +0000)]
Merge pull request #120 from TheBlueMatt/main
Update to 0.0.112 (with RGS)
Matt Corallo [Fri, 28 Oct 2022 03:34:39 +0000 (03:34 +0000)]
Update CI references to 0.0.112
Matt Corallo [Thu, 27 Oct 2022 18:35:55 +0000 (18:35 +0000)]
[TS] Update auto-generated TS bindings
Matt Corallo [Thu, 27 Oct 2022 18:21:04 +0000 (18:21 +0000)]
[Java] Update auto-generated Java bindings
Matt Corallo [Fri, 28 Oct 2022 18:30:30 +0000 (18:30 +0000)]
[TS] Be more aggressive with type checks
Matt Corallo [Fri, 28 Oct 2022 05:07:00 +0000 (05:07 +0000)]
[TS] Apparently `console.log` doesn't actually throw, it just logs
Matt Corallo [Fri, 28 Oct 2022 03:31:01 +0000 (03:31 +0000)]
[TS] Update TS Tests to latest upstream API and test OMs
Matt Corallo [Fri, 28 Oct 2022 03:29:07 +0000 (03:29 +0000)]
[Java] Update Java Tests to latest upstream API
Matt Corallo [Fri, 28 Oct 2022 03:27:37 +0000 (03:27 +0000)]
[Java] Update ChannelManagerConstructor to latest upstream API
Matt Corallo [Fri, 28 Oct 2022 18:32:32 +0000 (18:32 +0000)]
[TS] Handle nullable arrays and objects in more cases
Matt Corallo [Fri, 28 Oct 2022 05:53:01 +0000 (05:53 +0000)]
[Java] Handle nullable arrays
Matt Corallo [Fri, 28 Oct 2022 06:16:23 +0000 (06:16 +0000)]
Handle optionally-null multi-dimentional arrays with null check
Matt Corallo [Thu, 27 Oct 2022 05:27:58 +0000 (05:27 +0000)]
[TS] Fix calling trait methods which return a simple enum
Matt Corallo [Thu, 27 Oct 2022 05:26:55 +0000 (05:26 +0000)]
[Java] Fix calling trait methods which return simple enums from C
Matt Corallo [Thu, 6 Oct 2022 23:49:59 +0000 (23:49 +0000)]
[TS] Test ChannelManager future notify completion
This is broken upstream in LDK, so needs fixing there.
Matt Corallo [Thu, 6 Oct 2022 19:14:57 +0000 (19:14 +0000)]
[TS] Update auto-generated bindings (with RGS)
Matt Corallo [Thu, 6 Oct 2022 19:16:13 +0000 (19:16 +0000)]
[TS] Correct encodeUint64Array array view length
Otherwise the `set` call fails as the array view we've constructed
is only 1 element long.
Matt Corallo [Mon, 3 Oct 2022 22:28:51 +0000 (22:28 +0000)]
Merge pull request #119 from TheBlueMatt/main
Update to 0.0.111
Matt Corallo [Fri, 30 Sep 2022 01:04:14 +0000 (01:04 +0000)]
[TS] Update auto-generated TS bindings
Matt Corallo [Thu, 29 Sep 2022 23:05:40 +0000 (23:05 +0000)]
[Java] Update auto-generated Java files
Matt Corallo [Mon, 3 Oct 2022 20:33:51 +0000 (20:33 +0000)]
[TS] Test OnionMessenger in TypeScript tests
Matt Corallo [Fri, 30 Sep 2022 01:07:46 +0000 (01:07 +0000)]
[Java] Update ChannelManagerConstructor and tests to latest API
Matt Corallo [Fri, 30 Sep 2022 01:05:59 +0000 (01:05 +0000)]
[TS] Update typescript tests to latest upstream API
Matt Corallo [Mon, 3 Oct 2022 21:27:56 +0000 (21:27 +0000)]
Update CI references to 0.0.111
Matt Corallo [Mon, 3 Oct 2022 20:07:28 +0000 (20:07 +0000)]
[TS] Fix generation for traits that have supertraits
When we have a trait with a supertrait, we have to pass both the
main- and super-trait instance indxes through to C so that it can
call both. We failed to do this, missing an argument entirely when
calling the C code.
Instead of trying to allocate a new instance index, we opt to store
instance indexes in trait structs (assuming there is one) and then
reuse the one in the constructed object.
Matt Corallo [Sat, 1 Oct 2022 20:31:26 +0000 (20:31 +0000)]
[TS] Correct TS call semantics for some function types
TS functions now all return uint64_t, not uint32_t, for pointers.
Matt Corallo [Mon, 3 Oct 2022 20:36:31 +0000 (20:36 +0000)]
Allow trait methods to return NULL-able objects
The comment claiming this isn't supported in Java/TS is incorrect -
it works just fine with no further modifications.
Matt Corallo [Thu, 29 Sep 2022 22:41:08 +0000 (22:41 +0000)]
Add support for mapping LDKBigEndianScalar manually, ala TxOut
Matt Corallo [Sat, 3 Sep 2022 22:32:32 +0000 (22:32 +0000)]
Merge pull request #117 from TheBlueMatt/2022-08-fix-npe
[TS+Java] Ensure we don't try to add a reference from null.
Matt Corallo [Sat, 3 Sep 2022 20:41:43 +0000 (20:41 +0000)]
[TS] Update auto-generated file
Matt Corallo [Sat, 3 Sep 2022 20:28:21 +0000 (20:28 +0000)]
[Java] Update auto-generated Java structs
Matt Corallo [Sat, 3 Sep 2022 20:24:10 +0000 (20:24 +0000)]
[TS+Java] Ensure we don't try to add a reference from `null`.
At least in `Event::PaymentPathFailed` if we try to map an event
with no `retry` we'll hit a `NullPointerException` as we'll try to
add a reference from the `null` retry back to the `Event` itself.
The simple fix is to simply exhaustively check for `null` before
adding references everywhere.
Matt Corallo [Mon, 15 Aug 2022 17:17:27 +0000 (17:17 +0000)]
Merge pull request #116 from TheBlueMatt/main
Handle socket errors (the same as socket closure)
Matt Corallo [Mon, 15 Aug 2022 15:24:52 +0000 (15:24 +0000)]
Handle socket errors (the same as socket closure)
`gr0kchain` on Discord reported that not handling "error" causes
us to get unhandled exceptions, so we have to handle it.
Matt Corallo [Sat, 13 Aug 2022 20:09:26 +0000 (20:09 +0000)]
Merge pull request #115 from TheBlueMatt/main
Matt Corallo [Sat, 13 Aug 2022 18:54:59 +0000 (18:54 +0000)]
[TS] Update auto-generated TypeScript bindings
Matt Corallo [Sat, 13 Aug 2022 18:03:00 +0000 (18:03 +0000)]
[Java] Update auto-generated Java bindings