Skip to content

Commit

Permalink
trie-geyser: add RPC server to the plugin (#385)
Browse files Browse the repository at this point in the history
Add an HTTP JSON RPC server to the witnessed-trie-geyser-plugin so
that relayer can connect to it to gather all the information necessary
for generating the proofs.

Furthermore, as minor housekeeping, rename solana/trie-geyser to
solana/trie-geyser-plugin so that common/trie-geyser is available for
the code common between the plugin and client.
  • Loading branch information
mina86 authored Sep 5, 2024
1 parent d798c44 commit 7937bee
Show file tree
Hide file tree
Showing 20 changed files with 618 additions and 93 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- name: Check formatting
run: |
cargo fmt --all --check
( cd solana/trie-geyser && cargo fmt --all --check )
( cd solana/trie-geyser-plugin && cargo fmt --all --check )
- name: Check Clippy (all features)
uses: actions-rs/clippy-check@v1
Expand All @@ -56,12 +56,12 @@ jobs:
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --manifest-path solana/trie-geyser/Cargo.toml -- -D warnings
args: --all-features --manifest-path solana/trie-geyser-plugin/Cargo.toml -- -D warnings

- name: Miri tests
run: |
cargo miri test -- -Z unstable-options --report-time --skip ::anchor
( cd solana/trie-geyser && cargo miri test -- -Z unstable-options --report-time )
( cd solana/trie-geyser-plugin && cargo miri test -- -Z unstable-options --report-time )
anchor-build:
name: Anchor Test
Expand Down Expand Up @@ -158,10 +158,10 @@ jobs:
run: cargo test --all-features

- name: Run trie-geyser tests (default features)
run: cd solana/trie-geyser && cargo test
run: cd solana/trie-geyser-plugin && cargo test

- name: Run trie-geyser tests (no default features)
run: cd solana/trie-geyser && cargo test --no-default-features
run: cd solana/trie-geyser-plugin && cargo test --no-default-features

- name: Run trie-geyser tests (all features)
run: cd solana/trie-geyser && cargo test --all-features
run: cd solana/trie-geyser-plugin && cargo test --all-features
Loading

0 comments on commit 7937bee

Please sign in to comment.