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

bug: Unreasonable InsufficientFunds error #1223

Closed
nuttycom opened this issue Mar 4, 2024 · 1 comment
Closed

bug: Unreasonable InsufficientFunds error #1223

nuttycom opened this issue Mar 4, 2024 · 1 comment

Comments

@nuttycom
Copy link
Contributor

nuttycom commented Mar 4, 2024

Reported by @LukasKorba

▿ ZcashError
  - rustCreateToAddress : "Error while sending funds: Insufficient balance (have 9422794, need 165000 including fee)"

A likely culprit is incorrect handling of dust inputs in https://github.com/zcash/librustzcash/blob/main/zcash_client_backend/src/fees/zip317.rs#L118-L145 - if there exists a condition here where excessive dust inputs are being selected, even though the non-dust inputs are sufficient to pay for a transaction, then this could result in an InsufficientFunds error as a consequence of the test here: https://github.com/zcash/librustzcash/blob/main/zcash_client_backend/src/data_api/wallet/input_selection.rs#L478-L487

@nuttycom nuttycom added the bug label Mar 4, 2024
@nuttycom nuttycom added this to the Librustzcash Zashi 1.0 milestone Mar 4, 2024
@nuttycom
Copy link
Contributor Author

Fixed in #1312, real fix postponed to #1316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant