Fixing go fmt

This commit is contained in:
Tomer Levy 2022-05-15 03:52:29 +03:00
parent 077ada84ec
commit b14dc75f6e

View File

@ -11,7 +11,6 @@ import (
"github.com/pkg/errors" "github.com/pkg/errors"
) )
func (s *server) CreateUnsignedTransactionVerbose(_ context.Context, request *pb.CreateUnsignedTransactionVerboseRequest) ( func (s *server) CreateUnsignedTransactionVerbose(_ context.Context, request *pb.CreateUnsignedTransactionVerboseRequest) (
*pb.CreateUnsignedTransactionsResponse, error) { *pb.CreateUnsignedTransactionsResponse, error) {
s.lock.Lock() s.lock.Lock()
@ -51,7 +50,7 @@ func (s *server) createUnsignedTransactionVerbose(inputs []externalapi.DomainOut
totalSpend += payment.Amount totalSpend += payment.Amount
} }
changeSompi := totalValue - totalSpend - feePerInput * uint64(len(selectedUTXOs)) changeSompi := totalValue - totalSpend - feePerInput*uint64(len(selectedUTXOs))
if changeSompi < 0 { if changeSompi < 0 {
return nil, errors.New("Total input is not enough to cover total output and fees") return nil, errors.New("Total input is not enough to cover total output and fees")
} }