Skip to content

Commit

Permalink
lnwallet: start fixing up tests
Browse files Browse the repository at this point in the history
remove all traces of PaymentDescriptor from test cases as well
  • Loading branch information
calvinrzachman committed Feb 15, 2023
1 parent 21bf87e commit 9fc2dbd
Show file tree
Hide file tree
Showing 4 changed files with 714 additions and 584 deletions.
8 changes: 4 additions & 4 deletions lnwallet/channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -4770,12 +4770,12 @@ func (lc *LightningChannel) RevokeCurrentCommitment() (*lnwire.RevokeAndAck,
// that was revoked.
// 2. The LogEntry of any Add HTLCs that were locked in by this
// revocation.
// 3. The LogEntry of any Settle/Fail HTLCs that were locked in by
// 3. The (Child)LogEntry of any Settle/Fail HTLCs that were locked in by
// this revocation.
// 4. The set of HTLCs present on the current valid commitment transaction
// for the remote party.
func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) (
*channeldb.FwdPkg, []LogEntry, []LogEntry,
*channeldb.FwdPkg, []LogEntry, []ChildLogEntry,
[]channeldb.HTLC, error) {

lc.Lock()
Expand Down Expand Up @@ -4829,7 +4829,7 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) (
var (
addsToForward []LogEntry
addUpdates []channeldb.LogUpdate
settleFailsToForward []LogEntry
settleFailsToForward []ChildLogEntry
settleFailUpdates []channeldb.LogUpdate
)

Expand Down Expand Up @@ -4912,7 +4912,7 @@ func (lc *LightningChannel) ReceiveRevocation(revMsg *lnwire.RevokeAndAck) (

logEntry.MarkForwarded()
settleFailsToForward = append(
settleFailsToForward, logEntry,
settleFailsToForward, childEntry,
)

default:
Expand Down
Loading

0 comments on commit 9fc2dbd

Please sign in to comment.