Christian Decker
00dc0f082e
make: Fix external/lowdown clean targets
2022-11-18 15:10:32 +01:00
Jesse de Wit
08cbdaf84f
add some stuff to gitignores
2022-11-18 12:26:32 +01:00
Vincenzo Palazzo
f0fa42bd73
lnprototest: update gossip test including 12 blocks delay
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2022-09-24 15:22:27 +09:30
Rusty Russell
50d1043a91
external: build lowdown if not already found.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-09-08 00:36:51 +03:00
Rusty Russell
5112329a6b
external/lowdown: local import of lowdown source.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-09-08 00:36:51 +03:00
Christian Decker
36ab0e5676
git: Ignore arm64-darwin external build directory
2022-07-11 14:06:39 -05:00
Vincenzo Palazzo
225ff870df
lnprototest: updating and patch lnprototest
...
Changelog-None: patch lnprototest
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2022-07-08 19:21:11 +09:30
Rusty Russell
e516a5dffe
external/Makefile: fix submodcheck
for sudo make install and modern git.
...
We can't run refresh-submodules without a working git, either:
```
$ sudo make install
mkdir -p /usr/local/bin
mkdir -p /usr/local/libexec/c-lightning
mkdir -p /usr/local/libexec/c-lightning/plugins
mkdir -p /usr/local/share/man/man1
mkdir -p /usr/local/share/man/man5
mkdir -p /usr/local/share/man/man7
mkdir -p /usr/local/share/man/man8
mkdir -p /usr/local/share/doc/c-lightning
fatal: unsafe repository ('/home/rusty/lightning' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /home/rusty/lightning
Reinitializing submodules external/libsodium external/libwally-core external/gheap external/jsmn external/libbacktrace external/lnprototest ...
fatal: unsafe repository ('/home/rusty/lightning' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /home/rusty/lightning
fatal: unsafe repository ('/home/rusty/lightning' is owned by someone else)
To add an exception for this directory, call:
git config --global --add safe.directory /home/rusty/lightning
make: *** [external/Makefile:52: submodcheck] Error 128
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-05-03 09:08:33 +09:30
Rusty Russell
874d3532da
libwally: update to v0.8.5
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-04-12 15:17:52 +09:30
Michael Dance
f067e8c909
Changed external/libwally-core to test_build_fix
...
Combined with the following commit which is required to
update against changed libsecp256k1 APIs:
Updated deprecated function calls
2022-04-12 15:17:52 +09:30
Vincenzo Palazzo
a35e1b23e6
docker-ci: fixed script path inside the entry point
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2022-03-31 13:01:04 +10:30
Vincenzo Palazzo
8b04bf1357
lnprototest: upgrade the lnprototest version
...
Changelog-None: upgrade the lnprototest version
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2022-03-20 08:46:32 +10:30
Rusty Russell
2a6d3cad01
libbacktrace: update to latest.
...
Seeing if this helps my build box which previously gives:
```
/home/rusty/lightning-ltest/lightningd/lightning_connectd: libbacktrace: unrecognized DWARF version in .debug_info at 6
/home/rusty/lightning-ltest/lightningd/lightning_connectd: libbacktrace: no debug info in ELF executable
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2022-02-27 07:44:26 +10:30
Vincenzo Palazzo
9f02b6eb59
external: update lnprototest dependeces
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-12-28 09:49:09 +10:30
Rusty Russell
1d14c7ee3d
lnprototest: update to latest master.
...
Importantly, this version no longer assumes features 34/35 are unused.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-10-08 16:07:21 +02:00
Vincenzo Palazzo
810fb7946a
Remove lnprototest
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-09-13 15:54:09 +02:00
Vincenzo Palazzo
be829bbc26
Removed submodule external/lnprototest
...
Update version lnprototest with the latest one
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-09-06 14:37:27 +02:00
Rusty Russell
78a48fa7ec
lnprototest: update version to fix flake issues.
...
See https://github.com/rustyrussell/lnprototest/pull/20
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-08-16 10:50:22 +02:00
niftynei
9df4234e8f
funder: default to only funding leases
...
Make the default to only lease out funds.
Changelog-Changed: funder plugin defaults to leases-only
2021-08-09 07:11:05 +09:30
niftynei
376e6f8bd1
dual-funding: update fee_step to be a feerate
...
Using a 'feestep' is more restrictive than you'd want, instead we
enforce that the next feerate must be at least 1/64th more than the
last, but put no upper limit on it
Includes update to lnprototest changes
Contributed-By: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Changelog-EXPERIMENTAL: Protocol: Replaces init_rbf's `fee_step` for RBF of v2 opens with `funding_feerate_perkw`, breaking change
2021-07-19 16:13:24 -04:00
Vincenzo Palazzo
8d146ea36f
Update at latest version of lnprototest with the support of channel_type
...
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-06-25 09:51:29 +09:30
Vincenzo Palazzo
33b8a55bec
Update lnprototest submodule
...
This is a fix propose of the ticket https://github.com/ElementsProject/lightning/issues/4516
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
2021-06-25 09:51:29 +09:30
niftynei
3c4c8d4fa0
libwally: update to release_0.8.3
...
Remove hacks to get around empty PSBT deserialization bug
2021-06-03 11:24:33 +09:30
Rusty Russell
cc6f1fd120
update-mocks: don't try to regenerate files.
...
If you do update-mocks in a dirty tree, the recursive make that it
uses will try to rebuild things! Suppress that.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-05-22 17:53:04 +09:30
fiatjaf
0d68febd8d
reorganize .gitignore entries across subdirs.
2021-05-18 09:43:50 +09:30
niftynei
bbfcae652c
lnprototests: update to latest, which adds wait for test_query_channel_range
...
test_query_channel_range is racy, add some wait time to reduce
chances of a race-failure
2021-04-08 10:34:14 +09:30
niftynei
144dbe6edf
tests: add submodule for lnprototests (points at branch right now)
...
Branch has fix for break in test_query_channel_range
2021-04-08 10:34:14 +09:30
Christian Decker
f76a6b99e0
make: Explicitly set PYTHON_VERSION=3 for libwally
...
Otherwise it can end up complaining that it can't find python2, which
we don't have listed as a dependency and is deprecated anyway.
Also reformatted a bit to make the options more readable and minimize
future conflicts.
2021-01-26 15:45:13 +01:00
Rusty Russell
9d656464f5
bitcoin/pubkey: add pubkey32 primitive for xonly pubkey types.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-12-09 16:40:13 +10:30
Rusty Russell
68c6ae67b3
external/Makefile: fix parallel build with missing secp headers.
...
Fixes : #4229
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-11-30 16:10:26 +01:00
Rusty Russell
70977a4fbd
libwally: update to latest which uses libsecp-zkp submodule
...
And get rid of the now-obsolete PYTHON_VERSION hack.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-11-25 11:59:22 -06:00
Rusty Russell
5ae18ecb32
Revert accidental experimental libwally update from f56266c1c1
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-11-17 11:21:58 -06:00
Rusty Russell
f56266c1c1
plugins: undeprecate old form of hooks.
...
This effectively reverts ac93b780d5
.
Christian points out that plugins need time before we deprecate
the old options (probably 6 months) as they need to work with
both old and new.
Changelog-Deprecated: **UNDO** plugins: hooks should now be specified using objects, not raw names.
Suggested-by: @cdecker
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-11-17 14:42:58 +10:30
YOSHIDA Masanori
b7ab8866b8
Makefile: fix typo and wrong path in external/Makefile to properly remove objects with "make clean"
...
Signed-off-by: YOSHIDA Masanori <masanori.yoshida@gmail.com>
Changelog-None
2020-10-27 10:42:48 +10:30
Rusty Russell
c76cfe9c5c
Makefile: fix typo which can cause build failures.
...
And add secp_recovery to headers, while we're at it.
```
./wire/wire.h:7:10: fatal error: secp256k1_recovery.h: No such file or directory
#include <secp256k1_recovery.h>
^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:254: recipe for target 'connectd/test/run-initiator-success.o' failed
make: *** [connectd/test/run-initiator-success.o] Error 1
m
```
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-09-09 20:44:22 +09:30
Rusty Russell
2c9ad7ea29
external/Makefile: fix mkdir rule for libbacktrace.a
...
The $(TARGET_DIR) may not exist: use mkdir -p.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-08-31 21:33:26 -05:00
Rusty Russell
95a0249272
external/Makefile: fix build from fresh git clone.
...
```
make: *** No rule to make target 'external/gheap/gheap.h', needed by 'bitcoin/chainparams.o'. Stop.
make: *** Waiting for unfinished jobs....
```
Just simplify the Makefile to make all the external headers we use
dependent on submodcheck.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-08-31 21:33:26 -05:00
Rusty Russell
5d9d21d64d
external/gheap: new submodule.
...
It's actually entirely in the header file, so no linking needed.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-08-28 10:56:50 +09:30
niftynei
24215f8c04
libwally: update to latest master, includes map sort
2020-08-18 11:08:44 +09:30
Jon Griffiths
95d3d65c62
wally: update to the latest wally version
...
Includes:
psbt: Use renamed functions for new wally version
psbt: Set the transaction directly to avoid script workarounds
psbt: Use low-S grinding when computing signatures
tx: Use wally_tx_clone from libwally now that its exported
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
2020-08-07 10:28:01 +09:30
niftynei
389bd8393b
submodules/libwally: use blessed-branch
2020-07-13 11:37:24 +09:30
Rusty Russell
57f6f74ee0
external/Makefile: fix spurious rebuilds.
...
Quote marks are not special to make: as it can't find
external/"x86_64-linux-gnu"/libwally-core-build/src/libwallycore.la
it always insists on rebuilding it (which rebuilds the world).
If we have spaces in TARGET_DIR, we're in trouble already.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-None
2020-06-29 15:48:09 +09:30
Wladimir J. van der Laan
32f9805a30
build: Make it possible to build without gcc
...
The external Makefile hardcodes gcc to get the machine spec.
This should use the configured C compiler instead.
This bug was introduced in 601464416b
.
2020-06-29 09:08:39 +09:30
Niklas Claesson
601464416b
travis: Actually build for arm
...
Before this we cached the whole `external` directory, but that lead to
stale files since the cache is checked out after the repository is
cloned.
2020-06-24 17:08:40 +02:00
niftynei
0f8157a02e
libwally: update to latest commit on master, which contains psbt fixes
...
fixes for p2sh-p2wpkh sigs in libwally etc
2020-06-23 14:49:32 +02:00
niftynei
1d56a4eda1
libwally: update to latest commit
2020-06-11 13:13:13 +02:00
Rusty Russell
06ae03f487
external/libwally-core: update to latest version.
...
Includes an important PSBT fix (https://github.com/ElementsProject/libwally-core/pull/190 )
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-05-21 18:45:07 +09:30
Rusty Russell
88402bc234
Makefile: fix clean and distclean for external libs.
...
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2020-05-15 09:55:59 +09:30
Dr. Maxim Orlovsky
fe85cf9a4f
Removing duplicated wscript generation for channel txs
2020-04-08 13:59:18 +09:30
Vasil Dimov
53ecf098ab
build: remove unrecognized option to libsodium
...
Silence a warning during libsodium's ./configure:
```
configure: WARNING: unrecognized options: --enable-tests
```
Changelog-None
2020-03-05 14:58:57 -06:00