update wire and remove script from utxo
parent
fee967116d
commit
e9c7acc4c4
|
@ -55,7 +55,7 @@
|
|||
branch = "master"
|
||||
name = "github.com/syscoin/btcd"
|
||||
packages = ["wire"]
|
||||
revision = "a1ab7352ef7f489c68229b7dcef6d9b986f3e560"
|
||||
revision = "0d1068fa77988578d9f2b067d5e2fb72eda50965"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)}
|
||||
|
|
Loading…
Reference in New Issue