|
1 | 1 | #include "topology.h" |
2 | 2 |
|
3 | | -#include "../../discof/reasm/fd_reasm.h" |
4 | | -#include "../../discof/poh/fd_poh.h" |
5 | | -#include "../../discof/replay/fd_exec.h" |
6 | | -#include "../../discof/gossip/fd_gossip_tile.h" |
7 | | -#include "../../discof/tower/fd_tower_tile.h" |
8 | | -#include "../../discof/resolv/fd_resolv_tile.h" |
9 | | -#include "../../discof/repair/fd_repair.h" |
10 | | -#include "../../discof/replay/fd_replay_tile.h" |
| 3 | +#include "../../choreo/fd_choreo_base.h" |
11 | 4 | #include "../../disco/net/fd_net_tile.h" |
12 | 5 | #include "../../disco/quic/fd_tpu.h" |
13 | 6 | #include "../../disco/pack/fd_pack_cost.h" |
14 | 7 | #include "../../disco/tiles.h" |
15 | 8 | #include "../../disco/topo/fd_topob.h" |
16 | 9 | #include "../../disco/topo/fd_cpu_topo.h" |
17 | | -#include "../../util/pod/fd_pod_format.h" |
18 | | -#include "../../util/tile/fd_tile_private.h" |
| 10 | +#include "../../discof/gossip/fd_gossip_tile.h" |
| 11 | +#include "../../discof/poh/fd_poh.h" |
| 12 | +#include "../../discof/reasm/fd_reasm.h" |
| 13 | +#include "../../discof/repair/fd_repair.h" |
| 14 | +#include "../../discof/replay/fd_exec.h" |
| 15 | +#include "../../discof/replay/fd_replay_tile.h" |
| 16 | +#include "../../discof/resolv/fd_resolv_tile.h" |
19 | 17 | #include "../../discof/restore/utils/fd_ssmsg.h" |
| 18 | +#include "../../discof/tower/fd_tower_tile.h" |
20 | 19 | #include "../../flamenco/gossip/fd_gossip.h" |
21 | 20 | #include "../../flamenco/runtime/context/fd_capture_ctx.h" |
| 21 | +#include "../../util/pod/fd_pod_format.h" |
| 22 | +#include "../../util/tile/fd_tile_private.h" |
22 | 23 |
|
23 | 24 | #include <sys/random.h> |
24 | 25 | #include <sys/types.h> |
@@ -370,7 +371,7 @@ fd_topo_initialize( config_t * config ) { |
370 | 371 |
|
371 | 372 | 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 */ |
372 | 373 | 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 */ |
373 | | - /**/ fd_topob_link( topo, "tower_out", "tower_out", 1024UL, sizeof(fd_tower_slot_done_t), 1UL ); |
| 374 | + /**/ fd_topob_link( topo, "tower_out", "tower_out", FD_BLOCK_MAX, sizeof(fd_tower_msg_t), 1UL ); |
374 | 375 | /**/ 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 */ |
375 | 376 |
|
376 | 377 | fd_topob_link( topo, "replay_exec", "replay_exec", 16384UL, 2240UL, 1UL ); |
@@ -523,7 +524,8 @@ fd_topo_initialize( config_t * config ) { |
523 | 524 | single out link, over which all the writer tiles round-robin. */ |
524 | 525 | FOR(writer_tile_cnt) for( ulong j=0UL; j<exec_tile_cnt; j++ ) |
525 | 526 | fd_topob_tile_in( topo, "writer", i, "metric_in", "exec_writer", j, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
526 | | - /**/ fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "genesi_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
| 527 | + /**/ fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "genesi_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
| 528 | + /**/ fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "gossip_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
527 | 529 | /**/ fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "replay_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
528 | 530 | if( snapshots_enabled ) { |
529 | 531 | fd_topob_tile_in ( topo, "tower", 0UL, "metric_in", "snap_out", 0UL, FD_TOPOB_RELIABLE, FD_TOPOB_POLLED ); |
@@ -967,8 +969,8 @@ fd_topo_configure_tile( fd_topo_tile_t * tile, |
967 | 969 |
|
968 | 970 | } else if( FD_UNLIKELY( !strcmp( tile->name, "tower" ) ) ) { |
969 | 971 |
|
970 | | - strncpy( tile->tower.identity_key_path, config->paths.identity_key, sizeof(tile->tower.identity_key_path) ); |
971 | | - strncpy( tile->tower.vote_acc_path, config->paths.vote_account, sizeof(tile->tower.vote_acc_path) ); |
| 972 | + strncpy( tile->tower.identity_key, config->paths.identity_key, sizeof(tile->tower.identity_key) ); |
| 973 | + strncpy( tile->tower.vote_account, config->paths.vote_account, sizeof(tile->tower.vote_account) ); |
972 | 974 | strncpy( tile->tower.ledger_path, config->paths.ledger, sizeof(tile->tower.ledger_path) ); |
973 | 975 |
|
974 | 976 | } else if( FD_UNLIKELY( !strcmp( tile->name, "send" ) ) ) { |
|
0 commit comments