Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trie-geyser: introduce Solana witnessed trie geyser plugin #371

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,30 +42,26 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check formatting
run: cargo fmt --all --check

- name: Cache cargo-deny
id: cache-cargo-deny
uses: actions/cache@v4
with:
path: ~/.cargo/bin/cargo-deny
key: ${{ runner.os }}-${{ steps.install-rust.outputs.cachekey }}-cargo-deny

- name: Install cargo-deny
if: steps.cache-cargo-deny.outputs.cache-hit != 'true'
run: cargo install --locked cargo-deny

- name: Check bans
run: cargo-deny --all-features check bans
run: |
cargo fmt --all --check
( cd solana/trie-geyser && cargo fmt --all --check )

- name: Check Clippy (all features)
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings

- name: Check trie-geyser Clippy (all features)
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features --manifest-path solana/trie-geyser/Cargo.toml -- -D warnings

- name: Miri tests
run: cargo miri test -- -Z unstable-options --report-time --skip ::anchor
run: |
cargo miri test -- -Z unstable-options --report-time --skip ::anchor
( cd solana/trie-geyser && cargo miri test -- -Z unstable-options --report-time )

anchor-build:
name: Anchor Test
Expand Down Expand Up @@ -160,3 +156,12 @@ jobs:

- name: Run tests (all features)
run: cargo test --all-features

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

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

- name: Run trie-geyser tests (all features)
run: cd solana/trie-geyser && cargo test --all-features
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ members = [
"solana/write-account",
"validator",
]
exclude = [
# See solana/trie-geyser/Cargo.toml for description why this is
# not part of the workspace.
"solana/trie-geyser",
]
resolver = "2"

[profile.release]
Expand Down
3 changes: 3 additions & 0 deletions common/cf-solana/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ solana-program = [
"dep:solana-program",
"lib/solana-program",
]
solana-program-2 = [
"dep:solana-program-2",
]
1 change: 1 addition & 0 deletions solana/trie-geyser/.rustfmt.toml
Loading
Loading