]> git.bitcoin.ninja Git - ldk-java/log
ldk-java
3 years agoUpdate README to capture current status better
Matt Corallo [Sun, 21 Mar 2021 17:28:04 +0000 (13:28 -0400)]
Update README to capture current status better

3 years agoDO NOT MERGE: Upload artifacts
Matt Corallo [Tue, 23 Mar 2021 15:37:53 +0000 (11:37 -0400)]
DO NOT MERGE: Upload artifacts

3 years agoDO NOT MERGE: Apply ldk-c-bindings patch
Matt Corallo [Tue, 23 Mar 2021 14:06:51 +0000 (10:06 -0400)]
DO NOT MERGE: Apply ldk-c-bindings patch

3 years agoSplit wasm output files + check build determinism in CI
Matt Corallo [Sun, 21 Mar 2021 17:20:13 +0000 (13:20 -0400)]
Split wasm output files + check build determinism in CI

3 years agoUpdate binaries with ldk-c-bindings path remapping enabled
Matt Corallo [Tue, 23 Mar 2021 14:00:43 +0000 (10:00 -0400)]
Update binaries with ldk-c-bindings path remapping enabled

3 years agoMerge pull request #12 from TheBlueMatt/2021-03-fresh-bindings
Matt Corallo [Mon, 22 Mar 2021 23:25:03 +0000 (23:25 +0000)]
Merge pull request #12 from TheBlueMatt/2021-03-fresh-bindings

Update bindings to latest upstream + Add CI

3 years agoMake java's bindings.c deterministic 2021-03-fresh-bindings
Matt Corallo [Mon, 22 Mar 2021 00:00:30 +0000 (20:00 -0400)]
Make java's bindings.c deterministic

3 years agoMore aggressively check for full GC run during HumanObjectPeerTest
Matt Corallo [Sun, 21 Mar 2021 19:39:24 +0000 (15:39 -0400)]
More aggressively check for full GC run during HumanObjectPeerTest

3 years agoDon't require a JNI_CFLAGS in genbindings.sh
Matt Corallo [Sun, 21 Mar 2021 17:10:01 +0000 (13:10 -0400)]
Don't require a JNI_CFLAGS in genbindings.sh

Apparently Android builds don't need this, so don't require them.

3 years agoUpdate auto-generated bindings
Matt Corallo [Sat, 20 Mar 2021 21:54:47 +0000 (17:54 -0400)]
Update auto-generated bindings

3 years agoFix HumanObjectPeerTest not delaying long enough in CI
Matt Corallo [Sun, 21 Mar 2021 23:33:03 +0000 (19:33 -0400)]
Fix HumanObjectPeerTest not delaying long enough in CI

3 years agoAdd CI runs to test bindings
Matt Corallo [Sat, 20 Mar 2021 21:51:33 +0000 (17:51 -0400)]
Add CI runs to test bindings

3 years agoUpdate tests to use Listen interface and for latest upstream
Matt Corallo [Sun, 21 Mar 2021 17:02:03 +0000 (13:02 -0400)]
Update tests to use Listen interface and for latest upstream

3 years agoWork around buggy Android nio implementation in batteries
Matt Corallo [Sat, 20 Mar 2021 20:50:28 +0000 (16:50 -0400)]
Work around buggy Android nio implementation in batteries

3 years agoDisambiguate jcall function names by including the trait name
Matt Corallo [Sat, 20 Mar 2021 20:32:52 +0000 (16:32 -0400)]
Disambiguate jcall function names by including the trait name

3 years agoMerge pull request #11 from TheBlueMatt/2021-03-license
Arik Sosman [Sun, 21 Mar 2021 06:05:18 +0000 (23:05 -0700)]
Merge pull request #11 from TheBlueMatt/2021-03-license

Add license information

3 years agoAdd license information 2021-03-license
Matt Corallo [Thu, 18 Mar 2021 15:57:04 +0000 (11:57 -0400)]
Add license information

3 years agoMerge pull request #10 from galderz/t_compilation_error
Matt Corallo [Thu, 18 Mar 2021 14:23:22 +0000 (14:23 +0000)]
Merge pull request #10 from galderz/t_compilation_error

Fix compilation errors

3 years agoIgnore IDE metadata and pycache
Galder Zamarreño [Thu, 18 Mar 2021 07:07:40 +0000 (08:07 +0100)]
Ignore IDE metadata and pycache

3 years agoUpdate API usages after bindings update
Galder Zamarreño [Thu, 18 Mar 2021 07:06:54 +0000 (08:06 +0100)]
Update API usages after bindings update

3 years agoMerge pull request #9 from TheBlueMatt/2021-03-cleanup-debug
Arik Sosman [Fri, 12 Mar 2021 19:42:43 +0000 (11:42 -0800)]
Merge pull request #9 from TheBlueMatt/2021-03-cleanup-debug

Move debug builds to a separate file

3 years agoMerge pull request #7 from TheBlueMatt/2021-03-tweaks
Arik Sosman [Fri, 12 Mar 2021 18:59:50 +0000 (10:59 -0800)]
Merge pull request #7 from TheBlueMatt/2021-03-tweaks

Slight tweaks

3 years agoUpdate bindings to latest upstream + ChannelMonitor_clone patch 2021-03-cleanup-debug
Matt Corallo [Fri, 12 Mar 2021 16:49:27 +0000 (11:49 -0500)]
Update bindings to latest upstream + ChannelMonitor_clone patch

3 years agoMove .so output to different names based on release/debug flag
Matt Corallo [Fri, 12 Mar 2021 16:47:00 +0000 (11:47 -0500)]
Move .so output to different names based on release/debug flag

3 years agoDrop at-exit memory leak assertion and note accuracy requirements
Matt Corallo [Fri, 12 Mar 2021 16:44:31 +0000 (11:44 -0500)]
Drop at-exit memory leak assertion and note accuracy requirements

3 years agoAdd a timeout to NioPeerHandler.connect 2021-03-tweaks
Matt Corallo [Wed, 10 Mar 2021 04:48:31 +0000 (23:48 -0500)]
Add a timeout to NioPeerHandler.connect

3 years agoAdd comment noting duplicate load_outputs_to_watch calls
Matt Corallo [Wed, 10 Mar 2021 04:22:58 +0000 (23:22 -0500)]
Add comment noting duplicate load_outputs_to_watch calls

3 years agoUpdate genbindings docs to note new ldk-c-bindings repo
Matt Corallo [Wed, 10 Mar 2021 03:35:27 +0000 (22:35 -0500)]
Update genbindings docs to note new ldk-c-bindings repo

3 years agoMerge pull request #5 from TheBlueMatt/main
Arik Sosman [Mon, 8 Mar 2021 08:08:54 +0000 (00:08 -0800)]
Merge pull request #5 from TheBlueMatt/main

Add docs and fix handling of `Option<Trait>`

3 years agoUpdate java bindings with new generator and new upstream code
Matt Corallo [Sun, 7 Mar 2021 19:18:07 +0000 (14:18 -0500)]
Update java bindings with new generator and new upstream code

3 years agoUse the new ChannelMonitor util functions and test them
Matt Corallo [Mon, 8 Mar 2021 05:10:59 +0000 (00:10 -0500)]
Use the new ChannelMonitor util functions and test them

3 years agoCorrect handling of Option<Trait>
Matt Corallo [Mon, 8 Mar 2021 04:57:59 +0000 (23:57 -0500)]
Correct handling of Option<Trait>

3 years agoUpdate HumanObjectPeerTest to use new constructor
Matt Corallo [Mon, 8 Mar 2021 02:56:41 +0000 (21:56 -0500)]
Update HumanObjectPeerTest to use new constructor

3 years agoAdd struct and enum doc comments in Java
Matt Corallo [Sun, 7 Mar 2021 19:14:29 +0000 (14:14 -0500)]
Add struct and enum doc comments in Java

3 years agoMerge pull request #2 from TheBlueMatt/main
Arik Sosman [Sat, 6 Mar 2021 00:59:13 +0000 (16:59 -0800)]
Merge pull request #2 from TheBlueMatt/main

Expose Features

3 years agoUpdate to use a new java-base branch
Matt Corallo [Sat, 6 Mar 2021 00:44:32 +0000 (19:44 -0500)]
Update to use a new java-base branch

3 years agoUpdate tests to latest upstream
Matt Corallo [Sat, 6 Mar 2021 00:41:55 +0000 (19:41 -0500)]
Update tests to latest upstream

3 years agoUpdate auto-generated bindings for new upstream
Matt Corallo [Sat, 6 Mar 2021 00:42:32 +0000 (19:42 -0500)]
Update auto-generated bindings for new upstream

3 years agoUpdate tests to latest upstream changes (ChannelKeys rename, mostly)
Matt Corallo [Mon, 1 Mar 2021 17:40:56 +0000 (12:40 -0500)]
Update tests to latest upstream changes (ChannelKeys rename, mostly)

3 years agoUpdate bindings to latest upstream.
Matt Corallo [Mon, 1 Mar 2021 17:37:30 +0000 (12:37 -0500)]
Update bindings to latest upstream.

3 years agoWork around our stupid hack with a stupid hack (see XXX in genbindings.py)
Matt Corallo [Mon, 1 Mar 2021 17:24:11 +0000 (12:24 -0500)]
Work around our stupid hack with a stupid hack (see XXX in genbindings.py)

3 years agoAdd trivial test of a route w/ Features::known, update to upstream
Matt Corallo [Mon, 1 Feb 2021 21:08:26 +0000 (16:08 -0500)]
Add trivial test of a route w/ Features::known, update to upstream

3 years agoUpdate auto-generated bindings with new upstream.
Matt Corallo [Fri, 12 Feb 2021 02:05:34 +0000 (21:05 -0500)]
Update auto-generated bindings with new upstream.

3 years agoProperly convert 2D arrays in from_hu_conv
Matt Corallo [Fri, 12 Feb 2021 01:57:38 +0000 (20:57 -0500)]
Properly convert 2D arrays in from_hu_conv

3 years agoFetch ChannelMonitor events during test and ensure there are none
Matt Corallo [Wed, 3 Feb 2021 20:14:42 +0000 (15:14 -0500)]
Fetch ChannelMonitor events during test and ensure there are none

3 years agoMerge pull request #4 from TheBlueMatt/2021-03-init-util
Arik Sosman [Fri, 5 Mar 2021 19:39:04 +0000 (11:39 -0800)]
Merge pull request #4 from TheBlueMatt/2021-03-init-util

Add deserialization/init helper class that overtorment asked for

3 years agoAdd deserialization/init helper class that overtorment asked for 2021-03-init-util
Matt Corallo [Fri, 5 Mar 2021 19:31:17 +0000 (14:31 -0500)]
Add deserialization/init helper class that overtorment asked for

3 years agoDrop stale WIP files that should not have been checked in
Matt Corallo [Fri, 5 Mar 2021 19:30:54 +0000 (14:30 -0500)]
Drop stale WIP files that should not have been checked in

3 years agoMerge pull request #3 from galderz/t_add_source_jar
Matt Corallo [Thu, 4 Mar 2021 15:23:05 +0000 (07:23 -0800)]
Merge pull request #3 from galderz/t_add_source_jar

Produce java source jars

3 years agoProduce java source jars
Galder Zamarreño [Thu, 4 Mar 2021 08:06:31 +0000 (09:06 +0100)]
Produce java source jars

3 years agoUpdate bindings v0.0.1
Matt Corallo [Tue, 2 Feb 2021 22:45:37 +0000 (17:45 -0500)]
Update bindings

3 years agoHandle `uintptr_t`s better in JNI bindings
Matt Corallo [Wed, 3 Feb 2021 01:28:01 +0000 (20:28 -0500)]
Handle `uintptr_t`s better in JNI bindings

This fixes bugs building for 32-bit platforms as the JNI functions
would expect `uintptr_t`s (32-bit) but Java expects a long (64-bit).
We can't just replace them all with int64_ts as we need to have
`uintptr_t`s still in _jcalls functions which we pass function
pointers to C.

3 years agoBe explicit about C return type returning pointers to Java
Matt Corallo [Tue, 2 Feb 2021 22:45:11 +0000 (17:45 -0500)]
Be explicit about C return type returning pointers to Java

3 years agoAdd workarounds for Android JNI quirks
Matt Corallo [Tue, 2 Feb 2021 22:37:06 +0000 (17:37 -0500)]
Add workarounds for Android JNI quirks

3 years agobindings updates
Matt Corallo [Tue, 2 Feb 2021 03:02:01 +0000 (22:02 -0500)]
bindings updates

3 years agoProperly free C tuples when the inner fields are dropped
Matt Corallo [Tue, 2 Feb 2021 02:18:29 +0000 (21:18 -0500)]
Properly free C tuples when the inner fields are dropped

Previously for the full test suite (incl 64 HumanObjectPeerTest runs):
 `991 allocations remained for 32165 bytes.`
After for the full test suite (incl 64 HumanObjectPeerTest runs):
 `179 allocations remained for 5369 bytes.`

3 years agoSmall tweaks to NioPeerHandler
Matt Corallo [Tue, 2 Feb 2021 01:26:00 +0000 (20:26 -0500)]
Small tweaks to NioPeerHandler

3 years agoAdd basic README describing status
Matt Corallo [Mon, 1 Feb 2021 23:05:18 +0000 (18:05 -0500)]
Add basic README describing status

3 years agoBindings updates for latest upstream, check in .so
Matt Corallo [Mon, 1 Feb 2021 21:56:18 +0000 (16:56 -0500)]
Bindings updates for latest upstream, check in .so

3 years agoAdd NioPeerHandler and associated test
Matt Corallo [Mon, 1 Feb 2021 05:40:15 +0000 (00:40 -0500)]
Add NioPeerHandler and associated test

3 years agoBindings updates
Matt Corallo [Sat, 30 Jan 2021 04:25:00 +0000 (23:25 -0500)]
Bindings updates

3 years agoUpdate for upstream with new -lm requirement for debug
Matt Corallo [Mon, 1 Feb 2021 05:36:58 +0000 (00:36 -0500)]
Update for upstream with new -lm requirement for debug

3 years agoFix missing-ptrs_to error by working around it in test
Matt Corallo [Mon, 1 Feb 2021 21:01:49 +0000 (16:01 -0500)]
Fix missing-ptrs_to error by working around it in test

3 years agoUpdate HumanObjectPeerTest for upstream changes, to reload nodes
Matt Corallo [Sat, 30 Jan 2021 23:09:11 +0000 (18:09 -0500)]
Update HumanObjectPeerTest for upstream changes, to reload nodes

3 years agoAdd additional reference tags, drop some now-redundant clones
Matt Corallo [Mon, 1 Feb 2021 00:55:07 +0000 (19:55 -0500)]
Add additional reference tags, drop some now-redundant clones

3 years agoWipe Java objects when we move them into rust (only for features)
Matt Corallo [Mon, 1 Feb 2021 00:36:46 +0000 (19:36 -0500)]
Wipe Java objects when we move them into rust (only for features)

3 years agoVarious straightforward cleanups
Matt Corallo [Mon, 1 Feb 2021 00:36:00 +0000 (19:36 -0500)]
Various straightforward cleanups

3 years agoTrack byte count in leak detection in java debug mode
Matt Corallo [Sun, 31 Jan 2021 19:02:55 +0000 (14:02 -0500)]
Track byte count in leak detection in java debug mode

3 years agoStandardize warning clone comment
Matt Corallo [Sat, 30 Jan 2021 23:07:41 +0000 (18:07 -0500)]
Standardize warning clone comment

3 years agoAdd util methods file for methods not associated with a known struct
Matt Corallo [Sat, 30 Jan 2021 04:23:03 +0000 (23:23 -0500)]
Add util methods file for methods not associated with a known struct

3 years agoAdd a reference low bit for non-opaque types to tag dont-free refs
Matt Corallo [Sat, 30 Jan 2021 04:21:27 +0000 (23:21 -0500)]
Add a reference low bit for non-opaque types to tag dont-free refs

3 years agoHandle clones upstream instead of creating clone fns
Matt Corallo [Sat, 30 Jan 2021 04:11:06 +0000 (23:11 -0500)]
Handle clones upstream instead of creating clone fns

3 years agoFix leak in manual memory management in PeerTest
Matt Corallo [Thu, 28 Jan 2021 23:23:11 +0000 (18:23 -0500)]
Fix leak in manual memory management in PeerTest

3 years agoBindings updates
Matt Corallo [Thu, 28 Jan 2021 23:12:43 +0000 (18:12 -0500)]
Bindings updates

3 years agoUpdate TS strings and commit (broken) test updates
Matt Corallo [Thu, 28 Jan 2021 23:11:51 +0000 (18:11 -0500)]
Update TS strings and commit (broken) test updates

3 years agoDirty hack to avoid freeing TxOuts inside of Tuples
Matt Corallo [Thu, 28 Jan 2021 23:10:58 +0000 (18:10 -0500)]
Dirty hack to avoid freeing TxOuts inside of Tuples

3 years agoClone objects returned from jcalls before returning to rust
Matt Corallo [Thu, 28 Jan 2021 23:10:23 +0000 (18:10 -0500)]
Clone objects returned from jcalls before returning to rust

3 years agoAdd test HTML file demonstrating linking and calling
Matt Corallo [Thu, 28 Jan 2021 17:03:41 +0000 (12:03 -0500)]
Add test HTML file demonstrating linking and calling

Import fixes from Arik

