var (
ErrInsufficient = errors.New("reservation found insufficient funds")
ErrImmature = errors.New("reservation found immature funds")
+ ErrVoteLock = errors.New("Locked by the vote")
ErrReserved = errors.New("reservation found outputs already reserved")
ErrMatchUTXO = errors.New("can't find utxo with given hash")
ErrReservation = errors.New("couldn't find reservation")
}
if optAmount+reservedAmount < amount {
+ if vote != nil {
+ return nil, ErrVoteLock
+ }
return nil, ErrImmature
}