Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
a89e24f
lnwallet: add ChannelID method to LightningChannel
ProofOfKeags Jun 6, 2024
df3c6b7
lnwallet: track ChannelID on PaymentDescriptor
ProofOfKeags Jun 6, 2024
5deb4c2
htlcswitch+lnwallet: fix OnionBlob to 1366 bytes
ProofOfKeags Jun 15, 2024
5505b6d
htlcswitch: change sendMalformedHTLCError to take array instead of slice
ProofOfKeags Aug 20, 2024
721a0c5
lnwire+htlcswitch: change NewInvalidBlinding to use array instead of …
ProofOfKeags Aug 20, 2024
1e2bf3e
lnwallet: add function to convert paymentDescriptor to LogUpdate
ProofOfKeags Jun 15, 2024
0fb29b2
channeldb: add convenience functions for generating Source/Dest Refs
ProofOfKeags Aug 16, 2024
877d29c
htlcswitch: remove PaymentDescriptor from sendHTLCError's call signature
ProofOfKeags Aug 16, 2024
07647fe
htlcswitch: remove PaymentDescriptor from settleHTLC's call signature
ProofOfKeags Aug 16, 2024
a0818a0
htlcswitch: remove PaymentDescriptor from the processExitHop's call s…
ProofOfKeags Aug 16, 2024
d881809
htlcswitch: remove PaymentDescriptor from hodlHtlc
ProofOfKeags Aug 16, 2024
aa38041
htlcswitch: remove PaymentDescriptor from processRemoteAdds call sign…
ProofOfKeags Aug 16, 2024
1ae5705
htlcswitch: remove PaymentDescriptor from processRemoteSettleFails ca…
ProofOfKeags Aug 16, 2024
957557a
htlcswitch+lnwallet: remove PaymentDescriptor from ReceiveRevocation …
ProofOfKeags Aug 16, 2024
dc60f78
htlcswitch: remove PaymentDescriptor conversion from reforwardSettleF…
ProofOfKeags Aug 16, 2024
27ff5f0
lnwallet: remove unused function PayDescsFromRemoteLogUpdates
ProofOfKeags Aug 16, 2024
4fadbb0
htlcswitch+lnwallet: quarantine paymentDescriptor to lnwallet
ProofOfKeags Jun 14, 2024
93d17a4
lnwallet: remove unnecessary chanID argument form unsignedLocalUpdates
ProofOfKeags Jun 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions channeldb/forwarding_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,27 @@ func NewFwdPkg(source lnwire.ShortChannelID, height uint64,
}
}

// SourceRef is a convenience method that returns an AddRef to this forwarding
// package for the index in the argument. It is the caller's responsibility
// to ensure that the index is in bounds.
func (f *FwdPkg) SourceRef(i uint16) AddRef {
return AddRef{
Height: f.Height,
Index: i,
}
}

// DestRef is a convenience method that returns a SettleFailRef to this
// forwarding package for the index in the argument. It is the caller's
// responsibility to ensure that the index is in bounds.
func (f *FwdPkg) DestRef(i uint16) SettleFailRef {
return SettleFailRef{
Source: f.Source,
Height: f.Height,
Index: i,
}
}

// ID returns an unique identifier for this package, used to ensure that sphinx
// replay processing of this batch is idempotent.
func (f *FwdPkg) ID() []byte {
Expand Down
Loading