Skip to content

Commit

Permalink
Updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Dec 24, 2020
1 parent a3c754d commit 79ab3cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func CreateTxWithChange(utxos []*Utxo, payToAddresses []*PayToAddress, opReturns
return nil, err
}

// Get the remainder missing
// Get the remainder missing (handle negative overflow safer)
totalToPay := totalPayToSatoshis + fee
if totalToPay >= totalSatoshis {
remainder = totalToPay - totalSatoshis
Expand Down

0 comments on commit 79ab3cd

Please sign in to comment.