mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-24 14:35:53 +00:00
Fixing go fmt
This commit is contained in:
parent
077ada84ec
commit
b14dc75f6e
@ -11,7 +11,6 @@ import (
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
|
||||
func (s *server) CreateUnsignedTransactionVerbose(_ context.Context, request *pb.CreateUnsignedTransactionVerboseRequest) (
|
||||
*pb.CreateUnsignedTransactionsResponse, error) {
|
||||
s.lock.Lock()
|
||||
@ -51,7 +50,7 @@ func (s *server) createUnsignedTransactionVerbose(inputs []externalapi.DomainOut
|
||||
totalSpend += payment.Amount
|
||||
}
|
||||
|
||||
changeSompi := totalValue - totalSpend - feePerInput * uint64(len(selectedUTXOs))
|
||||
changeSompi := totalValue - totalSpend - feePerInput*uint64(len(selectedUTXOs))
|
||||
if changeSompi < 0 {
|
||||
return nil, errors.New("Total input is not enough to cover total output and fees")
|
||||
}
|
||||
@ -124,4 +123,4 @@ func protoPaymentToLibPayment(request_outputs []*pb.PaymentOutput, prefix util.B
|
||||
})
|
||||
}
|
||||
return outputs, nil
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user