Skip to content

Commit

Permalink
Fix balance inconsistency
Browse files Browse the repository at this point in the history
Sending the total promised value instead of a diff caused a behaviour where balance would be shown incorrectly.

Sending the diff fixes this.

Closes #1558
  • Loading branch information
vkuznecovas committed Jan 28, 2020
1 parent da67a10 commit 555d41c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/pingpong/exchange_message_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ func (emt *ExchangeMessageTracker) issueExchangeMessage(invoice crypto.Invoice)

defer emt.deps.Publisher.Publish(ExchangeMessageTopic, ExchangeMessageEventPayload{
Identity: emt.deps.Identity,
AmountPromised: amountToPromise,
AmountPromised: diff,
})

// TODO: we'd probably want to check if we have enough balance here
Expand Down

0 comments on commit 555d41c

Please sign in to comment.