|
1 | 1 | #include "topology.h" |
2 | 2 |
|
3 | 3 | #include "../../ballet/lthash/fd_lthash.h" |
| 4 | +#include "../../choreo/fd_choreo_base.h" |
4 | 5 | #include "../../discof/reasm/fd_reasm.h" |
5 | 6 | #include "../../discof/poh/fd_poh.h" |
6 | 7 | #include "../../discof/replay/fd_exec.h" |
@@ -404,7 +405,7 @@ fd_topo_initialize( config_t * config ) { |
404 | 405 |
|
405 | 406 | FOR(shred_tile_cnt) fd_topob_link( topo, "shred_out", "shred_out", pending_fec_shreds_depth, FD_SHRED_OUT_MTU, 3UL ); /* TODO: Pretty sure burst of 3 is incorrect here */ |
406 | 407 | FOR(shred_tile_cnt) fd_topob_link( topo, "repair_shred", "shred_out", pending_fec_shreds_depth, sizeof(fd_ed25519_sig_t), 1UL ); /* TODO: Also pending_fec_shreds_depth? Seems wrong */ |
407 | | - /**/ fd_topob_link( topo, "tower_out", "tower_out", 1024UL, sizeof(fd_tower_slot_done_t), 1UL ); |
| 408 | + /**/ fd_topob_link( topo, "tower_out", "tower_out", FD_BLOCK_MAX, sizeof(fd_tower_msg_t), 1UL ); |
408 | 409 | /**/ fd_topob_link( topo, "send_txns", "send_txns", 128UL, FD_TPU_RAW_MTU, 1UL ); /* TODO: Horribly named. Rename to indicate tile and where its going */ |
409 | 410 |
|
410 | 411 | fd_topob_link( topo, "replay_exec", "replay_exec", 16384UL, sizeof(fd_exec_task_msg_t), 1UL ); |
@@ -551,11 +552,8 @@ fd_topo_initialize( config_t * config ) { |
551 | 552 |
|
552 | 553 | /**/ fd_topob_tile_in( topo, "replay", 0UL, "metric_in", "poh_replay", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
553 | 554 | FOR(exec_tile_cnt) fd_topob_tile_in( topo, "exec", i, "metric_in", "replay_exec", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
554 | | - /**/ fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "genesi_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
| 555 | + /**/ fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "gossip_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
555 | 556 | /**/ fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "replay_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
556 | | - if( snapshots_enabled ) { |
557 | | - fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "snapin_manif", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
558 | | - } |
559 | 557 | /**/ fd_topob_tile_out( topo, "tower", 0UL, "tower_out", 0UL ); |
560 | 558 | /**/ fd_topob_tile_in ( topo, "send", 0UL, "metric_in", "replay_stake", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
561 | 559 | /**/ fd_topob_tile_in ( topo, "send", 0UL, "metric_in", "gossip_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
@@ -727,6 +725,7 @@ fd_topo_initialize( config_t * config ) { |
727 | 725 | FOR(exec_tile_cnt) fd_topob_tile_uses( topo, &topo->tiles[ fd_topo_find_tile( topo, "exec", i ) ], banks_obj, FD_SHMEM_JOIN_MODE_READ_WRITE ); /* TODO: Should be readonly? */ |
728 | 726 | FOR(bank_tile_cnt) fd_topob_tile_uses( topo, &topo->tiles[ fd_topo_find_tile( topo, "bank", i ) ], banks_obj, FD_SHMEM_JOIN_MODE_READ_WRITE ); |
729 | 727 | FOR(resolv_tile_cnt) fd_topob_tile_uses( topo, &topo->tiles[ fd_topo_find_tile( topo, "resolv", i ) ], banks_obj, FD_SHMEM_JOIN_MODE_READ_ONLY ); |
| 728 | + /**/ fd_topob_tile_uses( topo, &topo->tiles[ fd_topo_find_tile( topo, "tower", 0UL ) ], banks_obj, FD_SHMEM_JOIN_MODE_READ_ONLY ); |
730 | 729 | FD_TEST( fd_pod_insertf_ulong( topo->props, banks_obj->id, "banks" ) ); |
731 | 730 |
|
732 | 731 | fd_topo_obj_t * progcache_obj = setup_topo_progcache( topo, "progcache", |
@@ -1006,8 +1005,8 @@ fd_topo_configure_tile( fd_topo_tile_t * tile, |
1006 | 1005 |
|
1007 | 1006 | } else if( FD_UNLIKELY( !strcmp( tile->name, "tower" ) ) ) { |
1008 | 1007 |
|
1009 | | - strncpy( tile->tower.identity_key_path, config->paths.identity_key, sizeof(tile->tower.identity_key_path) ); |
1010 | | - strncpy( tile->tower.vote_acc_path, config->paths.vote_account, sizeof(tile->tower.vote_acc_path) ); |
| 1008 | + strncpy( tile->tower.identity_key, config->paths.identity_key, sizeof(tile->tower.identity_key) ); |
| 1009 | + strncpy( tile->tower.vote_account, config->paths.vote_account, sizeof(tile->tower.vote_account) ); |
1011 | 1010 | strncpy( tile->tower.ledger_path, config->paths.ledger, sizeof(tile->tower.ledger_path) ); |
1012 | 1011 |
|
1013 | 1012 | } else if( FD_UNLIKELY( !strcmp( tile->name, "send" ) ) ) { |
|
0 commit comments