Skip to content

Commit 9669deb

Browse files
runtime: adding more verbose debugging logs
1 parent e3a05e5 commit 9669deb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/discof/exec/fd_exec_tile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ publish_txn_finalized_msg( fd_exec_tile_ctx_t * ctx,
370370
msg->txn_exec->start_shred_idx = ctx->txn_in.txn->start_shred_idx;
371371
msg->txn_exec->end_shred_idx = ctx->txn_in.txn->end_shred_idx;
372372
if( FD_UNLIKELY( msg->txn_exec->err ) ) {
373-
FD_LOG_WARNING(( "txn failed to execute, bad block detected err=%d", ctx->txn_out.err.txn_err ));
373+
uchar * signature = (uchar *)ctx->txn_in.txn->payload + TXN( ctx->txn_in.txn )->signature_off;
374+
FD_LOG_WARNING(( "txn failed to execute, bad block detected err=%d signature=%s", ctx->txn_out.err.txn_err, FD_BASE58_ENC_64_ALLOCA( signature ) ));
374375
}
375376

376377
fd_stem_publish( stem, ctx->exec_replay_out->idx, (FD_EXEC_TT_TXN_EXEC<<32)|ctx->tile_idx, ctx->exec_replay_out->chunk, sizeof(*msg), 0UL, ctx->dispatch_time_comp, fd_frag_meta_ts_comp( fd_tickcount() ) );

src/flamenco/runtime/fd_executor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ fd_validate_fee_payer( fd_txn_account_t * account,
258258
ulong fee ) {
259259
/* https://github.com/anza-xyz/agave/blob/v2.2.13/svm/src/account_loader.rs#L301-L304 */
260260
if( FD_UNLIKELY( fd_txn_account_get_lamports( account )==0UL ) ) {
261+
FD_LOG_DEBUG(( "Fee payer doesn't exist %s", FD_BASE58_ENC_32_ALLOCA( account->pubkey ) ));
261262
return FD_RUNTIME_TXN_ERR_ACCOUNT_NOT_FOUND;
262263
}
263264

@@ -1042,6 +1043,7 @@ fd_executor_validate_transaction_fee_payer( fd_runtime_t * runtime,
10421043
&fee_payer_rec,
10431044
fd_runtime_account_check_fee_payer_writable );
10441045
if( FD_UNLIKELY( err!=FD_ACC_MGR_SUCCESS ) ) {
1046+
FD_LOG_DEBUG(( "Fee payer isn't writable %s", FD_BASE58_ENC_32_ALLOCA( fee_payer_rec->pubkey ) ));
10451047
return FD_RUNTIME_TXN_ERR_ACCOUNT_NOT_FOUND;
10461048
}
10471049

@@ -1104,6 +1106,7 @@ fd_executor_setup_txn_alut_account_keys( fd_runtime_t * runtime,
11041106
fd_sysvar_cache_t const * sysvar_cache = fd_bank_sysvar_cache_query( bank );
11051107
fd_slot_hash_t const * slot_hashes = fd_sysvar_cache_slot_hashes_join_const( sysvar_cache );
11061108
if( FD_UNLIKELY( !slot_hashes ) ) {
1109+
FD_LOG_DEBUG(( "fd_executor_setup_txn_alut_account_keys(): failed to get slot hashes" ));
11071110
return FD_RUNTIME_TXN_ERR_ACCOUNT_NOT_FOUND;
11081111
}
11091112
fd_funk_txn_xid_t xid = { .ul = { fd_bank_slot_get( bank ), bank->idx } };

0 commit comments

Comments
 (0)