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"
|
"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")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user