Skip to content

Commit

Permalink
matching what now
Browse files Browse the repository at this point in the history
  • Loading branch information
chappjc committed Feb 25, 2024
1 parent 8d4a465 commit 3ccf010
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/dcrdata/internal/api/apiroutes.go
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,11 @@ func (c *appContext) addressIoCsv(crlf bool, w http.ResponseWriter, r *http.Requ
strDirection = "-1"
}

var matchingTx string
if r.MatchingTxHash != nil {
matchingTx = r.MatchingTxHash.String()
}

err = writer.Write([]string{
r.TxHash.String(),
strDirection,
Expand All @@ -1675,7 +1680,7 @@ func (c *appContext) addressIoCsv(crlf bool, w http.ResponseWriter, r *http.Requ
strconv.FormatFloat(dcrutil.Amount(r.Value).ToCoin(), 'f', -1, 64),
strconv.FormatInt(r.TxBlockTime, 10),
txhelpers.TxTypeToString(int(r.TxType)),
r.MatchingTxHash.String(),
matchingTx,
})
if err != nil {
return // too late to write an error code
Expand Down

0 comments on commit 3ccf010

Please sign in to comment.