Browse Source

update libwally to latest version 0.6.9

Also removes a workaround caused by bug in libwally (!95) which has
been fixed.

Signed-off-by: Lawrence Nahum <lawrence@greenaddress.it>
htlc_accepted_hook
Lawrence Nahum 6 years ago
committed by Christian Decker
parent
commit
a9e71d76b5
  1. 3
      channeld/test/run-full_channel.c
  2. 3
      common/daemon.c
  3. 3
      common/test/run-bolt11.c
  4. 3
      common/test/run-derive_basepoints.c
  5. 3
      common/test/run-features.c
  6. 2
      external/libwally-core
  7. 3
      wallet/test/run-wallet.c

3
channeld/test/run-full_channel.c

@ -345,8 +345,7 @@ int main(void)
const struct chainparams *chainparams = chainparams_for_network("bitcoin"); const struct chainparams *chainparams = chainparams_for_network("bitcoin");
wally_init(0); wally_init(0);
/* FIXME: https://github.com/ElementsProject/libwally-core/issues/95 */ secp256k1_ctx = wally_get_secp_context();
secp256k1_ctx = (secp256k1_context *)wally_get_secp_context();
setup_tmpctx(); setup_tmpctx();
feerate_per_kw = tal_arr(tmpctx, u32, NUM_SIDES); feerate_per_kw = tal_arr(tmpctx, u32, NUM_SIDES);

3
common/daemon.c

@ -149,8 +149,7 @@ void daemon_setup(const char *argv0,
/* We handle write returning errors! */ /* We handle write returning errors! */
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
wally_init(0); wally_init(0);
/* FIXME: https://github.com/ElementsProject/libwally-core/issues/95 */ secp256k1_ctx = wally_get_secp_context();
secp256k1_ctx = (secp256k1_context *)wally_get_secp_context();
setup_tmpctx(); setup_tmpctx();
io_poll_override(daemon_poll); io_poll_override(daemon_poll);

3
common/test/run-bolt11.c

@ -130,8 +130,7 @@ int main(void)
const char *badstr; const char *badstr;
wally_init(0); wally_init(0);
/* FIXME: https://github.com/ElementsProject/libwally-core/issues/95 */ secp256k1_ctx = wally_get_secp_context();
secp256k1_ctx = (secp256k1_context *)wally_get_secp_context();
setup_tmpctx(); setup_tmpctx();
/* BOLT #11: /* BOLT #11:

3
common/test/run-derive_basepoints.c

@ -55,8 +55,7 @@ int main(void)
struct info *baseline, *info; struct info *baseline, *info;
wally_init(0); wally_init(0);
/* FIXME: https://github.com/ElementsProject/libwally-core/issues/95 */ secp256k1_ctx = wally_get_secp_context();
secp256k1_ctx = (secp256k1_context *)wally_get_secp_context();
baseline = new_info(ctx); baseline = new_info(ctx);
assert(derive_basepoints(&baseline->seed, &baseline->funding_pubkey, assert(derive_basepoints(&baseline->seed, &baseline->funding_pubkey,
&baseline->basepoints, &baseline->basepoints,

3
common/test/run-features.c

@ -15,8 +15,7 @@ int main(void)
setup_locale(); setup_locale();
wally_init(0); wally_init(0);
/* FIXME: https://github.com/ElementsProject/libwally-core/issues/95 */ secp256k1_ctx = wally_get_secp_context();
secp256k1_ctx = (secp256k1_context *)wally_get_secp_context();
setup_tmpctx(); setup_tmpctx();
bits = tal_arr(tmpctx, u8, 0); bits = tal_arr(tmpctx, u8, 0);

2
external/libwally-core

@ -1 +1 @@
Subproject commit f27740564955e9a63d2946bdb0099622c0977b6e Subproject commit 1b7ce30c8ceb9e95820486dbc1015b04f5f8b683

3
wallet/test/run-wallet.c

@ -1187,8 +1187,7 @@ int main(void)
setup_tmpctx(); setup_tmpctx();
wally_init(0); wally_init(0);
/* FIXME: https://github.com/ElementsProject/libwally-core/issues/95 */ secp256k1_ctx = wally_get_secp_context();
secp256k1_ctx = (secp256k1_context *)wally_get_secp_context();
ld = tal(tmpctx, struct lightningd); ld = tal(tmpctx, struct lightningd);
ld->config = test_config; ld->config = test_config;

Loading…
Cancel
Save