fix: add previous flashblocks fee before calling is_better_payload (#… #1366
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust CI | |
| on: | |
| push: | |
| branches: [main] | |
| merge_group: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| cargo-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: taiki-e/install-action@just | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Cache | |
| uses: actions/cache@v3 | |
| continue-on-error: false | |
| with: | |
| path: | | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: cargo-test- | |
| - uses: taiki-e/install-action@nextest | |
| - name: tests | |
| run: just test | |
| cargo-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| name: lint | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: taiki-e/install-action@just | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache | |
| uses: actions/cache@v3 | |
| continue-on-error: false | |
| with: | |
| path: | | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: cargo-test- | |
| - name: fmt + lint | |
| run: cargo +nightly fmt --all -- --check | |
| cargo-clippy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| name: clippy | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: taiki-e/install-action@just | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache | |
| uses: actions/cache@v3 | |
| continue-on-error: false | |
| with: | |
| path: | | |
| ~/.cargo/registry/index/ | |
| ~/.cargo/registry/cache/ | |
| ~/.cargo/git/db/ | |
| target/ | |
| key: cargo-test-${{ hashFiles('**/Cargo.lock') }} | |
| restore-keys: cargo-test- | |
| - name: clippy | |
| run: cargo +nightly clippy --workspace --all-targets --all-features -- -D warnings | |