Skip to content

Commit

Permalink
tiles: add gossip tile
Browse files Browse the repository at this point in the history
Co-authored-by: CantelopePeel <[email protected]>
  • Loading branch information
2 people authored and lheeger-jump committed May 7, 2024
1 parent 9d75004 commit bab0937
Show file tree
Hide file tree
Showing 5 changed files with 654 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/app/fdctl/Local.mk
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ $(call add-objs,run/tiles/fd_shred,fd_fdctl)
$(call add-objs,run/tiles/fd_store,fd_fdctl)
$(call add-objs,run/tiles/fd_sign,fd_fdctl)
$(call add-objs,run/tiles/fd_blackhole,fd_fdctl)

ifdef FD_HAS_NO_SOLANA
$(call add-objs,run/tiles/fd_repair,fd_fdctl)
$(call add-objs,run/tiles/fd_gossip,fd_fdctl)
endif

# fdctl topologies
$(call add-objs,run/topos/fd_frankendancer,fd_fdctl)
Expand Down Expand Up @@ -66,7 +70,10 @@ $(OBJDIR)/obj/app/fdctl/run/tiles/fd_shred.o: src/app/fdctl/run/tiles/generated/
$(OBJDIR)/obj/app/fdctl/run/tiles/fd_verify.o: src/app/fdctl/run/tiles/generated/verify_seccomp.h
$(OBJDIR)/obj/app/fdctl/run/tiles/fd_metric.o: src/app/fdctl/run/tiles/generated/metric_seccomp.h
$(OBJDIR)/obj/app/fdctl/run/tiles/fd_sign.o: src/app/fdctl/run/tiles/generated/sign_seccomp.h
ifdef FD_HAS_NO_SOLANA
$(OBJDIR)/obj/app/fdctl/run/tiles/fd_repair.o: src/app/fdctl/run/tiles/generated/repair_seccomp.h
$(OBJDIR)/obj/app/fdctl/run/tiles/fd_gossip.o: src/app/fdctl/run/tiles/generated/gossip_seccomp.h
endif

# Phony target to always rerun cargo build ... it will detect if anything
# changed on the library side.
Expand Down
4 changes: 4 additions & 0 deletions src/app/fdctl/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ static int parse_key_value( config_t * config,
ENTRY_UINT ( ., tiles.shred, max_pending_shred_sets );
ENTRY_USHORT( ., tiles.shred, shred_listen_port );

ENTRY_USHORT( ., tiles.gossip, gossip_listen_port );
ENTRY_STR ( ., tiles.gossip, peer_ip_addr );
ENTRY_USHORT( ., tiles.gossip, peer_port );

ENTRY_USHORT( ., tiles.metric, prometheus_listen_port );

ENTRY_BOOL ( ., development, sandbox );
Expand Down
2 changes: 2 additions & 0 deletions src/app/fdctl/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ typedef struct {
/* Firedancer-only tile configs */
struct {
ushort gossip_listen_port;
char peer_ip_addr[16];
ushort peer_port;
} gossip;

struct {
Expand Down
Loading

0 comments on commit bab0937

Please sign in to comment.