Skip to content

orchestrator, bitwindow: MAX to one of many pays the fee - #3068

Merged
octobocto merged 3 commits into
masterfrom
qa/w3-max-fee-payer
Nov 28, 2026
Merged

octobocto merged 3 commits into
masterfrom
qa/w3-max-fee-payer

Conversation

@octobocto

Copy link
Copy Markdown
Collaborator

MAX on one of many recipients now takes the fee out of that recipient's amount. The send names that recipient in a new subtract_fee_from_address field, and Core, the fixed-fee path and Electrum subtract the fee from that output only.

  • Two-recipient MAX at a fractional fee rate could not send. The Summary showed "The preselected coins total amount does not cover the transaction target". MAX put the fee on top, and Core rounds the fee of each input up, so 101 coins at 2.501 sat/vB came out about 79 sats short. Caused by ad1eb7f (fee on top for many recipients), shown since 27364e1 sent fractional rates to Core. Repro: regtest with estimatesmartfee at 2.501 sat/vB, 100+ coins, Send to 2 recipients, Next block, MAX on the second.
  • After the fix, the same send spent 101 coins, paid a 17,327-sat fee at 6,928 vB (2.501 sat/vB), sent exactly 1 BTC to the first recipient, and left the wallet at 0.
Before After
before after
before after
after

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T17:53:38.360384Z 0cb9337 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db6a49d81e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

A send to many destinations can name the one that pays the fee.
Core subtracts it from that output only; the fixed-fee and Electrum
paths reduce that output.
MAX with a fee on top failed at a fractional rate: Core rounds the
fee of each input up, so the amount was short by about 1 sat per coin.
@octobocto
octobocto merged commit a46a877 into master Nov 28, 2026
@octobocto
octobocto deleted the qa/w3-max-fee-payer branch November 28, 2026 17:52
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.

1 participant