Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug] Elements-23.2.2 with CT discount cannot send full balance less fee

Open
#1,358 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
blockchain

Research direction

Start at the sendtoaddress RPC path and reproduce the Elements 23.2.2 case using a whole liquid balance minus a 75–200 sat fee margin, with CT discount enabled and without subtractfeefromamount. Trace the fee and confidential-transaction discount handling; done means the call succeeds for that balance and no longer returns Insufficient funds.

Written by the indexing model from the issue text.

Description

needs reproduction

When sendtoaddress is called to send the whole liquid balance less margin for fee (75-200 sats) CT discount is not applied and results in:

error code: -6
error message:
Insufficient funds

https://github.com/ElementsProject/peerswap/pull/304#issuecomment-2303931071

We understand there is an option subtractfeefromamount, but prefer not to use it.

Dominant language
C++
Stars
1.2k
Forks
418
Avg merge
1d 12h
Merged PRs (30d)
13

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ElementsProject/elements

All issues in ElementsProject/elements

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.