Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: args in stats api #28

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions integrationtest/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ priv_key_file: /key
log_level: debug
l1_rpc_url: <L1_URL>
settlement_rpc_url: http://sl-bootnode:8545
oracle_contract_addr: 0x3F4edEB407aB1Ecca3729C9CD3c9f7DC63b307A3
preconf_contract_addr: 0xBB632720f817792578060F176694D8f7230229d9
oracle_contract_addr: 0xF82E60097df8A1c2c58dC95ce08fe00F30717beB
preconf_contract_addr: 0x451656c1E7eDf82397EBE04f38819c9970AA3658
pg_host: oracle-db
pg_port: 5432
pg_user: oracle_user
Expand Down
2 changes: 1 addition & 1 deletion pkg/apiserver/apiserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (a *Service) registerStatsEndpoints() {
}
}

blocks, err := a.storage.ProcessedBlocks(page, limit)
blocks, err := a.storage.ProcessedBlocks(limit, page)
if err != nil {
log.Error().Err(err).Msg("failed to get processed blocks")
w.WriteHeader(http.StatusInternalServerError)
Expand Down
Loading