2020#include "../../shared/fd_config.h" /* config_t */
2121#include "../../../disco/tiles.h"
2222#include "../../../disco/topo/fd_topob.h"
23+ #include "../../../disco/topo/fd_topob_vinyl.h"
2324#include "../../../util/pod/fd_pod_format.h"
2425#include "../../../discof/replay/fd_replay_tile.h"
2526#include "../../../discof/restore/utils/fd_ssctrl.h"
@@ -50,7 +51,7 @@ backtest_topo( config_t * config ) {
5051 ulong lta_tile_cnt = config -> firedancer .layout .snapla_tile_count ;
5152
5253 int disable_snap_loader = !config -> gossip .entrypoints_cnt ;
53- int snap_vinyl = !!config -> firedancer .vinyl .enabled ;
54+ int vinyl_enabled = !!config -> firedancer .vinyl .enabled ;
5455 int solcap_enabled = strlen ( config -> capture .solcap_capture )> 0 ;
5556 int snapshot_lthash_disabled = config -> development .snapshots .disable_lthash_verification ;
5657
@@ -91,7 +92,7 @@ backtest_topo( config_t * config ) {
9192 config -> firedancer .runtime .program_cache .heap_size_mib <<20 );
9293 fd_topob_tile_uses ( topo , replay_tile , progcache_obj , FD_SHMEM_JOIN_MODE_READ_WRITE );
9394
94- if ( snap_vinyl ) {
95+ if ( vinyl_enabled ) {
9596 setup_topo_vinyl_meta ( topo , & config -> firedancer );
9697 }
9798
@@ -105,7 +106,6 @@ backtest_topo( config_t * config ) {
105106 /**********************************************************************/
106107 /* Add the snapshot tiles to topo */
107108 /**********************************************************************/
108- int vinyl_enabled = config -> firedancer .vinyl .enabled ;
109109 fd_topo_tile_t * snapin_tile = NULL ;
110110 fd_topo_tile_t * snapwr_tile = NULL ;
111111 if ( FD_UNLIKELY ( !disable_snap_loader ) ) {
@@ -352,7 +352,7 @@ backtest_topo( config_t * config ) {
352352 fd_topob_tile_uses ( topo , replay_tile , txncache_obj , FD_SHMEM_JOIN_MODE_READ_WRITE );
353353 if ( FD_LIKELY ( !disable_snap_loader ) ) {
354354 fd_topob_tile_uses ( topo , snapin_tile , txncache_obj , FD_SHMEM_JOIN_MODE_READ_WRITE );
355- if ( snap_vinyl ) {
355+ if ( vinyl_enabled ) {
356356 ulong vinyl_map_obj_id = fd_pod_query_ulong ( topo -> props , "vinyl.meta_map" , ULONG_MAX ); FD_TEST ( vinyl_map_obj_id != ULONG_MAX );
357357 ulong vinyl_pool_obj_id = fd_pod_query_ulong ( topo -> props , "vinyl.meta_pool" , ULONG_MAX ); FD_TEST ( vinyl_pool_obj_id != ULONG_MAX );
358358 fd_topo_obj_t * vinyl_map_obj = & topo -> objs [ vinyl_map_obj_id ];
@@ -376,6 +376,12 @@ backtest_topo( config_t * config ) {
376376 fd_topob_tile_uses ( topo , snapin_tile , funk_obj , FD_SHMEM_JOIN_MODE_READ_WRITE );
377377 }
378378
379+ if ( vinyl_enabled ) {
380+ fd_topob_vinyl_rq ( topo , "replay" , "vinyl_replay" , 128UL );
381+ fd_topob_vinyl_rq_out ( topo , "replay" , 0UL , "replay" , 0UL );
382+ fd_topob_vinyl_rq_in ( topo , "vinyl" , 0UL , "replay" , 0UL );
383+ }
384+
379385 for ( ulong i = 0UL ; i < topo -> tile_cnt ; i ++ ) {
380386 fd_topo_tile_t * tile = & topo -> tiles [ i ];
381387 fd_topo_configure_tile ( tile , config );
0 commit comments