-
Notifications
You must be signed in to change notification settings - Fork 396
Fix firedancer-dev bench #8300
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
base: main
Are you sure you want to change the base?
Fix firedancer-dev bench #8300
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -529,7 +529,7 @@ fd_rpc_validate_config( fd_rpc_tile_t * ctx, | |
| _bank_idx = ctx->finalized_idx; | ||
| } | ||
| if( FD_UNLIKELY( _bank_idx==ULONG_MAX ) ) { | ||
| *res = (fd_http_server_response_t){ .status = 500 }; | ||
| *res = (fd_http_server_response_t){ .status = 503 }; | ||
| return 0; | ||
| } | ||
| *bank_idx = _bank_idx; | ||
|
|
@@ -1077,7 +1077,9 @@ static fd_http_server_response_t | |
| getLatestBlockhash( fd_rpc_tile_t * ctx, | ||
| cJSON const * id, | ||
| cJSON const * params ) { | ||
| if( FD_UNLIKELY( ctx->processed_idx==ULONG_MAX || ctx->banks[ ctx->processed_idx ].slot==ULONG_MAX ) ) return (fd_http_server_response_t){ .status = 500 }; | ||
| if( FD_UNLIKELY( ctx->processed_idx==ULONG_MAX || ctx->banks[ ctx->processed_idx ].slot==ULONG_MAX ) ) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @jherrera-jump is 500 for agave conformance?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't love using a special code for this though ... we should match agave behavior if the snapshot isn't loaded yet or whatever (probably, the rpc doesn't accept connections until then?)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
no, I'll change the behavior here to match |
||
| return (fd_http_server_response_t){ .status = 503 }; | ||
| } | ||
|
|
||
| fd_http_server_response_t response; | ||
| if( FD_UNLIKELY( !fd_rpc_validate_params( ctx, id, params, 0, 1, &response ) ) ) return response; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See commit description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any larger and fd_genesis_parse.c breaks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you fix fd_genesis_parse ?