Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test is provided for lightning gossip not showing up #4

Closed
wants to merge 30 commits into from

Commits on Aug 7, 2023

  1. build: more 32-bit printf fixes.

    Reported-by: Shahana
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    84fe3dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f64aaaf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    be829a1 View commit details
    Browse the repository at this point in the history
  4. random doc changes to test.

    [Moved into a separate commit --RR]
    adi-shankara authored and rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    49acafe View commit details
    Browse the repository at this point in the history
  5. docs: try to fix up readthedocs.io, so it has the latest man pages, b…

    …ut points to docs.corelighting.org for the rest
    
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    5faaa39 View commit details
    Browse the repository at this point in the history
  6. splicing: Update documentation

    Added documentation for splice_update & splice_signed and tweaked splice_init.
    
    Added corresponding schemas for splice_* commands
    
    Changelog-None
    ddustin authored and rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    aa2df28 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f56ba46 View commit details
    Browse the repository at this point in the history
  8. meta: Add the VLS team as codeowners of hsmd/hsmd_wire.csv

    We use this file as a proxy for breaking changes in the signer
    protocol. It may not catch all the breaking changes, but it's a
    good first approximation.
    cdecker authored and rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    0bf5ee6 View commit details
    Browse the repository at this point in the history
  9. channeld: don't send splice TLV fields unless negotiated.

    This make ACINQ seize up, and not send revoke_and_ack.  Eventually,
    this can cause a bad signature error, should payments go in both
    directions, which is a separate bug, but this is the trigger.
    
    See: ElementsProject#6500
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    91a58a0 View commit details
    Browse the repository at this point in the history
  10. docker: bitcoin and elements version update

    Updated bitcoin and elements versions to 22.0.
    ShahanaFarooqui authored and rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    248b34a View commit details
    Browse the repository at this point in the history
  11. plugins/bcli: update minimum required bitcoind version.

    Less than 22 is obsolete anyway, so we should increment this from 16.0 at least!
    
    Closes: ElementsProject#6234
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    2042b50 View commit details
    Browse the repository at this point in the history
  12. renepay: allow it to die gracefully without crashing lightningd.

    Suggested-by: @Lagrang3
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    f556be5 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    d4ed1c7 View commit details
    Browse the repository at this point in the history
  14. lightningd: close connection when HTLC addition times out.

    I noticed this while debugging an issue with ACINQ, that we got upset,
    but didn't trigger a reconnect cycle.
    
    Signed-off-by: Rusty Russell <[email protected]>
    Changelog-Fixed: Protocol: We now close connection with a peer if adding an HTLC times out (which may be a TCP connectivity issue).
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    91ea85b View commit details
    Browse the repository at this point in the history
  15. pytest: test for listsendpays and lightning: prefix crash.

    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    7a88900 View commit details
    Browse the repository at this point in the history
  16. lightningd: fix bolt11 parsing in preapproveinvocie, sendonion, lists…

    …endpays and renepay
    
    Since bolt11_decode now insists that any `lightning:` prefix be removed, we need
    to make sure to use param_invstring not param_string for all bolt11 parameters:
    
    ```
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: FATAL SIGNAL 6 (version v23.08rc1-21-g0bf5ee6)
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: common/daemon.c:38 (send_backtrace) 0x55dd94934154
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: common/daemon.c:75 (crashdump) 0x55dd949342e6
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 ((null)) 0x7f5cf5a3bcef
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ./nptl/pthread_kill.c:44 (__pthread_kill_implementation) 0x7f5cf5a9226b
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ./nptl/pthread_kill.c:78 (__pthread_kill_internal) 0x7f5cf5a9226b
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ./nptl/pthread_kill.c:89 (__GI___pthread_kill) 0x7f5cf5a9226b
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ../sysdeps/posix/raise.c:26 (__GI_raise) 0x7f5cf5a3bc45
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ./stdlib/abort.c:79 (__GI_abort) 0x7f5cf5a227fb
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ./assert/assert.c:92 (__assert_fail_base) 0x7f5cf5a2271a
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: ./assert/assert.c:101 (__GI___assert_fail) 0x7f5cf5a33595
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: common/bolt11.c:734 (bolt11_decode_nosig) 0x55dd94929967
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: common/bolt11.c:953 (bolt11_decode) 0x55dd9492a44f
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: lightningd/pay.c:1730 (json_listsendpays) 0x55dd948d7d72
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: lightningd/jsonrpc.c:658 (command_exec) 0x55dd948b525b
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: lightningd/jsonrpc.c:786 (rpc_command_hook_final) 0x55dd948b5876
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: lightningd/plugin_hook.c:285 (plugin_hook_call_) 0x55dd948f6446
    2023-08-07T05:55:32.515Z **BROKEN** lightningd: backtrace: lightningd/jsonrpc.c:874 (plugin_hook_call_rpc_command) 0x55dd948b5c77
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: lightningd/jsonrpc.c:984 (parse_request) 0x55dd948b6234
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: lightningd/jsonrpc.c:1090 (read_json) 0x55dd948b670f
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:59 (next_plan) 0x55dd94ac9bf4
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:407 (do_plan) 0x55dd94aca823
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: ccan/ccan/io/io.c:417 (io_ready) 0x55dd94aca865
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: ccan/ccan/io/poll.c:453 (io_loop) 0x55dd94accbff
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: lightningd/io_loop_with_timers.c:22 (io_loop_with_timers) 0x55dd948b33c4
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: lightningd/lightningd.c:1332 (main) 0x55dd948ba429
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: ../sysdeps/nptl/libc_start_call_main.h:58 (__libc_start_call_main) 0x7f5cf5a2350f
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: ../csu/libc-start.c:381 (__libc_start_main_impl) 0x7f5cf5a235c8
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0x55dd94881e74
    2023-08-07T05:55:32.516Z **BROKEN** lightningd: backtrace: (null):0 ((null)) 0xffffffffffffffff
    ```
    
    Fixes: ElementsProject#6524
    Signed-off-by: Rusty Russell <[email protected]>
    Changelog-None: broken in master since last release.
    rustyrussell committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    54bcb10 View commit details
    Browse the repository at this point in the history
  17. fix flake8 errors in the script file (ElementsProject#6528)

    * fix flake8 errors
    
    * fix E126 error
    
    * fix E123 error
    adi-shankara authored Aug 7, 2023
    Configuration menu
    Copy the full SHA
    98c805e View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. lightningd: use fsync not fdatasync.

    Apparently MacOS doesn't always have fdatasync, so use fsync.  Even more importantly
    check whether it succeeds!
    
    Fixes: ElementsProject#6516
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    1fbe87f View commit details
    Browse the repository at this point in the history
  2. doc: Fix typo in the description of fields private

    Signed-off-by: Peter Neuroth <[email protected]>
    [ Regenerated man pages --RR ]
    nepet authored and rustyrussell committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    29fea55 View commit details
    Browse the repository at this point in the history
  3. Fix: Remove Sync requirements on Futures returned in the Rust plugin …

    …library.
    
    See: bitcoindevkit/bdk#1047 (comment)
    
    In general, futures produced by most libraries in the ecosystem of Rust, and bounds placed
    on users of famous runtimes like tokio and its spawn method all lack Sync requirements.
    
    Because of this, anyone who creates a callback using any sort of library that returns a
    non-Sync future (which most libraries fit this description) inside of it will get some
    cryptic error messages (async error messages still leave a lot to be desired).
    
    Removing these Sync requirements will make the library more useful.
    junderw authored and rustyrussell committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    32b88a2 View commit details
    Browse the repository at this point in the history
  4. hsmd: rename "capabilities" flags for hsm fds to "permissions"

    I obviously like the word "capabilities" since I reused it to refer
    to the HSM's overall features :(
    
    Suggested-by: @ksedgwic
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    d95cfc0 View commit details
    Browse the repository at this point in the history
  5. hsmd: fix capability check for signing splices.

    The nomenclature confusion mean that we were ANDING a capability
    with a message number (29) which always returned non-zero.  We really
    do need a new capability which we can hand to channeld to make these
    splice txs.
    
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    ac092c0 View commit details
    Browse the repository at this point in the history
  6. pytest: run splicing test on every run.

    EXPERIMENTAL_SPLICING=1 turns it on for *all* tests, to make sure we don't
    accidentally break those.  But we can (and should!) run the splice test
    under every possible CI scenario.
    
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    dabd6c6 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. renepay: add help for renepay & renepaystatus

    Signed-off-by: Lagrang3 <[email protected]>
    Lagrang3 authored and rustyrussell committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    961ad21 View commit details
    Browse the repository at this point in the history
  2. plugins: fix error report from bitcoin-cli exec failure.

    We've stomped errno, so if exec fails we don't get a reliable result:
    
    ```
    2023-08-07T17:58:45.713Z **BROKEN** plugin-bcli: bitcoin-cli exec failed: Bad file descriptor
    ```
    
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    5f8b774 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. splice: Move splice to experimental feature bit

    This was recommended by @t-bast: if the final spec commits to something
    compatible, we can simply advertize and accept both features, but if it
    does change in incompatible ways we won't cause problems for nodes
    who implement the official spec.
    
    (I split this, so first, we remove the OPT_SPLICE entirely, to make
    sure we caught them all. --RR)
    
    Suggested-by: @t-bast
    Changelog-None
    ddustin authored and rustyrussell committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    c50e93d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0281111 View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. gossipd: ignore redundant node_announcement in gossip_store.

    Don't know how this is happening, but it is not harmful to ignore it for now.
    
    Fixes: ElementsProject#6531
    Signed-off-by: Rusty Russell <[email protected]>
    rustyrussell committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    846cec4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b533f5 View commit details
    Browse the repository at this point in the history
  3. Failing test is provided

    litch committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    990b2b4 View commit details
    Browse the repository at this point in the history