Skip to content

Commit

Permalink
Prioritize lookedUpUTxO in case of conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed Jun 27, 2024
1 parent 1272251 commit f5214c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/wallet/src/Cardano/Wallet.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,8 @@ balanceTx wrk pp timeTranslation partialTx = do
utxoIndex
(defaultChangeAddressGen argGenChange)
changeState
(over #extraUTxO (<> lookedUpUTxO) partialTx)
-- In case of conflicts, the UTxO looked up from the node will win.
(over #extraUTxO (lookedUpUTxO <>) partialTx)

return tx
where
Expand Down

0 comments on commit f5214c2

Please sign in to comment.