fix typo and spacing

This commit is contained in:
João Bordalo
2024-09-04 17:24:26 +01:00
parent b5e1ea4d57
commit 8d339cd3e7
4 changed files with 5 additions and 5 deletions

View File

@@ -208,7 +208,7 @@ func coinSelect(vtxos []vtxo, amount uint64, sortByExpirationTime bool) ([]vtxo,
} }
if selectedAmount < amount { if selectedAmount < amount {
return nil, 0, fmt.Errorf("not enough funds to cover amount%d", amount) return nil, 0, fmt.Errorf("not enough funds to cover amount %d", amount)
} }
change := selectedAmount - amount change := selectedAmount - amount

View File

@@ -182,7 +182,7 @@ func coinSelect(vtxos []vtxo, amount uint64, sortByExpirationTime bool) ([]vtxo,
} }
if selectedAmount < amount { if selectedAmount < amount {
return nil, 0, fmt.Errorf("not enough funds to cover amount%d", amount) return nil, 0, fmt.Errorf("not enough funds to cover amount %d", amount)
} }
change := selectedAmount - amount change := selectedAmount - amount

View File

@@ -48,7 +48,7 @@ func CoinSelect(
} }
if selectedAmount < amount { if selectedAmount < amount {
return nil, 0, fmt.Errorf("not enough funds to cover amount%d", amount) return nil, 0, fmt.Errorf("not enough funds to cover amount %d", amount)
} }
change := selectedAmount - amount change := selectedAmount - amount

View File

@@ -673,8 +673,8 @@ func (s *covenantlessService) startFinalization() {
signedTree, err := coordinator.SignTree() signedTree, err := coordinator.SignTree()
if err != nil { if err != nil {
round.Fail(fmt.Errorf("failed to aggragate tree signatures: %s", err)) round.Fail(fmt.Errorf("failed to aggregate tree signatures: %s", err))
log.WithError(err).Warn("failed aggragate tree signatures") log.WithError(err).Warn("failed to aggregate tree signatures")
return return
} }