3 years agoUpdate bindings (for new upstream based on updated rust-bitcoin)
Matt Corallo [Thu, 28 Jan 2021 04:34:00 +0000 (23:34 -0500)]
Update bindings (for new upstream based on updated rust-bitcoin)

3 years agoTurn on warnings on typescript builds again
Matt Corallo [Thu, 28 Jan 2021 04:33:34 +0000 (23:33 -0500)]
Turn on warnings on typescript builds again

3 years agoBindings updates
Matt Corallo [Thu, 28 Jan 2021 00:55:38 +0000 (19:55 -0500)]
Bindings updates

3 years agoDrop stale Java call semantic bits from TS bindings
Matt Corallo [Thu, 28 Jan 2021 03:07:52 +0000 (22:07 -0500)]
Drop stale Java call semantic bits from TS bindings

3 years agoRedo arrays/strings in TS to be uint32_ts, call trait functions
Matt Corallo [Thu, 28 Jan 2021 00:54:37 +0000 (19:54 -0500)]
Redo arrays/strings in TS to be uint32_ts, call trait functions

3 years agore-fix whitespace bugs
Matt Corallo [Wed, 27 Jan 2021 23:13:42 +0000 (18:13 -0500)]
re-fix whitespace bugs

3 years agoRe-fix whitespace errors
Matt Corallo [Wed, 27 Jan 2021 23:08:23 +0000 (18:08 -0500)]
Re-fix whitespace errors

3 years agomerge Matt's array codec mechanism
Arik Sosman [Wed, 27 Jan 2021 22:58:18 +0000 (14:58 -0800)]
merge Matt's array codec mechanism

3 years agoMerge branch 'master' of https://git.bitcoin.ninja/ldk-java into typescript_conversion
Arik Sosman [Wed, 27 Jan 2021 22:48:01 +0000 (14:48 -0800)]
Merge branch 'master' of https://git.bitcoin.ninja/ldk-java into typescript_conversion

\ 1 Conflicts:
\ 1 typescript_strings.py

3 years agomake typescript bindings rely on wasm type codec methods
Arik Sosman [Wed, 27 Jan 2021 09:21:17 +0000 (01:21 -0800)]
make typescript bindings rely on wasm type codec methods

3 years agoAdd js-wasm.h from arik's repo
Matt Corallo [Wed, 27 Jan 2021 03:21:14 +0000 (22:21 -0500)]
Add js-wasm.h from arik's repo

3 years agodon't return values for void types
Arik Sosman [Wed, 27 Jan 2021 19:18:23 +0000 (11:18 -0800)]
don't return values for void types

3 years agoenable async wasm initialization
Arik Sosman [Wed, 27 Jan 2021 18:36:26 +0000 (10:36 -0800)]
enable async wasm initialization

3 years agomake typescript bindings rely on wasm type codec methods
Arik Sosman [Wed, 27 Jan 2021 09:21:17 +0000 (01:21 -0800)]
make typescript bindings rely on wasm type codec methods

3 years agoBindings updates
Matt Corallo [Wed, 27 Jan 2021 03:21:06 +0000 (22:21 -0500)]
Bindings updates

3 years agoMove TS Arrays to a single pointer
Matt Corallo [Wed, 27 Jan 2021 03:20:52 +0000 (22:20 -0500)]
Move TS Arrays to a single pointer

3 years agoBindings updates
Matt Corallo [Mon, 25 Jan 2021 21:03:23 +0000 (16:03 -0500)]
Bindings updates

3 years agoDo array conv in per-lang files, handle object arrays in TS
Matt Corallo [Tue, 26 Jan 2021 21:55:21 +0000 (16:55 -0500)]
Do array conv in per-lang files, handle object arrays in TS

3 years agoHandle uintptr_t slightly better in C conversion
Matt Corallo [Mon, 25 Jan 2021 22:45:22 +0000 (17:45 -0500)]
Handle uintptr_t slightly better in C conversion

3 years agoMove native string conversion to per-lang files
Matt Corallo [Mon, 25 Jan 2021 22:22:21 +0000 (17:22 -0500)]
Move native string conversion to per-lang files

3 years agoMore TS C trait conversion + drop unused get_obj_from_jcalls
Matt Corallo [Mon, 25 Jan 2021 22:03:53 +0000 (17:03 -0500)]
More TS C trait conversion + drop unused get_obj_from_jcalls

3 years agoTypescript C build and string updates
Matt Corallo [Mon, 25 Jan 2021 21:50:11 +0000 (16:50 -0500)]
Typescript C build and string updates