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

release: create branch for v0.18.4-beta.rc1 #9183

Open
wants to merge 217 commits into
base: 0-18-4-branch
Choose a base branch
from

Commits on Oct 11, 2024

  1. lntypes: Add Dual[A] primitive type

    This commit introduces a new type Dual[A] to make it easier to
    manage symmetric configurations or state for lightning channels.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    8344699 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0719c80 View commit details
    Browse the repository at this point in the history
  3. msgmux: add new abstract message router

    In this commit, we add a new abstract message router. Over time, the
    goal is that this message router replaces the logic we currently have in
    the readHandler (the giant switch for each message).
    
    With this new abstraction, can reduce the responsibilities of the
    readHandler to *just* reading messages off the wire and handing them off
    to the msg router. The readHandler no longer needs to know *where* the
    messages should go, or how they should be dispatched.
    
    This will be used in tandem with the new `protofsm` module in an
    upcoming PR implementing the new rbf-coop close.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a888573 View commit details
    Browse the repository at this point in the history
  4. peer: update readHandler to dispatch to msgRouter if set

    Over time with this, we should be able to significantly reduce the size
    of the peer.Brontide struct as we only need all those deps as the peer
    needs to recognize and handle each incoming wire message itself.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e257188 View commit details
    Browse the repository at this point in the history
  5. multi: make MsgRouter available in the ImplementationCfg

    With this commit, we allow the `MsgRouter` to be available in the
    `ImplementationCfg`. With this, programs outside of lnd itself are able
    to now hook into the message processing flow to direct handle custom
    messages, and even normal wire messages.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    35e4883 View commit details
    Browse the repository at this point in the history
  6. peer: don't stop global msg router

    In this commit, we fix a bug that would cause a global message router to
    be stopped anytime a peer disconnected. The global msg router only
    allows `Start` to be called once, so afterwards, no messages would
    properly be routed.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    8eae1ee View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3b5e1fa View commit details
    Browse the repository at this point in the history
  8. build: set min build version to Go 1.22.6

    Go 1.23 was released this week, so with this PR we update the build
    system to officially support the last two releases.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e735f77 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7502bf3 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    03493d4 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c849f91 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7e65625 View commit details
    Browse the repository at this point in the history
  13. lnwallet/chanfunding: rename assembler.go to interface.go

    In this commit, we rename the files as assembler.go houses the primary
    interfaces/abstractions of the package. In the rest of the codebase,
    this file is near uniformly called interface.go, so we rename the file
    to make the repo more digestible at a scan.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    213618a View commit details
    Browse the repository at this point in the history
  14. mod: bump tlv to v1.2.6

    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1893104 View commit details
    Browse the repository at this point in the history
  15. lnwire: add type CustomRecords

    This commit introduces the `CustomRecords` type in the `lnwire` package,
    designed to hold arbitrary byte slices. Each entry in this map can
    associate with TLV type values that are greater than or equal to 65536.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    58ed8e7 View commit details
    Browse the repository at this point in the history
  16. multi: improve comment grammar

    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    cc2b7b6 View commit details
    Browse the repository at this point in the history
  17. htlcswitch: add missing method doc

    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b59ecc9 View commit details
    Browse the repository at this point in the history
  18. funding: add new type alias for PendingChanID = [32]byte

    This'll be useful for new interface definitions that use the contents of the package.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    cd5fa59 View commit details
    Browse the repository at this point in the history
  19. funding: use atomic.Uint64 for chanIDNonce

    This lets us get rid of the mutex usage there. We also shift the algo slightly to increment by 1, then use that as the next value, which plays nicer with the atomics.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    41ca01a View commit details
    Browse the repository at this point in the history
  20. cmd/lncli: move commands and export

    We want to export some of our CLI code to re-use in other projects. But
    in Golang you cannot import code from a `main` package.
    So we need to move the actual code into its own package and only have
    the `func main()` in the `main` package.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    9047006 View commit details
    Browse the repository at this point in the history
  21. lnwallet: export AnchorSize

    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    29f1392 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    89f75e7 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    4fd1abf View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    2d6ba8c View commit details
    Browse the repository at this point in the history
  25. server: fix logging of pubkey

    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1447493 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    830dd49 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    264dcd0 View commit details
    Browse the repository at this point in the history
  28. channeldb: consolidate root bucket TLVs into new struct

    In this commit, we consolidate the root bucket TLVs into a new struct.
    This makes it easier to see all the new TLV fields at a glance. We also
    convert TLV usage to use the new type param based APis.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e71627f View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    74cb1f4 View commit details
    Browse the repository at this point in the history
  30. multi: add new tapscript root option to GenTaprootFundingScript

    This'll allow us to create a funding output that uses musig2, but uses a tapscript tweak rather than a normal BIP 86 tweak.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1e71b1e View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    9fd8287 View commit details
    Browse the repository at this point in the history
  32. multi: update GenTaprootFundingScript to pass tapscript root

    In most cases, we won't yet be passing a root. The option usage helps us keep the control flow mostly unchanged.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b7e153f View commit details
    Browse the repository at this point in the history
  33. lnwallet: update internal funding flow w/ tapscript root

    This isn't hooked up yet to the funding manager, but with this commit, we can now start to write internal unit tests that handle musig2 channels with a tapscript root.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    62713c1 View commit details
    Browse the repository at this point in the history
  34. lnwallet+peer: add tapscript root awareness to musig2 sessions

    With this commit, the channel is now aware of if it's a musig2 channel, that also has a tapscript root. We'll need to always pass in the tapscript root each time we: make the funding output, sign a new state, and also verify a new state.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    cae4f21 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    ca5dcbb View commit details
    Browse the repository at this point in the history
  36. input+lnwallet: update taproot scripts to accept optional aux leaf

    In this commit, we update all the taproot scripts to also accept an
    optional aux leaf. This aux leaf can be used to add more redemption
    paths for advanced channels, or just as an extra commitment space.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    41bd293 View commit details
    Browse the repository at this point in the history
  37. channeldb: new custom blob nested TLV

    In this commit, for each channel, we'll now start to store an optional custom blob. This can be used to store extra information for custom channels in an opauqe manner.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    cd155d7 View commit details
    Browse the repository at this point in the history
  38. lnwallet: export the HtlcView struct

    We'll need this later on to ensure we can always interact with the new aux blobs at all stages of commitment transaction construction.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    da9ceb1 View commit details
    Browse the repository at this point in the history
  39. lnwallet: add custom tlv blob to internal commitment struct

    In this commit, we also add the custom TLV blob to the internal commitment struct that we use within the in-memory commitment linked list.
    
    This'll be useful to ensure that we're tracking the current blob for our in memory commitment for when we need to write it to disk.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ae1b121 View commit details
    Browse the repository at this point in the history
  40. input: add some utility type definitions for aux leaves

    In this commit, we add some useful type definitions for the aux leaf.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    9db810d View commit details
    Browse the repository at this point in the history
  41. lnwallet+channeldb: add new AuxLeafStore for dynamic aux leaves

    In this commit, we add a new AuxLeafStore which can be used to dynamically fetch the latest aux leaves for a given state. This is useful for custom channel types that will store some extra information in the form of a custom blob, then will use that information to derive the new leaf tapscript leaves that may be attached to reach state.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ef56d86 View commit details
    Browse the repository at this point in the history
  42. lnwallet: add TLV blob to PaymentDescriptor + htlc add

    In this commit, we add a TLV blob to the PaymentDescriptor struct. We also now thread through this value from the UpdateAddHTLC message to the PaymentDescriptor mapping, and the other way around.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    12ab2c3 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    314a246 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    1f785e8 View commit details
    Browse the repository at this point in the history
  45. channeldb: add custom blobs to RevocationLog+HTLCEntry

    This'll be useful for custom channel types that want to store extra information that'll be useful to help handle channel revocation cases.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    eb600a9 View commit details
    Browse the repository at this point in the history
  46. channeldb: add HtlcIndex to HTLCEntry

    This may be useful for custom channel types that base everything off the index (a global value) rather than the output index (can change with each state).
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1806480 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    b1c8a83 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    860cacb View commit details
    Browse the repository at this point in the history
  49. lnwallet: thread thru input.AuxTapleaf to all relevant areas

    In this commit, we start to thread thru the new aux tap leaf structures to all relevant areas. This includes: commitment outputs, resolution creation, breach handling, and also HTLC scripts.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b072864 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    767a6f9 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    89a94e9 View commit details
    Browse the repository at this point in the history
  52. lnwallet: pack commit chains into Dual

    This commit packs the LightningChannel's localCommitmentChain and
    remoteCommitmentChain into a Dual structure for better symmetric
    access. This will be leveraged by an upcoming commit where we want
    to more concisely express how we compute the number of pending
    updates.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    61383f1 View commit details
    Browse the repository at this point in the history
  53. lnwallet: pack update logs into Dual

    This commit, like the last one packs the update logs into a symmetric
    Dual structure. This will allow us to index into them more concisely
    in higher order logic.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    214dac0 View commit details
    Browse the repository at this point in the history
  54. lnwallet: pack commitment message indices into Dual

    This is yet another commit that packs a symmetric structure into
    a Dual. This is the last one needed for the time being to consolidate
    Num{X}UpdatesPendingOn{Y} functions into a single one.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    b337213 View commit details
    Browse the repository at this point in the history
  55. lnwallet+htlcswitch: define expanded NumPendingUpdates

    This commit squashes the below operations for a net result where
    we have an expanded capability of assessing pending updates. This
    is made possible by packing the components into Duals in the prior
    commits. We squash the operations to simplify review.
    
    htlcswitch+lnwallet: rename PendingLocalUpdateCount
    
    lnwallet: complete pending update queries API for LightningChannel
    
    lnwallet+htlcswitch: consolidate NumPendingUpdates using ChannelParty
    
    This commit makes the observation that we can cleanly define the
    NumPendingUpdates function using a single expression by taking
    advantage of the relevant fields being properly packed into Duals.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    d4a4233 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    2da56bd View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    0c95dc2 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    4ef6851 View commit details
    Browse the repository at this point in the history
  59. aliasmgr: add map type alias

    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    4757e89 View commit details
    Browse the repository at this point in the history
  60. aliasmgr: avoid collision when requesting alias

    With the new RPC calls that we are going to add in the next commits, it
    will be possible for users to add (local only, non-gossipped) SCID
    aliases for channels. Since those will be in the same range as the ones
    given out by RequestAlias, we need to make sure that when we generate a
    new one that it doesn't collide with an already existing one.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    148ba49 View commit details
    Browse the repository at this point in the history
  61. aliasmgr: export alias start and end ranges

    Because we restrict custom SCID aliases to be in a specific range, we
    export the range start and end values so a user of the RPCs we're going
    to add in the next commits can adjust their values to fit within the
    range.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    2b1f347 View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    d6ef2a1 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    08ca287 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    b07e857 View commit details
    Browse the repository at this point in the history
  65. lnwire: add ExtraOpaqueData helper functions and methods

    Introduces a couple of new helper functions for both the ExtraOpaqueData
    and CustomRecords types along with new methods on the ExtraOpaqueData.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ed69bb8 View commit details
    Browse the repository at this point in the history
  66. lnwire: add custom records field to type UpdateAddHtlc

    - Introduce the field `CustomRecords` to the type `UpdateAddHtlc`.
    - Encode and decode the new field into the `ExtraData` field of
      the `update_add_htlc` wire message.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    2cfa89c View commit details
    Browse the repository at this point in the history
  67. lnwire: add custom records field to type UpdateFulfillHtlc

    - Introduce the field `CustomRecords` to the type `UpdateFulfillHtlc`.
    - Encode and decode the new field into the `ExtraData` field of the
    `update_fulfill_htlc` wire message.
    - Empty `ExtraData` field is set to `nil`.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    cb15297 View commit details
    Browse the repository at this point in the history
  68. htlcswitch: add resume modified HTLC action to switch

    Introduce `ResumeModified` action to resume standard behavior of a p2p
    message with optional modifications as specified by the client during
    interception.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    49db662 View commit details
    Browse the repository at this point in the history
  69. routerrpc: extend HTLC forward interceptor resp with modification fields

    This commit extends the forward HTLC intercept response with fields that
    can be used in conjunction with a `ResumeModified` action to modify the
    intercepted HTLC p2p message.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    533b9f2 View commit details
    Browse the repository at this point in the history
  70. itest: add itest for field modification HTLC interception response

    Implement an integration test where an HTLC is intercepted and the
    interception response modifies fields in the resultant p2p message.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1b28f47 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    b5efc0e View commit details
    Browse the repository at this point in the history
  72. Configuration menu
    Copy the full SHA
    ef2c980 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    857a16d View commit details
    Browse the repository at this point in the history
  74. channeldb+routing: persist first hop custom records

    With this commit we make sure the first hop custom records aren't lost
    on restart/resume of a payment, so we persist it as part of the
    PaymentCreationInfo struct.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ff1a455 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    0403b97 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    c70832a View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    69430ce View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    f927563 View commit details
    Browse the repository at this point in the history
  79. routing: skip amtInRange for custom HTLCs

    We might be trying to send an invoice amount that's greater than the size of the channel, but once you factor in the custom channel logic, an actual HTLC can be sent over the channel to pay that larger payment.
    
    As a result, we'll skip over this check if a have a custom HTLC.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ec2b2c6 View commit details
    Browse the repository at this point in the history
  80. lnd: use impl cfg TlvTrafficShaper

    GeorgeTsagk authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    6ac7509 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    5489b06 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    444ef19 View commit details
    Browse the repository at this point in the history
  83. Configuration menu
    Copy the full SHA
    1822b2f View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    b0be0ad View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    8cb8f58 View commit details
    Browse the repository at this point in the history
  86. lnwallet: add ChannelID method to LightningChannel

    In this commit we introduce a convenience method to LightningChannel
    to allow us to quickly grab the channel id. This will be important
    in upcoming commits where we need to remember the ChannelID to
    reconstruct update messages.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a40d363 View commit details
    Browse the repository at this point in the history
  87. lnwallet: track ChannelID on PaymentDescriptor

    In this commit we track the ChannelID on the PaymentDescriptor.
    This will be useful in upcoming commits that need to be able to
    reconstruct lnwire.Message values from PaymentDescriptors as the
    Messages that are exchanged to update channel state all include
    the ChannelID.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    391370d View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    fb841b6 View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    e4497b4 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    9904af5 View commit details
    Browse the repository at this point in the history
  91. lnwallet: add function to convert paymentDescriptor to LogUpdate

    Here we add a function that is capable of recovering LogUpdates from
    paymentDescriptors and we refactor the lnwallet code to use this
    rather than doing JIT inline construction of the LogUpdates.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    d364b9b View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    7f2fe2e View commit details
    Browse the repository at this point in the history
  93. htlcswitch: remove PaymentDescriptor from sendHTLCError's call signature

    This is done as part of a systematic removal of PaymentDescriptor from
    the mechanics of the htlcswitch package.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    22b2568 View commit details
    Browse the repository at this point in the history
  94. htlcswitch: remove PaymentDescriptor from settleHTLC's call signature

    This is done as part of a systematic removal of PaymentDescriptor from
    the mechanics of the htlcswitch package.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    160747c View commit details
    Browse the repository at this point in the history
  95. htlcswitch: remove PaymentDescriptor from the processExitHop's call s…

    …ignature
    
    This is part of a systematic removal of PaymentDescriptor from the mechanics
    of the htlcswitch package.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e7d545f View commit details
    Browse the repository at this point in the history
  96. htlcswitch: remove PaymentDescriptor from hodlHtlc

    This is part of a systematic removal of PaymentDescriptor from the
    mechanics of the htlcswitch package.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    dd9568b View commit details
    Browse the repository at this point in the history
  97. htlcswitch: remove PaymentDescriptor from processRemoteAdds call sign…

    …ature
    
    This is part of a systematic removal of PaymentDescriptor from the mechanics
    of the htlcswitch package.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    875d2e4 View commit details
    Browse the repository at this point in the history
  98. htlcswitch: remove PaymentDescriptor from processRemoteSettleFails ca…

    …ll signature
    
    This is part of a systematic removal of PaymentDescriptor from the mechanics
    of the htlcswitch package.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a3e127d View commit details
    Browse the repository at this point in the history
  99. htlcswitch+lnwallet: remove PaymentDescriptor from ReceiveRevocation …

    …returns
    
    This is part of a systematic removal of PaymentDescriptor from the public
    API of the lnwallet package. This marks the last change needed before we
    make the PaymentDescriptor structure private.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    870800b View commit details
    Browse the repository at this point in the history
  100. htlcswitch: remove PaymentDescriptor conversion from reforwardSettleF…

    …ails
    
    This is part of a systematic removal of PaymentDescriptor from the mechanics
    of the htlcswitch package.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    addf9e8 View commit details
    Browse the repository at this point in the history
  101. lnwallet: remove unused function PayDescsFromRemoteLogUpdates

    This function is no longer used as of the last commit and it is the
    last remaining leak of the PaymentDescriptor type through the public
    API.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    7e5f6b5 View commit details
    Browse the repository at this point in the history
  102. htlcswitch+lnwallet: quarantine paymentDescriptor to lnwallet

    The objective of this commit is to make paymentDescriptor a private
    data structure so we can quarantine it to the lnwallet package.
    To accomplish this we had to prevent it from leaking out via the
    arguments or return values of the public functions in lnwallet.
    This naturally had consequences for the htlcswitch package as we
    choose other mechanisms for tracking the data that paymentDescriptor
    was responsible for.
    
    Astoundingly, this was highly successful and allowed us to remove
    a ton of redundant code. The diff for this commit represents a
    substantial reduction in total lines of code as well as extraneous
    arguments and return values from key functions.
    
    This also sets the stage for future commits where we actually will
    be attempting to rid lnwallet of paymentDescriptor completely.
    ProofOfKeags authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f8979c0 View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    5686644 View commit details
    Browse the repository at this point in the history
  104. Configuration menu
    Copy the full SHA
    a753459 View commit details
    Browse the repository at this point in the history
  105. lnwallet: add new AuxFundingDesc struct

    This struct will house all the information we'll need to do a class of custom channels that relies primarily on adding additional items to the tapscript root of the HTLC/commitment/funding outputs.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f73f5f5 View commit details
    Browse the repository at this point in the history
  106. lnwallet: use AuxFundingDesc to populate all custom chan info

    With this commit, we'll now populate all the custom channel information within the OpenChannel and ChannelCommitment structs.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    5f5bbf9 View commit details
    Browse the repository at this point in the history
  107. funding: create new AuxFundingController interface

    In this commit, we make a new `AuxFundingController` interface capable of processing messages off the wire. In addition, we can use it to abstract away details w.r.t how we obtain a `AuxFundingDesc` for a given channel.
    
    We'll now use this whenever we get a channel funding request, to make sure we pass along the custom state that a channel may require.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    7f3aff9 View commit details
    Browse the repository at this point in the history
  108. Configuration menu
    Copy the full SHA
    723621b View commit details
    Browse the repository at this point in the history
  109. lnwallet: add TaprootInternalKey method to ShimIntent

    If this is a taproot channel, then we'll return the internal key which'll be useful to callers.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    0a7139c View commit details
    Browse the repository at this point in the history
  110. lnwallet: for PsbtIntent return the internal key in the POutput

    We also add a new assertion to the itests to ensure the field is being properly set.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    39b1080 View commit details
    Browse the repository at this point in the history
  111. funding+lnwallet: only blind tapscript root early in funding flow

    In this commit, we modify the aux funding work flow slightly. We won't
    be able to generate the full AuxFundingDesc until both sides has
    sent+received funding params. So we'll now only attempt to bind the
    tapscript root as soon as we send+recv the open_channel message.
    
    We'll now also make sure that we pass the tapscript root all the way
    down into the musig2 session creation.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f2dff16 View commit details
    Browse the repository at this point in the history
  112. funding+lnwallet: finish hook up new aux funding flow

    For the initiator, once we get the signal that the PSBT has been
    finalized, we'll call into the aux funder to get the funding desc. For
    the responder, once we receive the funding_created message, we'll do the
    same.
    
    We now also have local+remote aux leaves for the commitment transaction.
    
    Some old TODO comments that in retrospect aren't required anymore are
    removed as well.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    1402f08 View commit details
    Browse the repository at this point in the history
  113. Configuration menu
    Copy the full SHA
    18dca6f View commit details
    Browse the repository at this point in the history
  114. Configuration menu
    Copy the full SHA
    dbb87b4 View commit details
    Browse the repository at this point in the history
  115. lnwallet: add new AuxSigner interface to mirror SigPool

    In this commit, we add a new aux signer interface that's meant to mirror the SigPool. If present, this'll be used to (maybe) obtain signatures for second level HTLCs for certain classes of custom channels.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    6dda51d View commit details
    Browse the repository at this point in the history
  116. lnwallet: allow read-only access to HtlcView's HTLCs

    Due to a recent refactor, the HTLCs are no longer an exported type.
    Custom channels need access to those updates, so we provide them in a
    read-only manner.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    266aba8 View commit details
    Browse the repository at this point in the history
  117. Configuration menu
    Copy the full SHA
    6d3f8af View commit details
    Browse the repository at this point in the history
  118. Configuration menu
    Copy the full SHA
    b83783c View commit details
    Browse the repository at this point in the history
  119. Configuration menu
    Copy the full SHA
    4db0d76 View commit details
    Browse the repository at this point in the history
  120. multi: obtain+verify aux sigs for all second level HTLCs

    In this commit, we start to use the new AuxSigner to obtain+verify aux sigs for all second level HTLCs. This is similar to the existing SigPool, but we'll only attempt to do this if the AuxSigner is present (won't be for most channels).
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    69155bc View commit details
    Browse the repository at this point in the history
  121. lnwallet: sort sig jobs before submission

    To make sure we attempt to read the results of the sig batches in the
    same order they're processed, we sort them _before_ submitting them to
    the batch processor.
    Otherwise it might happen that we try to read on a result channel that
    was never sent on because we aborted due to an error.
    We also use slices.SortFunc now which doesn't use reflection and might
    be slightly faster.
    jharveyb authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    9c80088 View commit details
    Browse the repository at this point in the history
  122. Configuration menu
    Copy the full SHA
    23ef68a View commit details
    Browse the repository at this point in the history
  123. lnd: add aux data parser

    This commit adds an optional data parser that can inspect and in-place
    format custom data of certain RPC messages.
    We don't add an implementation of the interface itself, as that will be
    provided by external components when packaging up lnd as a bundle with
    other software.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f9debb1 View commit details
    Browse the repository at this point in the history
  124. Configuration menu
    Copy the full SHA
    b35dae7 View commit details
    Browse the repository at this point in the history
  125. Configuration menu
    Copy the full SHA
    c362754 View commit details
    Browse the repository at this point in the history
  126. Configuration menu
    Copy the full SHA
    153a133 View commit details
    Browse the repository at this point in the history
  127. invoices: add invoice htlc interceptor service

    This commit introduces a new invoice htlc interceptor service
    that intercepts invoice HTLCs during their settlement phase. It forwards
    HTLCs to a subscribed client to determine their settlement outcomes.
    
    This commit also introduces an interface to facilitate integrating the
    interceptor with other packages.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    acf0d0e View commit details
    Browse the repository at this point in the history
  128. invoices: integrate settlement interceptor with invoice registry

    This commit updates the invoice registry to utilize the settlement
    interceptor during the invoice settlement routine. It allows the
    interceptor to capture the invoice, providing interception clients an
    opportunity to determine the settlement outcome.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    4d9422a View commit details
    Browse the repository at this point in the history
  129. lnd: initialize invoice settlement interceptor at server startup

    This commit initiates the invoice settlement interceptor during the
    main server startup, assigning it a handle within the server.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f903e16 View commit details
    Browse the repository at this point in the history
  130. invoicesrpc: add HTLC modifier to invoices RPC server

    This commit integrates the HTLC modifier service into the
    invoices RPC server.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    7285dfa View commit details
    Browse the repository at this point in the history
  131. invoicesrpc: add HtlcModifier RPC endpoint and modifier RPC server

    This commit introduces a singleton invoice HTLC modifier RPC server and
    an endpoint to activate it. The server interfaces with the internal
    invoice HTLC modifier interpreter, handling the marshalling between RPC
    types and internal formats.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    e417250 View commit details
    Browse the repository at this point in the history
  132. lntest: add HtlcModifier support to node RPC harness

    This commit enhances the itest LND node harness to include support for
    the new `HtlcModifier` RPC endpoint.
    At the same time we move another method to the correct file.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ce7c053 View commit details
    Browse the repository at this point in the history
  133. Configuration menu
    Copy the full SHA
    109e27c View commit details
    Browse the repository at this point in the history
  134. Configuration menu
    Copy the full SHA
    c1aa44c View commit details
    Browse the repository at this point in the history
  135. lnrpc+rpcserver: encode custom records as custom channel data

    With this commit we encode the custom records as a TLV stream into the
    custom channel data field of the invoice HTLC.
    This allows the custom data parser to parse those records and replace it
    with human-readable JSON on the RPC interface.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    0cb599d View commit details
    Browse the repository at this point in the history
  136. itest: add basic invoice HTLC modifier integration test

    This commit introduces a basic integration test for the invoice
    HTLC modifier. The test covers scenarios where an invoice is settled with a
    payment that is less than the invoice amount, facilitated by the invoice
    HTLC modifier.
    ffranr authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    35ce62c View commit details
    Browse the repository at this point in the history
  137. Configuration menu
    Copy the full SHA
    6feb189 View commit details
    Browse the repository at this point in the history
  138. Configuration menu
    Copy the full SHA
    7e4f6f5 View commit details
    Browse the repository at this point in the history
  139. Configuration menu
    Copy the full SHA
    0cb211e View commit details
    Browse the repository at this point in the history
  140. Configuration menu
    Copy the full SHA
    2d8c4fd View commit details
    Browse the repository at this point in the history
  141. Configuration menu
    Copy the full SHA
    e2dae56 View commit details
    Browse the repository at this point in the history
  142. Configuration menu
    Copy the full SHA
    e536cfa View commit details
    Browse the repository at this point in the history
  143. Configuration menu
    Copy the full SHA
    8b97d4f View commit details
    Browse the repository at this point in the history
  144. Configuration menu
    Copy the full SHA
    fbbcecc View commit details
    Browse the repository at this point in the history
  145. peer: decorate delivery addr w/ internal key

    In this commit, we move to add the internal key to the delivery addr. This way, we give the aux chan closer the extra information it may need to properly augment the normal co-op close process.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    39e4e8d View commit details
    Browse the repository at this point in the history
  146. multi: add co-op close custom data to close update

    With this commit we populate additional information about the close
    outputs (including potential custom channel data) in the close update
    RPC message.
    This will allow custom channels to find out how the additional close
    outputs look like on chain and what data they might commit to.
    
    We also hook up the aux custom data formatter, so it can format the
    custom channel data to JSON.
    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    9ce7995 View commit details
    Browse the repository at this point in the history
  147. Configuration menu
    Copy the full SHA
    7857f38 View commit details
    Browse the repository at this point in the history
  148. multi: update PaymentAddr to use fn.Option

    Since it is allowed to not be set and so can lead to nil deref panics if
    it is a pointer.
    ellemouton authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    d2c745e View commit details
    Browse the repository at this point in the history
  149. invoices: init quit channel of modifier

    Also add atomic start and stop vars to prevent close of a closed
    channel.
    ellemouton authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    575d699 View commit details
    Browse the repository at this point in the history
  150. Configuration menu
    Copy the full SHA
    6df4f27 View commit details
    Browse the repository at this point in the history
  151. Configuration menu
    Copy the full SHA
    663f4c2 View commit details
    Browse the repository at this point in the history
  152. Configuration menu
    Copy the full SHA
    053b6bc View commit details
    Browse the repository at this point in the history
  153. routing: add htlcAmt to PaymentBandwidth method of TlvTrafficShaper

    This commit was added to the 0-19-staging branch recently and therefore
    didn't make it into a previous part yet. So it's unrelated to the
    changes in this part but is required for the whole custom channel saga.
    GeorgeTsagk authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    9d50e27 View commit details
    Browse the repository at this point in the history
  154. lnwire: modify TestLightningWireProtocol to use sub-tests

    This way, it's possible to run induvidual tests to target failures.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    035126b View commit details
    Browse the repository at this point in the history
  155. contractcourt: convert taprootBriefcase to use new tlv record type

    This commit doesn't yet go all the way to modify all the other records
    quite yet.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    900a0a1 View commit details
    Browse the repository at this point in the history
  156. lnwallet: add new aux resolver interface

    This will be used by external callers to modify the way we resolve
    contracts on chain. For a given contract, we'll store an extra "blob",
    that will later be presented during the sweeping phase.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    f4710ca View commit details
    Browse the repository at this point in the history
  157. contractcourt: add CommitBlob to taprootBriefcase

    This'll be used to store the extra resolution information for the
    commitment outputs.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    74d27f2 View commit details
    Browse the repository at this point in the history
  158. lnwallet+peer: move internalKeyForAddr to lnwallet package

    This way we can re-use it. We also make it slightly more generalized.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    07ee114 View commit details
    Browse the repository at this point in the history
  159. input: refactor all inputs to use MakeBaseInput, add opts

    In this commit, we refactor all the other constructors for the input to
    use MakeBaseInput. We also add a new set of functional options as well.
    This'll be useful later on to ensure that new options are properly
    applied to all the input types.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    fc02cd7 View commit details
    Browse the repository at this point in the history
  160. input: add ResolutionBlob method to inputKit

    We also update breachedOutput w/ the new API.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    080771d View commit details
    Browse the repository at this point in the history
  161. Configuration menu
    Copy the full SHA
    fef368b View commit details
    Browse the repository at this point in the history
  162. server+sweep: convert GenSweepScript to use new addr type

    We convert it to use lnwallet.AddrWithKey, as in the future, knowing the
    internal key for an address will be useful.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    3726cfa View commit details
    Browse the repository at this point in the history
  163. sweep: add new AuxSweeper interface

    In this commit, we add a new AuxSweeper interface. This'll take a set of
    inputs, and a change addr for the sweep transaction, then optionally
    return a new sweep output to be added to the sweep transaction.
    
    We also add a new NotifyBroadcast method.  This'll be used to notify
    that we're _about_ to broadcast a sweeping transaction. The set of
    inputs is passed in, which allows the caller to prepare for the ultimate
    broadcast of the sweeping transaction.
    
    We also add ExtraTxOut to BumpRequest pass fees to NotifyBroadcast. This
    allows the callee to know the total fee of the sweeping transaction.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    23e99dd View commit details
    Browse the repository at this point in the history
  164. sweep: update sweeper to use AuxSweeper to add extra change addr

    In this commit, we start to use the AuxSweeper (if present) to obtain a
    new extra change addr we should add to the sweeping transaction. With
    this, we'll take the set of inputs and our change addr, and then maybe
    gain a new change addr to add to the sweep transaction.
    
    The extra change addr will be treated as an extra required tx out,
    shared across all the relevant inputs. This'll also be used in
    NeedWalletInput to make sure that we add an extra input if needed to be
    able to pay for the change addr.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a21fb1b View commit details
    Browse the repository at this point in the history
  165. contractcourt: pause resolution for HTLCs w/ custom records

    This is a hold over until the aux resolution is finalized for HTLC
    outputs.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    678028c View commit details
    Browse the repository at this point in the history
  166. multi: hook up new aux interfaces

    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    d0501ab View commit details
    Browse the repository at this point in the history
  167. contractcourt: update GenSweepScript to return internal key

    For the upcoming aux sweeper integration, the internal key is needed for
    the call backs.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ded6959 View commit details
    Browse the repository at this point in the history
  168. Configuration menu
    Copy the full SHA
    4c16e55 View commit details
    Browse the repository at this point in the history
  169. contractcourt: integration aux sweeper to breach arb

    Similar to the sweeper, when we're about to make a new breach
    transaction, we ask the sweeper for a new change address, if it has one.
    Then when we go to publish, we notify broadcast.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    3d7d9d2 View commit details
    Browse the repository at this point in the history
  170. Configuration menu
    Copy the full SHA
    1a3c94a View commit details
    Browse the repository at this point in the history
  171. feature: add awareness of new taproot chans overlay feature bit

    This bit will be false by default in current production deployments.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    745f3a6 View commit details
    Browse the repository at this point in the history
  172. Configuration menu
    Copy the full SHA
    4efa39d View commit details
    Browse the repository at this point in the history
  173. Configuration menu
    Copy the full SHA
    72d437d View commit details
    Browse the repository at this point in the history
  174. Configuration menu
    Copy the full SHA
    4eaba9b View commit details
    Browse the repository at this point in the history
  175. Configuration menu
    Copy the full SHA
    3031f21 View commit details
    Browse the repository at this point in the history
  176. Configuration menu
    Copy the full SHA
    6619646 View commit details
    Browse the repository at this point in the history
  177. lnd: signal taproot overlay chans based on config

    We also add a sanity check to make sure they can't be signaled without
    the aux interfaces.
    Roasbeef authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    9f048b0 View commit details
    Browse the repository at this point in the history
  178. docs: update release notes

    GeorgeTsagk authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    00ed751 View commit details
    Browse the repository at this point in the history
  179. Configuration menu
    Copy the full SHA
    16edbf3 View commit details
    Browse the repository at this point in the history
  180. Configuration menu
    Copy the full SHA
    5c7be35 View commit details
    Browse the repository at this point in the history
  181. multi: bump btcd version.

    The new SignCompact return values had to be adopted across the
    code base.
    ziggie1984 authored and guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a5eca91 View commit details
    Browse the repository at this point in the history
  182. Configuration menu
    Copy the full SHA
    a3db214 View commit details
    Browse the repository at this point in the history
  183. lnwallet: fix import issue

    guggero committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    89c84f1 View commit details
    Browse the repository at this point in the history
  184. Configuration menu
    Copy the full SHA
    ca3bde9 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Configuration menu
    Copy the full SHA
    560b728 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58bf721 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9ca21ec View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. Configuration menu
    Copy the full SHA
    fe8b89d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5966150 View commit details
    Browse the repository at this point in the history
  3. lntest: avoid port collision on Tor listen port

    bitcoind now seems to listen on the -bind port at all times. So we need
    to make sure multiple instances don't collide by using a unique port.
    guggero committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    6aec5b0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    57e7b41 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    34ea769 View commit details
    Browse the repository at this point in the history
  6. docs: add release notes

    guggero committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    55e6460 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3b8b738 View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2024

  1. itest+lntest: stop using pointer to chainhash.Hash

    This commit fixes the methods used in `lntest` so they stop using
    pointers to chainhash.
    yyforyongyu authored and guggero committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    1aae94f View commit details
    Browse the repository at this point in the history
  2. lntest: remove unused return value

    yyforyongyu authored and guggero committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    56e05a3 View commit details
    Browse the repository at this point in the history
  3. lntest: add method AssertTxnsNotInMempool

    So we only need to do one `GetRawMempool` lookup when checking the
    exclusion of multiple txns.
    yyforyongyu authored and guggero committed Oct 21, 2024
    Configuration menu
    Copy the full SHA
    f09b638 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6f0d7f9 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2024

  1. Configuration menu
    Copy the full SHA
    afdd531 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b6363a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ed5d748 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    afb7532 View commit details
    Browse the repository at this point in the history
  5. htlcswitch: pass quit chans as unidirectional

    This is a requirement for replacing the quit channel with a Context.
    The Done() channel of a Context is always recv-only, so all users of
    that channel must not expect a bidirectional channel.
    jharveyb authored and guggero committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    753301c View commit details
    Browse the repository at this point in the history
  6. mod: bump fn to v1.2.3

    guggero committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    6feb741 View commit details
    Browse the repository at this point in the history
  7. multi: link quit can interrupt commitment signing

    In this commit, we make sig job handling when singing a next commitment
    non-blocking by allowing the shutdown of a channel link to prevent
    further waiting on sig jobs by the channel state machine. This addresses
    possible cases where the aux signer may be shut down via a separate quit
    signal, so the state machine could block indefinitely on receiving an
    update on a sig job.
    jharveyb authored and guggero committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    8703153 View commit details
    Browse the repository at this point in the history
  8. lnwallet: test link quit signal handling

    jharveyb authored and guggero committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    455cdff View commit details
    Browse the repository at this point in the history
  9. gitignore: ignore vscode workspace files

    jharveyb authored and guggero committed Oct 22, 2024
    Configuration menu
    Copy the full SHA
    d650829 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    b69fc15 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Configuration menu
    Copy the full SHA
    2999b37 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f401b4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    615f3d6 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2024

  1. lnwallet: fix closechannel for P2TR external addr

    If the delivery address is P2TR, function InternalKeyForAddr checks its
    existance in the wallet to return internal key for it in case it is a custom
    taproot channel. It used to return the error returned by wallet.AddressInfo.
    The error is now ignored if it is ErrAddressNotFound error. This fixes
    "lncli closechannel --delivery_addr <external p2tr address" case.
    starius authored and guggero committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    552d182 View commit details
    Browse the repository at this point in the history
  2. itest: coop_close_with_external_delivery with p2tr

    Customize the itest with the type of external delivery address. Test with P2TR
    address type in addition to P2WKPH.
    starius authored and guggero committed Oct 30, 2024
    Configuration menu
    Copy the full SHA
    593afee View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    906fa0b View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2024

  1. contractcourt: use t.Run in TestHtlcTimeoutResolver

    Along the way we refactor the test to eliminate some unnecessary line
    length.
    Roasbeef authored and guggero committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    941590d View commit details
    Browse the repository at this point in the history
  2. contractcourt: use the sweeper for HTLC offered remote timeout resolu…

    …tion
    
    In this commit, we bring the timeout resolver more in line with the
    success resolver by using the sweeper to handle the HTLC offered remote
    timeout outputs. These are outputs that we can sweep directly from the
    remote party's commitment transaction when they broadcast their version
    of the commitment transaction.
    
    With this change, we slim down the scope slightly by only doing this for
    anchor channels. Non-anchor channels will continue to use the
    utxonursery for this output type for now.
    Roasbeef authored and guggero committed Nov 8, 2024
    Configuration menu
    Copy the full SHA
    b2b5ec0 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    af08c42 View commit details
    Browse the repository at this point in the history