Skip to content

Commit 5f03408

Browse files
committed
disco: shred tile unprivileged_init update
1 parent 5de7eb6 commit 5f03408

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/disco/shred/fd_shred_tile.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,6 @@
8383
33 data shreds point into the second fd_shred34_t. Similar for the
8484
parity shreds pointing into the third and fourth fd_shred34_t. */
8585

86-
/* There's nothing deep about this max, but I just find it easier to
87-
have a max and use statically sized arrays than alloca. */
88-
#define MAX_BANK_CNT 64UL
89-
9086
#define FD_SHRED_TILE_SCRATCH_ALIGN 128UL
9187

9288
#define IN_KIND_CONTACT (0UL)
@@ -1082,12 +1078,6 @@ unprivileged_init( fd_topo_t * topo,
10821078
if( FD_UNLIKELY( !tile->shred.fec_resolver_depth ) ) FD_LOG_ERR(( "fec_resolver_depth not set" ));
10831079
if( FD_UNLIKELY( !tile->shred.shred_listen_port ) ) FD_LOG_ERR(( "shred_listen_port not set" ));
10841080

1085-
ulong bank_cnt = fd_topo_tile_name_cnt( topo, "bank" );
1086-
ulong replay_cnt = fd_topo_tile_name_cnt( topo, "replay" );
1087-
1088-
if( FD_UNLIKELY( !bank_cnt && !replay_cnt ) ) FD_LOG_ERR(( "0 bank/replay tiles" ));
1089-
if( FD_UNLIKELY( bank_cnt>MAX_BANK_CNT ) ) FD_LOG_ERR(( "Too many banks" ));
1090-
10911081
void * _stake_ci = FD_SCRATCH_ALLOC_APPEND( l, fd_stake_ci_align(), fd_stake_ci_footprint() );
10921082
void * _resolver = FD_SCRATCH_ALLOC_APPEND( l, fd_fec_resolver_align(), fec_resolver_footprint );
10931083
void * _shredder = FD_SCRATCH_ALLOC_APPEND( l, fd_shredder_align(), fd_shredder_footprint() );

0 commit comments

Comments
 (0)