Skip to content

Commit 4952c36

Browse files
banks: bump default max banks to 1024
1 parent fbe952a commit 4952c36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/firedancer/config/default.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ telemetry = true
612612
# is not stored as an account. Examples of members of the bank
613613
# are the total capitalization of the chain and the vote account
614614
# states for previous epochs.
615-
max_live_slots = 128
615+
max_live_slots = 1024
616616

617617
# max_fork_width specifies the maximum number of forks that will
618618
# play through the same slot. Specifically, the maximum number

src/app/firedancer/topology.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ fd_topo_initialize( config_t * config ) {
12511251
given the current consensus limit of 32768 shreds per block). */
12521252

12531253
if( FD_UNLIKELY( !fd_ulong_is_pow2( config->firedancer.runtime.max_live_slots ) ) ) FD_LOG_ERR(( "max_live_slots must be a power of 2 for store" ));
1254-
fd_topo_obj_t * store_obj = setup_topo_store( topo, "store", config->firedancer.runtime.max_live_slots * FD_SHRED_BLK_MAX / 4 /* FIXME temporary hack to run on 512 gb boxes */, (uint)shred_tile_cnt );
1254+
fd_topo_obj_t * store_obj = setup_topo_store( topo, "store", config->firedancer.runtime.max_live_slots * 1024UL /* FIXME temporary hack to run on 512 gb boxes */, (uint)shred_tile_cnt );
12551255
FOR(shred_tile_cnt) fd_topob_tile_uses( topo, &topo->tiles[ fd_topo_find_tile( topo, "shred", i ) ], store_obj, FD_SHMEM_JOIN_MODE_READ_WRITE );
12561256
fd_topob_tile_uses( topo, &topo->tiles[ fd_topo_find_tile( topo, "replay", 0UL ) ], store_obj, FD_SHMEM_JOIN_MODE_READ_WRITE );
12571257
FD_TEST( fd_pod_insertf_ulong( topo->props, store_obj->id, "store" ) );
@@ -1504,7 +1504,7 @@ fd_topo_configure_tile( fd_topo_tile_t * tile,
15041504

15051505
/* Please maintain same field order as fd_topo.h */
15061506

1507-
tile->replay.fec_max = config->firedancer.runtime.max_live_slots * FD_SHRED_BLK_MAX / 4; /* FIXME temporary hack to run on 512 gb boxes */
1507+
tile->replay.fec_max = config->firedancer.runtime.max_live_slots * 1024UL; /* FIXME temporary hack to run on 512 gb boxes */
15081508
tile->replay.max_vote_accounts = config->firedancer.runtime.max_vote_accounts;
15091509

15101510
tile->replay.txncache_obj_id = fd_pod_query_ulong( config->topo.props, "txncache", ULONG_MAX ); FD_TEST( tile->replay.txncache_obj_id !=ULONG_MAX );

0 commit comments

Comments
 (0)