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 init networks TLV #13

Open
wants to merge 110 commits into
base: master
Choose a base branch
from

Commits on Nov 14, 2019

  1. Specify that resolution of amount is msat

    When the `p` multiplier is used, the amount MUST be divisible
    by 10 since the resolution used internally is millisatoshi.
    
    This addresses but does not close lightning#692.
    Sword-Smith authored Nov 14, 2019
    Configuration menu
    Copy the full SHA
    a5b3818 View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2019

  1. fix <id> tag

    nayuta-ueno authored and rustyrussell committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    efd16b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3a0a7fd View commit details
    Browse the repository at this point in the history
  3. bolt07: remove trailing tabs

    Tabs or spaces ? Spaces seems to largely beat tabs in this files (and more globally in the repo).
    darosior authored and rustyrussell committed Nov 20, 2019
    Configuration menu
    Copy the full SHA
    b84d09e View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2019

  1. Configuration menu
    Copy the full SHA
    5f57ee3 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2019

  1. BOLT 9: flatten feature fields.

    We simply specify, in each case, where they will appear ("Context").
    
    Because `globalfeatures` is already in use, we fold that into the
    renamed `localfeatures` field to unify them (now called `features`),
    but dissuade further use.
    
    Note also: we REQUIRE minimal `features` field in
    channel_announcement, since otherwise both sides of channel will not
    agree and not be able to create their signatures!
    
    Consider these theoretical future features:
    
    `opt_dlog_chan`: a new channel type which uses a new discrete log HTLC
    type, but can't support traditional HTLC:
    
    * `init`: presents as odd (optional) or even (if traditional channels
      not supported)
    * `node_announcement`: the same as above, so you can seek suitable peers.
    * `channel_announcement`: presents as even (compulsory), since users need
      to use the new HTLCs.
    
    `opt_wumbochan`: a node which allows channels > 2^24 satoshis:
    
    * `init`: presents as odd (optional), or maybe even (if you only want
      giant channels)
    * `node_announcement`: the same as above, so you can seek suitable peers.
    * `channel_announcement`: not present, since size of channel indicates
      capacity.
    
    `opt_wumbohtlc`: a channel which allows HTLCs > 2^32 millisatoshis:
    
    * `init`: presents as odd (optional), or even (compulsory)
    * `node_announcement`: the same as above, so you can seek suitable peers.
    * `channel_announcement`: odd (optional) since you can use the channel
      without understanding what this option means.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    Co-Authored-By: Bastien Teinturier <31281497+t-bast@users.noreply.github.com>
    rustyrussell and t-bast committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    206084c View commit details
    Browse the repository at this point in the history
  2. BOLT 7: always propagate announcements with unknown features.

    The feature fields refer to the properties of the channel/node, not the
    message itself, so we can still propagate them (and should, to avoid
    splitting the network).
    
    If we want to make an incompatible announcement message, we'll use a
    different type, or insert an even TLV type.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    6502e30 View commit details
    Browse the repository at this point in the history
  3. BOLT 11: use the same features for BOLT11 invoices as for others.

    A bit less dense, but avoids a separate feature space.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Nov 25, 2019
    Configuration menu
    Copy the full SHA
    8e69306 View commit details
    Browse the repository at this point in the history

