Skip to content

Commit 548c705

Browse files
authored
sched, txncache: remove debug log
1 parent bb2490d commit 548c705

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

src/discof/replay/fd_sched.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,6 @@ maybe_switch_block( fd_sched_t * sched, ulong bank_idx ) {
15891589
are just not getting FEC sets for it fast enough. This could
15901590
happen when the network path is congested, or when the leader
15911591
simply went down. Reset the active block. */
1592-
FD_LOG_DEBUG(( "reset active_bank_idx %lu", sched->active_bank_idx ));
15931592
sched->active_bank_idx = ULONG_MAX;
15941593
sched->metrics->deactivate_no_txn_cnt++;
15951594
try_activate_block( sched );

src/flamenco/runtime/fd_txncache.c

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ fd_txncache_finalize_fork( fd_txncache_t * tc,
307307
static inline void
308308
remove_blockcache( fd_txncache_t * tc,
309309
blockcache_t * blockcache ) {
310+
FD_TEST( blockcache->shmem->frozen>=0 );
310311
memcpy( tc->txnpages_free+tc->shmem->txnpages_free_cnt, blockcache->pages, blockcache->shmem->pages_cnt*sizeof(tc->txnpages_free[ 0 ]) );
311312
tc->shmem->txnpages_free_cnt = (ushort)(tc->shmem->txnpages_free_cnt+blockcache->shmem->pages_cnt);
312313

@@ -412,11 +413,7 @@ fd_txncache_insert( fd_txncache_t * tc,
412413
FD_TEST( fork->shmem->frozen<=1 );
413414
FD_TEST( fork->shmem->frozen>=0 );
414415
blockcache_t * blockcache = blockhash_on_fork( tc, fork, blockhash );
415-
416-
/* TODO: We can't print the full txnhash here typically because we
417-
might only be able to see 20 bytes, but we need to print it for
418-
diagnostic purposes. Remove once bug is identified. */
419-
if( FD_UNLIKELY( !blockcache ) ) FD_LOG_CRIT(( "transaction %s refers to blockhash %s which does not exist on fork", FD_BASE58_ENC_32_ALLOCA( txnhash ), FD_BASE58_ENC_32_ALLOCA( blockhash ) ));
416+
FD_TEST( blockcache );
420417

421418
for(;;) {
422419
fd_txncache_txnpage_t * txnpage = fd_txncache_ensure_txnpage( tc, blockcache );
@@ -446,15 +443,11 @@ fd_txncache_query( fd_txncache_t * tc,
446443
fd_rwlock_read( tc->shmem->lock );
447444

448445
blockcache_t const * fork = &tc->blockcache_pool[ fork_id.val ];
449-
blockcache_t const * blockcache = blockhash_on_fork( tc, fork, blockhash );
450446
FD_TEST( fork->shmem->frozen>=0 );
447+
blockcache_t const * blockcache = blockhash_on_fork( tc, fork, blockhash );
448+
FD_TEST( blockcache );
451449
FD_TEST( blockcache->shmem->frozen==2 );
452450

453-
/* TODO: We can't print the full txnhash here typically because we
454-
might only be able to see 20 bytes, but we need to print it for
455-
diagnostic purposes. Remove once bug is identified. */
456-
if( FD_UNLIKELY( !blockcache ) ) FD_LOG_CRIT(( "transaction %s refers to blockhash %s which does not exist on fork", FD_BASE58_ENC_32_ALLOCA( txnhash ), FD_BASE58_ENC_32_ALLOCA( blockhash ) ));
457-
458451
int found = 0;
459452

460453
ulong txnhash_offset = blockcache->shmem->txnhash_offset;

0 commit comments

Comments
 (0)