Skip to content

Commit

Permalink
tweak comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Feb 28, 2022
1 parent a4189e0 commit 403fba6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/core/src/Cardano/Wallet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1822,13 +1822,18 @@ balanceTransaction
-- existing 'computeSelectionLimit', but subtract the size
-- of the partial tx from 'getTxMaxSize'.
--
-- FIXME: This will double-count inputs and outputs.
-- FIXME: This will double-count inputs and outputs, which
-- could make balancing of large txs fail when they
-- shouldn't.
--
--
-- We may not be able to remove the inputs and outputs
-- before subtracting, however. The size of the inputs in
-- the partial tx does not include witnesses. The outputs in
-- the partial tx could also be bigger than coin-selection
-- would estimate because of datum hashes.
--
--
let
fixedSize = BS.length $ serialisedTx partialTx
tweak (Quantity maxSize) = Quantity
Expand Down

0 comments on commit 403fba6

Please sign in to comment.