Skip to content

Commit

Permalink
change the type from int64 to int
Browse files Browse the repository at this point in the history
  • Loading branch information
tok-kkk committed Jan 17, 2024
1 parent e7a6e5b commit b561f32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btc/fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TxVirtualSize(tx *wire.MsgTx) int {
}

// TotalFee returns the total amount fees used by the given tx.
func TotalFee(tx *wire.MsgTx, fetcher txscript.PrevOutputFetcher) int64 {
func TotalFee(tx *wire.MsgTx, fetcher txscript.PrevOutputFetcher) int {
fees := int64(0)
for _, in := range tx.TxIn {
output := fetcher.FetchPrevOutput(in.PreviousOutPoint)
Expand All @@ -59,7 +59,7 @@ func TotalFee(tx *wire.MsgTx, fetcher txscript.PrevOutputFetcher) int64 {
for _, out := range tx.TxOut {
fees -= out.Value
}
return fees
return int(fees)
}

type FeeSuggestion struct {
Expand Down

0 comments on commit b561f32

Please sign in to comment.