Skip to content

Commit

Permalink
CI - testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
llamb-jump committed May 14, 2024
1 parent 4197ab2 commit fe2cbb3
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test_firedancer_testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Firedancer Testnet
on:
workflow_call:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
jobs:
firedancer-testnet:
runs-on: private
if: github.event.pull_request.draft == false
env:
CC: gcc
EXTRAS: no-solana
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- uses: ./.github/actions/deps
- uses: ./.github/actions/hugepages
with:
count_gigantic: 128
count_huge: 1000 # TODO: this is required until we can handle anonymouse workspaces and loose huge pages in fddev

- name: build
run: |
./contrib/make-j fddev all
- name: test firedancer - testnet
run: |
sudo prlimit --pid=$$ --nofile=1048576
sudo prlimit --pid=$$ --memlock=unlimited
./contrib/test/test_firedancer_testnet.sh
6 changes: 3 additions & 3 deletions contrib/test/test_firedancer_testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if ! command -v fddev > /dev/null; then
fi

if [ -z "${ENTRYPOINT-}" ]; then
ENTRYPOINT=entrypoint3.testnet.solana.com
ENTRYPOINT=147.75.84.157
fi

snapshot=$(download_snapshot http://$ENTRYPOINT:8899/snapshot.tar.bz2)
Expand All @@ -54,8 +54,8 @@ echo "
port = 8720
[tiles]
[tiles.gossip]
entrypoints = [\"$(dig +short $ENTRYPOINT)\"]
peer_ports = [8001]
entrypoints = [\"$ENTRYPOINT\"]
peer_ports = [8000]
gossip_listen_port = 8720
[tiles.repair]
repair_intake_listen_port = 8721
Expand Down
6 changes: 5 additions & 1 deletion src/flamenco/gossip/fd_gossip.c
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,10 @@ fd_gossip_handle_prune(fd_gossip_t * glob, const fd_gossip_peer_addr_t * from, f
signdata.destination = msg->data.destination;
signdata.wallclock = msg->data.wallclock;

/* Verify the signature. You would think that solana would use
msg->pubkey.uc for this, but that pubkey is actually ignored. The
inclusion of two pubkeys in this message is confusing and
problematic. */
uchar buf[FD_ETH_PAYLOAD_MAX];
fd_bincode_encode_ctx_t ctx;
ctx.data = buf;
Expand All @@ -1247,7 +1251,7 @@ fd_gossip_handle_prune(fd_gossip_t * glob, const fd_gossip_peer_addr_t * from, f
if (fd_ed25519_verify( /* msg */ buf,
/* sz */ (ulong)((uchar*)ctx.data - buf),
/* sig */ msg->data.signature.uc,
/* public_key */ msg->pubkey.uc,
/* public_key */ msg->data.pubkey.uc,
sha )) {
FD_LOG_WARNING(("received prune_msg with invalid signature"));
return;
Expand Down

0 comments on commit fe2cbb3

Please sign in to comment.