mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-11-26 15:35:55 +00:00
Raising error if cannot build exactly
This commit is contained in:
parent
e7b1cd0ee2
commit
077ada84ec
@ -42,6 +42,9 @@ func (s *server) createUnsignedTransactionVerbose(inputs []externalapi.DomainOut
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if len(selectedUTXOs) < len(inputs) {
|
||||
return nil, errors.New("Some UTXOs are unavailable")
|
||||
}
|
||||
|
||||
totalSpend := uint64(0)
|
||||
for _, payment := range payments {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user