adjust account balance

minor fix
This commit is contained in:
Niko Storni 2019-08-21 20:01:24 +02:00
parent 1b9ed266e0
commit 7a7de03c0f
2 changed files with 4 additions and 4 deletions

View file

@ -55,7 +55,7 @@ func (s *Sync) walletSetup() error {
} else if balanceResp == nil {
return errors.Err("no response")
}
balance, err := strconv.ParseFloat(balanceResp.Total.String(), 64)
balance, err := strconv.ParseFloat(balanceResp.Available.String(), 64)
if err != nil {
return errors.Err(err)
}
@ -188,7 +188,7 @@ func (s *Sync) ensureEnoughUTXOs() error {
return errors.Err("no response")
}
balanceAmount, err := strconv.ParseFloat(balance.Total.String(), 64)
balanceAmount, err := strconv.ParseFloat(balance.Available.String(), 64)
if err != nil {
return errors.Err(err)
}
@ -312,7 +312,7 @@ func (s *Sync) ensureChannelOwnership() error {
} else if balanceResp == nil {
return errors.Err("no response")
}
balance, err := decimal.NewFromString(balanceResp.Total.String())
balance, err := decimal.NewFromString(balanceResp.Available.String())
if err != nil {
return errors.Err(err)
}

View file

@ -988,7 +988,7 @@ func (s *Sync) processVideo(v video) (err error) {
ClaimID: summary.ClaimID,
ClaimName: summary.ClaimName,
Size: v.Size(),
MetaDataVersion: 2,
MetaDataVersion: LatestMetadataVersion,
})
if err != nil {
logUtils.SendErrorToSlack("Failed to mark video on the database: %s", errors.FullTrace(err))