Commits on Dec 9, 2019

  1. Configuration menu
    Copy the full SHA
    0fb66ca View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2019

  1. BOLT 4: don't allow a "fee" for the final node.

    I recently made a cut & paste bug with the protocol tests, and
    paid an HTLC of amount 100M msat, but with only a 1M msat `amt_to_forward`
    in the hop_data.  To my surprise, it was accepted.
    
    This is because we allow overpaying the routing fee (considered 0
    for the final hop).  This doesn't make sense for the final hop: anything
    but exact equality implies a bug, or that the previous node took the
    wrong amount from the payment.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    2422630 View commit details
    Browse the repository at this point in the history
  2. BOLT 9: Add feature bits for payment_secret and basic_mpp.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    b2a3c2f View commit details
    Browse the repository at this point in the history
  3. BOLT 11: Add payment_secret field (compulsory for new invoices).

    We also define what the basic_mpp feature means in an invoice, by
    reference to the next commit.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    5776d2a View commit details
    Browse the repository at this point in the history
  4. BOLT 4: Multi-part payments.

    This also defines the TLV format for payment_secret; the two are intertwined.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    4c3d016 View commit details
    Browse the repository at this point in the history
  5. BOLT 4/11: require payment_secret for multi-part payments.

    This means the BOLT11 invoice must offer it (we already say it must
    set the field if it offers it), and that the receiving node must
    require it (again, we already say it must check it if it requires it).
    
    Without the payment_secret, MPP payments are especially vulnerable to
    probing attacks: unlike normal payments (with amounts) they can be
    detected with 1msat payment probes.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    6ad8ee4 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2019

  1. Merge pull request lightning#712 from rustyrussell/rebased-amp

    *Require* payment_secret for multi-part payments
    cfromknecht authored Dec 16, 2019
    Configuration menu
    Copy the full SHA
    138ee87 View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2019

  1. Resolve conflict between BOLT 4&9 re: var_onion_optin context

    BOLT 4 explicitly indicates var_onion_optin may appear in a BOLT 11
    invoice, however, BOLT 9 only indicates it is available in init and
    node_announcement contextx. Resolve this conflict in favor of BOLT 4
    as there doesn't seem to be much reason to *not* allow it in BOLT
    11 invoices.
    TheBlueMatt committed Dec 24, 2019
    Configuration menu
    Copy the full SHA
    44c5fa1 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2020

  1. Do not allow routing to a node with unkown feature bits set.

    This appears to have been an oversight in the flat features spec,
    and is somewhat implicitly relied on for several new feature bits -
    if var_onion_optin is set on a node_announcement (its not allowed
    on a channel_announcement), then trying to route through that node
    using the pre-tlv formt is somewhat nonsensical, and should be
    forbidden.
    TheBlueMatt committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    5abee4d View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2020

  1. Merge pull request lightning#723 from TheBlueMatt/master

    Resolve two spec oddities regarding new features.
    cfromknecht authored Jan 8, 2020
    Configuration menu
    Copy the full SHA
    5f2c0ef View commit details
    Browse the repository at this point in the history
  2. lightning#711 don't allow a "fee" for the final node. (lightning#718)

    Update a requirement that was missed in lightning#711
    nayuta-ueno authored and t-bast committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    f219ee0 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2020

  1. Configuration menu
    Copy the full SHA
    b62c878 View commit details
    Browse the repository at this point in the history
  2. 04-onion-routing.md: Fix factual error about final_expiry_too_soon. (

    …lightning#722)
    
    As reading of commit 6729755 shows, `final_expiry_too_soon` was
    17, not PERM|17.
    
    Note that because we folded a previously non-permanent failure into
    the now-permanent PERM|15 failure code, modifications to payment
    algorithms may now be needed to specificalyl detect this case,
    otherwise payment algorithms may give up in some edge cases where
    blocks are mined while payments are in-transit between sender and
    receiver.
    ZmnSCPxj authored and Roasbeef committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    11f6017 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2020

  1. 09+11: require transitive feature dependencies

    This commit:
     - Adds a new Dependencies column to the BOLT 9 feature table
       populated with existing feature dependencies.
     - Requires that all valid feature vectors set transitive dependencies.
     - Requires checking transitive dependencies when validating init
       messages and payment request.
     - Removes transitive feature requiremetns from the BOLT 11 writer, now
       that they are implicit by needing to comply with the BOLT 9 origin
       requirements.
    cfromknecht authored and cdecker committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    4c638b7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1259f8f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    53653e5 View commit details
    Browse the repository at this point in the history
  4. BOLT11: simplify existing writer feature requirements

    As a final step, we now can remove several of the BOLT 11 writer's
    requirements now that it builds on BOLT 9's, particularly:
     - setting the even bit if a feature is required.
     - only setting a feature if the node supports a given feature.
    
    The lone requirement that remains pertains to setting the `s` value if
    and only if the `payment_secret` feature is set.
    cfromknecht authored and cdecker committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    c3a8e5e View commit details
    Browse the repository at this point in the history
  5. BOLT 1: Define custom message type range

    t-bast authored and cdecker committed Jan 21, 2020
    Configuration menu
    Copy the full SHA
    caca437 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    798ff4b View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    29f1386 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2020

  1. BOLT-04: modify Sphinx packet construction to use starting random bytes

    In this commit, we modify the existing instructions to create the Sphinx
    packet to no longer start out with a zero initialize set of 1366 bytes.
    Instead, we now instruct the sender to use _random_ bytes derived from a
    CSPRG. This fixes a recently discovered privacy leak that allows an
    adversarial exit hop to ascertain a lower bound on the true path length.
    
    Note that this doesn't affect packet processing, so this is a backwards
    compatible change. Only clients need to update in order to avoid this
    privacy leak.
    
    After this change is applied, the test vectors as is don't match the
    spec, as they're created using the original all zero starting bytes. We
    can either update these with our specified set of random bytes, or leave
    them as is, as they're fully deterministic as is.
    
    An alternative path would be to generate more random bytes from the
    shared secret as we do elsewhere (the chacha based CSPRNG).
    Roasbeef authored and cdecker committed Jan 24, 2020
    Configuration menu
    Copy the full SHA
    8dd0b75 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7c1edeb View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2020

  1. Update 01-messaging.md (lightning#732)

    Add missing parenthesis in link.
    kiminuo authored Jan 29, 2020
    Configuration menu
    Copy the full SHA
    75f46ba View commit details
    Browse the repository at this point in the history
  2. Merge pull request lightning#700 from Sword-Smith/patch-3

    Specify that resolution of amount is msat
    cdecker authored Jan 29, 2020
    Configuration menu
    Copy the full SHA
    17df7f2 View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2020

  1. Configuration menu
    Copy the full SHA
    0bb69d3 View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2020

  1. BOLT 7: be more aggressive about sending our own gossip.

    As more nodes on the network use timestamp_filter to block gossip
    floods, we've seen some propagation problems.  This should avoid it
    (and is implemented now by c-lightning).
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and cdecker committed Feb 3, 2020
    Configuration menu
    Copy the full SHA
    458b0d3 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2020

  1. Fix a typo in insert_secret pseudo code (lightning#741)

    ... to make it consistent with the `where_to_put_secret` above.
    Jan Xie authored Feb 14, 2020
    Configuration menu
    Copy the full SHA
    2afe097 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2020

  1. Remove reference to DER encoding for public keys in compressed format (

    …lightning#742)
    
    ECDSA signatures in Bitcoin are DER-encoded but public keys are not.
    
    The compressed format for public keys is for example standardized in
    Sections 2.3.3 and 2.3.4 of
    
      Standards for Efficient Cryptography, SEC 1: Elliptic Curve
      Cryptography, Certicom Research, Version 2, 2009,
      https://www.secg.org/sec1-v2.pdf
    real-or-random authored Feb 17, 2020
    Configuration menu
    Copy the full SHA
    fb7102e View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2020

  1. Single-option large channel proposal (lightning#596)

    Add option to open large channels (wumbo).
    araspitzu authored Feb 18, 2020
    Configuration menu
    Copy the full SHA
    3847935 View commit details
    Browse the repository at this point in the history
  2. BOLT 1: add networks to init message. (lightning#682)

    Add networks to init message via TLV extension.
    This prevents accidentally connecting a testnet node to mainnet or the other way around.
    rustyrussell authored Feb 18, 2020
    Configuration menu
    Copy the full SHA
    7b01692 View commit details
    Browse the repository at this point in the history
  3. Keep hmac case consistent (lightning#547)

    Use `hmac` (lower-case) in packet fields to stay consistent with other fields.
    OrfeasLitos authored Feb 18, 2020
    Configuration menu
    Copy the full SHA
    a2afdfd View commit details
    Browse the repository at this point in the history
  4. Clarify numerical comparison of pubkeys (lightning#743)

    We are using lexixographic order (which is the same as big-endian
    when inputs have the same size, such as compressed public keys).
    t-bast authored Feb 18, 2020
    Configuration menu
    Copy the full SHA
    dcbf858 View commit details
    Browse the repository at this point in the history
  5. tests: spec for test vectors, and a simple example.

    I initially used JSON, but it was not human-writable.  The simple
    DSL is much more human-writable, and readable.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    eccb27b View commit details
    Browse the repository at this point in the history
  6. tests: c-lightning support.

    Works with current c-lightning master branch, as long as it's built with
    --enable-developer.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    077af84 View commit details
    Browse the repository at this point in the history
  7. tests: channel opening test.

    Very simple successful open.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    d940f77 View commit details
    Browse the repository at this point in the history
  8. tests: HTLC-adding test.

    Does a simple dust HTLC and a non-dust HTLC.  Both fail.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    8e46a95 View commit details
    Browse the repository at this point in the history
  9. tests: add reconnection tests to add-htlc.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    04eb8e3 View commit details
    Browse the repository at this point in the history
  10. tests: htlc success tests.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    d67cf5a View commit details
    Browse the repository at this point in the history
  11. tests: make to_self_delay different between peers.

    This helps for testing that we handle it correctly.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    73a04e7 View commit details
    Browse the repository at this point in the history
  12. tests/events: split htlc-add and htlc-fail tests.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    8684b8b View commit details
    Browse the repository at this point in the history
  13. tests/events: test unknown messages.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    abb41ed View commit details
    Browse the repository at this point in the history
  14. fixup: unpack handle TLV fields

    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    b6bfb47 View commit details
    Browse the repository at this point in the history
  15. rfc-tests: handle subtype parsing

    Preliminary parsing for subtypes. Probably need something on the
    unpacking side also.
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    d250ebe View commit details
    Browse the repository at this point in the history
  16. WIP: handle unpack subtypes

    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    97eb45a View commit details
    Browse the repository at this point in the history
  17. Keep flake8 happy.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    20ed1ad View commit details
    Browse the repository at this point in the history
  18. tests: add must-not-send

    Useful for gossip tests, antonym of maybe-send.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    06b9ec3 View commit details
    Browse the repository at this point in the history
  19. protocol tests: handle unpack subtypes

    Unpacking and comparison for subtypes.
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    6dfb24b View commit details
    Browse the repository at this point in the history
  20. protcol tests: for c-lightning driver, ensure funds in wallet

    make sure that the funds have hit the wallet before continuing
    node operation
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    20c1304 View commit details
    Browse the repository at this point in the history
  21. protocol tests: allow implementation specific flags to be passed in

    Adds a command flag for command flags. Passed down to the
    runner on start. Ex:
    
       -f max-allowed=0 -f no-fuzz=true
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    6592287 View commit details
    Browse the repository at this point in the history
  22. subtypes: match empty values

    if the values are empty, match them up
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    d33705e View commit details
    Browse the repository at this point in the history
  23. rebase errors, fixup

    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    1c74067 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    afb87dc View commit details
    Browse the repository at this point in the history
  25. Allow check for field length instead of contents

    For dual-funded tests, we need a way to verify that witnesses are
    the correct length instead of the correct contents. This is a bit
    'complicated' because witnesses are in the range of 71-73 bytes long.
    
    This patch allows a byte length (or range) to be specified by using
    `*73` or `*71-73`, as in the case for a range of valid lengths.
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    da66e11 View commit details
    Browse the repository at this point in the history
  26. new event 'wait-funds'

    New test runner event, gives the node under test time to confirm
    that they do in fact have funds in their wallet before proceeding.
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    1a863ac View commit details
    Browse the repository at this point in the history
  27. Move funding output block broadcast into tests

    Allows dual-funding tests to specify a different set of outputs to
    be used as inputs for the funding transaction
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    3b1a9a0 View commit details
    Browse the repository at this point in the history
  28. Revert "new event 'wait-funds'"

    This reverts commit 09d9c80.
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    eebe7ae View commit details
    Browse the repository at this point in the history
  29. test-spec.md: update with length options.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    50213ad View commit details
    Browse the repository at this point in the history
  30. tools/test-events.py: handle indention which occurs at EOF.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    5cabd01 View commit details
    Browse the repository at this point in the history
  31. fixup invalidation logic

    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    00b5f5f View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    a959ecc View commit details
    Browse the repository at this point in the history
  33. fix up 'conn=' parsing.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    ad8ff1c View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    3edaa8a View commit details
    Browse the repository at this point in the history
  35. Implement 'Any order'.

    Otherwise combinatorial explosion buries us in gossip alternatives.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    cbdca18 View commit details
    Browse the repository at this point in the history
  36. handle tlvs in a slightly less hacky way.

    We still treat them as blobs of hex, but we don't base it on the suffix.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    487cc61 View commit details
    Browse the repository at this point in the history
  37. Fix parsing of signature hex fields.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    86926b0 View commit details
    Browse the repository at this point in the history
  38. Add setup.incl which contains convenience vars.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    e7380c2 View commit details
    Browse the repository at this point in the history
  39. Simple gossip tests, part 1.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    46c4139 View commit details
    Browse the repository at this point in the history
  40. Basic gossip_timestamp_filter tests.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    7e39c2c View commit details
    Browse the repository at this point in the history
  41. Basic query_channel_range tests.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    4f3fe68 View commit details
    Browse the repository at this point in the history
  42. basic query_short_channel_ids tests.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    0fab8a6 View commit details
    Browse the repository at this point in the history
  43. query_short_channel_ids tests for option_gossip_queries_ex.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    841a4a4 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    fabde2b View commit details
    Browse the repository at this point in the history
  45. tests: add tests for option_static_remotekey.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    fd408dc View commit details
    Browse the repository at this point in the history
  46. featurebits: update feature bit tests

    now that we support dual_fund and static_remotekey, we needed
    to update the init tests
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    f99c7ab View commit details
    Browse the repository at this point in the history
  47. test-events.py: Fix printing of unexpected fields.

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    a42c38a View commit details
    Browse the repository at this point in the history
  48. tools/test-events-clightning: autodetect supported features.

    You can still override on cmdline.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    4a9720e View commit details
    Browse the repository at this point in the history
  49. tools/test-events-clightning: use modern -dev options

    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    a811778 View commit details
    Browse the repository at this point in the history
  50. tests: fix option_static_remotekey

    Feature bit is now 13 (0x80000), and we include the
    my_current_per_commitment_point with option_static_remotekey; we just
    ignore it.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    0e98ecb View commit details
    Browse the repository at this point in the history
  51. tools/test-events-clightning.py: fix time so gossip tests work.

    They worked for about two weeks after I wrote them!
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    5e9c614 View commit details
    Browse the repository at this point in the history
  52. tests: Add shutdown for executor

    Will be used later for fundchannel process
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    254ad12 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    b8af700 View commit details
    Browse the repository at this point in the history
  54. tests: add feerate to fundchannel command

    Allow for the test to specify the feerate for a fundchannel open
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    01dbfc6 View commit details
    Browse the repository at this point in the history
  55. test: add fundchannel implementation to c-lightning runner

    Build out the command for fundchannel, originates open_channel
    from node under test
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    4b476db View commit details
    Browse the repository at this point in the history
  56. test: cleaner shutdown of fundchannel on exit

    If we exit before fundchannel has finished, it shows errors; let's
    swallow the errors if they're happening on/after shutdown
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    3fc25c0 View commit details
    Browse the repository at this point in the history
  57. tests: kill fundchannel on stop

    We need to make sure that any fundchannel process is killed by stop,
    so that we can run multiple fundchannel attempts in the same go
    
    Also removes 'shutdown(wait=False)' since it doesn't do anything,
    really.
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    be5ddaa View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    a0276fc View commit details
    Browse the repository at this point in the history
  59. tests: test case for basic opening a channel (opener)

    Simple 'open channel' check from the opener's perspective.  Uses the
    'new' fundchannel impl for c-lightning.
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    647da25 View commit details
    Browse the repository at this point in the history
  60. tests: add capability to dynamically generate/verify sigs

    Moving c-lightning over to 'ground' sigs means that it'd be more
    flexible if the protocol test framework allowed for dynamically
    generating or verifying sigs based on a hash + private key.
    
    Uses ':' notation as a separator so that `htlc_signature` list
    parsing will still work without modification
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    50de0f7 View commit details
    Browse the repository at this point in the history
  61. tests: update signatures to use SIG() notation

    missing openchannel, will follow with cleanup
    niftynei authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    6a3237c View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    cc29195 View commit details
    Browse the repository at this point in the history
  63. tools: update c-lightning runner for modern per-network paths.

    As changed in commit aab83e729b93d6ce2e2b4702681aaba71462bec8.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    e43238d View commit details
    Browse the repository at this point in the history
  64. tests: update bolt1-01-init "high-numbered" features now 18 and 19 ar…

    …e used.
    
    Add another 16 bits.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    2049a6e View commit details
    Browse the repository at this point in the history
  65. tools: fix test-events-clightning.py funchannel.

    NameError: name 'peers' is not defined
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    8d5ef1e View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    7a01332 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    58d9b9f View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    a6c90a8 View commit details
    Browse the repository at this point in the history
  69. tests: Fix INPUT_EVENT specification

    jkczyz authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    d73824a View commit details
    Browse the repository at this point in the history
  70. Configuration menu
    Copy the full SHA
    6ff22bc View commit details
    Browse the repository at this point in the history
  71. BOLT 1: add networks to init message.

    This has been discussed for forever, but now we have TLVs
    the correct encoding seems obvious.
    
    Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
    rustyrussell authored and darosior committed Feb 18, 2020
    Configuration menu
    Copy the full SHA
    46fdceb View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    6bf9e63 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    92f3d9f View commit details
    Browse the repository at this point in the history
  74. Configuration menu
    Copy the full SHA
    66f2f6d View commit details
    Browse the repository at this point in the history