Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Fix GNT conversion when there's GNT top up in the meantime #3923

Merged
merged 2 commits into from
Mar 8, 2019

Conversation

Krigpl
Copy link
Contributor

@Krigpl Krigpl commented Feb 22, 2019

Previously when one topped up the account twice in quick succession the second amount of GNT would not convert.
That is fixed now.

@Krigpl Krigpl requested a review from shadeofblue February 22, 2019 14:18
@ghost ghost assigned Krigpl Feb 22, 2019
@ghost ghost added the in progress label Feb 22, 2019
@@ -108,7 +108,7 @@ def __init__(self, datadir: Path, config) -> None:
self._payment_processor: Optional[PaymentProcessor] = None

self._gnt_faucet_requested = False
self._gnt_conversion_status = ConversionStatus.NONE
self._gnt_conversion_status = (ConversionStatus.NONE, None)
Copy link
Contributor

Choose a reason for hiding this comment

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

@Krigpl it would be good to either add a type hint for the second value or maybe just add a comment what it is when not None ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

image

Copy link
Contributor

@shadeofblue shadeofblue left a comment

Choose a reason for hiding this comment

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

incredible_contribution

@codecov
Copy link

codecov bot commented Feb 26, 2019

Codecov Report

Merging #3923 into b0.19 will increase coverage by 0.02%.
The diff coverage is 84%.

@@            Coverage Diff             @@
##            b0.19    #3923      +/-   ##
==========================================
+ Coverage   89.22%   89.24%   +0.02%     
==========================================
  Files         205      205              
  Lines       18310    18314       +4     
==========================================
+ Hits        16337    16345       +8     
+ Misses       1973     1969       -4

@Krigpl Krigpl merged commit 638c0b3 into b0.19 Mar 8, 2019
@Krigpl Krigpl deleted the convert_topup branch March 8, 2019 10:06
@ghost ghost removed the in progress label Mar 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants