-
Notifications
You must be signed in to change notification settings - Fork 366
runtime: txn_ctx refactor pt 1 #7135
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
Conversation
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
src/flamenco/runtime/fd_executor.c
Outdated
| int found = fd_txncache_query( txn_ctx->status_cache, txn_ctx->bank->txncache_fork_id, blockhash->uc, txn_ctx->blake_txn_msg_hash.uc ); | ||
| if( FD_UNLIKELY( found ) ) return FD_RUNTIME_TXN_ERR_ALREADY_PROCESSED; | ||
| if( FD_UNLIKELY( found ) ) { | ||
| FD_LOG_WARNING(( "transaction already processed: %d", found )); |
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.
stray?
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.
yes oops
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
3eb8920 to
2f55dca
Compare
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
bb3d6b7 to
49cd9ca
Compare
Performance Measurements ⏳
|
Performance Measurements ⏳
|
Performance Measurements ⏳
|
| int res = fd_cost_tracker_calculate_cost_and_add( cost_tracker, txn_ctx ); | ||
| if( FD_UNLIKELY( res!=FD_COST_TRACKER_SUCCESS ) ) { | ||
| txn_ctx->flags = 0U; | ||
| FD_LOG_DEBUG(( "fd_runtime_finalize_txn: transaction failed to fit into block %d", res )); |
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.
There's a CRIT in bank that already logs a superset of info. Maybe remove this and add a debug log in exec tile for transactions that overflow cost tracker? Also might as well log the transaction signature in case it's a rare cost tracker bug.
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.
it's not necessarily this transaction that caused cost tracker problems tbf. it could've been any transaction in the block and this transaction is the one that set it over
src/discof/bank/fd_bank_tile.c
Outdated
|
|
||
| uint actual_execution_cus = (uint)(txn_ctx->compute_budget_details.compute_unit_limit - txn_ctx->compute_budget_details.compute_meter); | ||
| uint actual_acct_data_cus = (uint)(txn_ctx->loaded_accounts_data_size_cost); | ||
| ctx->metrics.txn_landed[ FD_METRICS_ENUM_TRANSACTION_LANDED_V_LANDED_SUCESS_IDX ]++; |
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.
Check txn_ctx->err.exec_err before incrementing this? Otherwise this will count LANDED_FAILED too.
8b49d4e to
0ecd0b5
Compare
Performance Measurements ⏳
|
No description provided.