Skip to content

Commit

Permalink
add hex back to vout
Browse files Browse the repository at this point in the history
  • Loading branch information
papacarp committed Jun 14, 2018
1 parent 4684756 commit 37b8f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/insight/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ func (c *insightApiContext) DcrToInsightTxns(txs []*dcrjson.TxRawResult,
}
}

// Lookup addresses OPTION 2
// Note, this only gathers information from the database which does not include mempool transactions
_, addresses, value, err := c.BlockData.ChainDB.RetrieveAddressIDsByOutpoint(vin.Txid, vin.Vout)
if err == nil {
Expand Down Expand Up @@ -90,6 +89,7 @@ func (c *insightApiContext) DcrToInsightTxns(txs []*dcrjson.TxRawResult,
ScriptPubKey: apitypes.InsightScriptPubKey{
Addresses: v.ScriptPubKey.Addresses,
Type: v.ScriptPubKey.Type,
Hex: v.ScriptPubKey.Hex,
},
}
if !noAsm {
Expand Down

1 comment on commit 37b8f1f

@chappjc
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad you saw that!

Please sign in to comment.