zcash / zcash

Zcash - Internet Money

Home Page:https://z.cash/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`gettransaction` reports incorrect fee when `z_sendmany` has a mix of Sapling and Orchard outputs.

nuttycom opened this issue · comments

Describe the issue

Output value sent to the orchard pool is reported as part of the fee by gettransaction.

Can you reliably reproduce the issue?

If so, please list the steps to reproduce below:

  1. Start with a wallet with a single Sapling note.
  2. execute z_sendmany with multiple recipients, some of them having Orchard addresses
  3. Run gettransaction and observe the fee

Expected behaviour

The fee should be the value of the input minus the value of all outputs

Actual behaviour + errors

The fee is shown as the value of the input minus the value of the Sapling outputs

The version of Zcash you were using:

5.8.0