Browse Source

Version 2.1.4-0.alpha.atlantis+04102018

webwallet
Captain Dero 3 years ago
parent
commit
82347c0146
2 changed files with 11 additions and 10 deletions
  1. +1
    -1
      config/version.go
  2. +10
    -9
      walletapi/wallet.go

+ 1
- 1
config/version.go View File

@@ -20,4 +20,4 @@ import "github.com/blang/semver"

// right now it has to be manually changed
// do we need to include git commitsha??
var Version = semver.MustParse("2.1.3-0.alpha.atlantis+28092018")
var Version = semver.MustParse("2.1.4-0.alpha.atlantis+04102018")

+ 10
- 9
walletapi/wallet.go View File

@@ -903,16 +903,17 @@ func (w *Wallet) Get_Payments_TXID(txid []byte) (entry Entry) {
rlog.Warnf("Error while reading available funds index index %d err %s", current_index, err)
continue
}
if bytes.Compare(txid, tx.TXdata.TXID[:]) == 0 {

entry.Index_Global = current_index
entry.Height = tx.TXdata.Height
entry.TopoHeight = tx.TXdata.TopoHeight
entry.TXID = tx.TXdata.TXID
entry.Amount += tx.WAmount // merge all amounts ( if it was provided in different outputs)
entry.PaymentID = tx.WPaymentID
entry.Status = 0
entry.Unlock_Time = tx.TXdata.Unlock_Height
entry.Index_Global = current_index
entry.Height = tx.TXdata.Height
entry.TopoHeight = tx.TXdata.TopoHeight
entry.TXID = tx.TXdata.TXID
entry.Amount += tx.WAmount // merge all amounts ( if it was provided in different outputs)
entry.PaymentID = tx.WPaymentID
entry.Status = 0
entry.Unlock_Time = tx.TXdata.Unlock_Height
}
}

return


Loading…
Cancel
Save