You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Parent exists. This slot chains to the main tree. From oldest to newest,
1119
1131
choose an unconfirmed leaf to evict. */
1120
-
ulongunconfirmed_leaves[128];
1121
-
uintcnt=0;
1132
+
ulongevict_slot=ULONG_MAX;
1133
+
uintfork_cnt=0;
1122
1134
for( fd_forest_frontier_iter_titer=fd_forest_frontier_iter_init( frontier, pool );
1123
1135
!fd_forest_frontier_iter_done( iter, frontier, pool );
1124
1136
iter=fd_forest_frontier_iter_next( iter, frontier, pool ) ) {
1125
1137
fd_forest_blk_t*ele=fd_forest_frontier_iter_ele( iter, frontier, pool );
1126
1138
if( !ele->confirmed ) {
1127
-
unconfirmed_leaves[cnt++]=ele->slot;
1128
-
if( FD_UNLIKELY( cnt==128 ) ) break; // It doesn't matter if we don't get all the unconfirmed leaves, we'll just evict the oldest from what we've seen.
0 commit comments