Skip to content

Commit

Permalink
Add missing skip-txmeta flag in the /transactions/ endpoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
urvisavla committed Nov 11, 2024
1 parent edf3eed commit ade7f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/horizon/internal/httpx/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ func (r *Router) addRoutes(config *RouterConfig, rateLimiter *throttled.HTTPRate
r.Route("/transactions", func(r chi.Router) {
r.With(historyMiddleware).Method(http.MethodGet, "/", streamableHistoryPageHandler(ledgerState, actions.GetTransactionsHandler{LedgerState: ledgerState, SkipTxMeta: config.SkipTxMeta}, streamHandler))
r.Route("/{tx_id}", func(r chi.Router) {
r.With(historyMiddleware).Method(http.MethodGet, "/", ObjectActionHandler{actions.GetTransactionByHashHandler{}})
r.With(historyMiddleware).Method(http.MethodGet, "/", ObjectActionHandler{actions.GetTransactionByHashHandler{SkipTxMeta: config.SkipTxMeta}})
r.With(historyMiddleware).Method(http.MethodGet, "/effects", streamableHistoryPageHandler(ledgerState, actions.GetEffectsHandler{LedgerState: ledgerState}, streamHandler))
r.With(historyMiddleware).Method(http.MethodGet, "/operations", streamableHistoryPageHandler(ledgerState, actions.GetOperationsHandler{
LedgerState: ledgerState,
Expand Down

0 comments on commit ade7f8d

Please sign in to comment.