lnrpc+rpcserver: rename ScriptPubkey to PkScript on Utxo msg

This commit is contained in:
Conner Fromknecht
2019-02-11 13:02:25 -08:00
parent 3fa9d81a41
commit 34e36e9daa
6 changed files with 569 additions and 569 deletions

View File

@@ -20,7 +20,7 @@ type Utxo struct {
Type lnrpc.AddressType `json:"address_type"`
Address string `json:"address"`
AmountSat int64 `json:"amount_sat"`
ScriptPubkey string `json:"script_pubkey"`
PkScript string `json:"pk_script"`
OutPoint OutPoint `json:"outpoint"`
Confirmations int64 `json:"confirmations"`
}
@@ -33,7 +33,7 @@ func NewUtxoFromProto(utxo *lnrpc.Utxo) *Utxo {
Type: utxo.Type,
Address: utxo.Address,
AmountSat: utxo.AmountSat,
ScriptPubkey: utxo.ScriptPubkey,
PkScript: utxo.PkScript,
OutPoint: NewOutPointFromProto(utxo.Outpoint),
Confirmations: utxo.Confirmations,
}