update wire and remove script from utxo

pull/541/head
sidhujag 2020-09-17 15:45:50 -07:00
parent fee967116d
commit e9c7acc4c4
3 changed files with 1 additions and 4 deletions

2
Gopkg.lock generated
View File

@ -55,7 +55,7 @@
branch = "master"
name = "github.com/syscoin/btcd"
packages = ["wire"]
revision = "a1ab7352ef7f489c68229b7dcef6d9b986f3e560"
revision = "0d1068fa77988578d9f2b067d5e2fb72eda50965"
[[projects]]
branch = "master"

View File

@ -266,7 +266,6 @@ type Utxo struct {
Locktime uint32 `json:"lockTime,omitempty"`
Coinbase bool `json:"coinbase,omitempty"`
AssetInfo *AssetInfo `json:"assetInfo,omitempty"`
Script string `json:"script,omitempty"`
}
// Utxos result for API

View File

@ -1699,7 +1699,6 @@ func (w *Worker) getAddrDescUtxo(addrDesc bchain.AddressDescriptor, ba *bchain.A
AmountSat: (*bchain.Amount)(&vout.ValueSat),
Locktime: bchainTx.LockTime,
Coinbase: coinbase,
Script: hex.EncodeToString(script),
}
if vout.AssetInfo != nil {
utxoTmp.AssetInfo = &AssetInfo{AssetGuid: vout.AssetInfo.AssetGuid, ValueSat: (*bchain.Amount)(vout.AssetInfo.ValueSat)}
@ -1764,7 +1763,6 @@ func (w *Worker) getAddrDescUtxo(addrDesc bchain.AddressDescriptor, ba *bchain.A
Height: int(utxo.Height),
Confirmations: confirmations,
Coinbase: coinbase,
Script: hex.EncodeToString(script),
}
if utxo.AssetInfo != nil {
utxoTmp.AssetInfo = &AssetInfo{AssetGuid: utxo.AssetInfo.AssetGuid, ValueSat: (*bchain.Amount)(utxo.AssetInfo.ValueSat)}