Skip to content

Commit

Permalink
fix name folder and usage of correct path for local chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
AurelienFT committed Feb 4, 2025
1 parent a7ce530 commit f3e7642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-binary-high-tps-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
TARGET: ${{ matrix.job.target }}
run: |
# setup artifact filename
ARTIFACT="ben-high-tps-${{ matrix.job.target }}"
ARTIFACT="high-tps-bench-${{ matrix.job.target }}"
ZIP_FILE_NAME="high_tps_bench-${{ matrix.job.target }}-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}.tar.gz"
echo "ZIP_FILE_NAME=$ZIP_FILE_NAME" >> $GITHUB_ENV
# create zip file
Expand Down
5 changes: 3 additions & 2 deletions benches/src/bin/high_tps_public_bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ use rand::{
SeedableRng,
};
use test_helpers::builder::{
local_chain_config,
TestContext,
TestSetupBuilder,
};
fn checked_parameters() -> CheckPredicateParams {
local_chain_config().consensus_parameters.into()
let metadata = SnapshotMetadata::read("./local-testnet").unwrap();
let chain_conf = ChainConfig::from_snapshot_metadata(&metadata).unwrap();
chain_conf.consensus_parameters.into()
}
use clap::Parser;

Expand Down

0 comments on commit f3e7642

Please sign in to comment.