Update Simple Send to work with internal-apis rewards.

This commit is contained in:
Mark Beamer Jr 2020-02-04 00:32:43 -05:00
parent db8aa21b35
commit 1a30fb743b
No known key found for this signature in database
GPG key ID: 1C314FB89AD76973

View file

@ -158,7 +158,7 @@ func (c *Client) SimpleSend(toAddress string, amount float64) (*chainhash.Hash,
return nil, errors.Err(err)
}
hash, err := c.Client.SendFromMinConf("", decodedAddress, lbcAmount, 0)
hash, err := c.Client.SendToAddress(decodedAddress, lbcAmount)
if err != nil {
if err.Error() == "-6: Insufficient funds" {
err = errors.Err(errInsufficientFunds)