Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

swap: return the balance in swap.Balance for an unconnected but prior peer #1826

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

ralph-pichler
Copy link
Member

@ralph-pichler ralph-pichler commented Sep 26, 2019

This PR fixes the swap_Balance call to return the last balance of a currently disconnected (but previously connected to) peer instead of a not found error. This behaviour was accidentally changed during the peer refactoring PR. A test for this was also added.

Copy link
Contributor

@holisticode holisticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like Balances is unaffected.

Copy link
Contributor

@Eknir Eknir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ralph-pichler ralph-pichler merged commit c3ecf79 into master Sep 27, 2019
@skylenet skylenet added this to the 0.5.0 milestone Sep 27, 2019
@ralph-pichler ralph-pichler deleted the swap_balance_unconnected_peer branch October 1, 2019 08:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants