Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fee calculation, and simplify 'fairy dust' to just 'dust' #157

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

AArnott
Copy link
Collaborator

@AArnott AArnott commented Nov 22, 2023

No description provided.

It led to a negative balance shown to the user when the wallet had no funds in it.
It also included fees for notes that were not yet mature, contrary to its documentation.
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (44280ed) 75.57% compared to head (fb00220) 75.57%.

Files Patch % Lines
src/Nerdbank.Zcash/RustBindings/LightWallet.cs 0.00% 22 Missing ⚠️
src/Nerdbank.Zcash/LightWalletClient.cs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #157   +/-   ##
=======================================
  Coverage   75.57%   75.57%           
=======================================
  Files         150      150           
  Lines        8926     8926           
  Branches      811      811           
=======================================
  Hits         6746     6746           
  Misses       1981     1981           
  Partials      199      199           
Flag Coverage Δ
LinuxHost 75.57% <0.00%> (ø)
Release 75.57% <0.00%> (ø)
WindowsHost 75.57% <0.00%> (ø)
macOSHost 75.57% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@AArnott AArnott merged commit 753ebb6 into main Nov 23, 2023
5 of 6 checks passed
@AArnott AArnott deleted the fee_and_dust branch November 23, 2023 00:00
AArnott added a commit to nerdcash/zingolib that referenced this pull request Nov 23, 2023
This is a port from the functionality originally added to Nerdbank.Zcash in [this change](nerdcash/Nerdbank.Cryptocurrencies#150) and subsequently fixed in [this change](nerdcash/Nerdbank.Cryptocurrencies#157).
AArnott added a commit to nerdcash/zingolib that referenced this pull request Nov 23, 2023
This is a port from the functionality originally added to Nerdbank.Zcash in [this change](nerdcash/Nerdbank.Cryptocurrencies#150) and subsequently fixed in [this change](nerdcash/Nerdbank.Cryptocurrencies#157).
AArnott added a commit to nerdcash/zingolib that referenced this pull request Nov 23, 2023
This is a port from the functionality originally added to Nerdbank.Zcash in [this change](nerdcash/Nerdbank.Cryptocurrencies#150) and subsequently fixed in [this change](nerdcash/Nerdbank.Cryptocurrencies#157).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant