Skip to content

Commit

Permalink
webui/transactions: use new summary flow
Browse files Browse the repository at this point in the history
  • Loading branch information
RaghavSood committed Jun 11, 2024
1 parent 8b9fd48 commit bf359b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/transactions.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<tr>
<td class="px-4 py-2 border-b border-slate-700">
<a class="text-sky-400/70 break-all hover:underline hover:decoration-dotted hover:text-slate-200" href="/transaction/{{ .Txid }}">{{ .Txid }}</a>
{{ if eq .Vout -1 }}
{{ if eq .Coinbase true }}
⛏️
{{ end }}
</td>
Expand Down
4 changes: 2 additions & 2 deletions webui/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

func (w *WebUI) Transactions(c *gin.Context) {
recentTransactions, err := w.db.GetTransactionLossSummary(500)
recentTransactions, err := w.db.GetTransactionSummary(500)
if err != nil {
log.Error().Err(err).Msg("Failed to get recent transactions")
c.AbortWithError(http.StatusInternalServerError, err)
Expand Down Expand Up @@ -63,7 +63,7 @@ func (w *WebUI) Transaction(c *gin.Context) {
return
}

txSummary, err := w.db.GetTransactionLossSummaryForTxid(hash)
txSummary, err := w.db.GetTransactionSummaryForTxid(hash)
if err != nil {
log.Error().Err(err).Msg("Failed to get transaction summary")
c.AbortWithError(http.StatusInternalServerError, err)
Expand Down

0 comments on commit bf359b9

Please sign in to comment.