Skip to content

Commit

Permalink
chore: increase initial balances
Browse files Browse the repository at this point in the history
  • Loading branch information
orriin committed May 17, 2024
1 parent d1ee620 commit cac082b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/e2e-bittensor-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ env:
VERBOSE: ${{ github.events.input.verbose }}

jobs:
# runs cargo fmt
e2e-bittensor-tests:
name: e2e bittensor tests
run:
runs-on: SubtensorCI
strategy:
matrix:
Expand All @@ -48,7 +46,6 @@ jobs:
# - os: macos-latest
env:
RELEASE_NAME: development
# RUSTFLAGS: -A warnings
RUSTV: ${{ matrix.rust-branch }}
RUST_BACKTRACE: full
RUST_BIN_DIR: target/${{ matrix.rust-target }}
Expand All @@ -60,22 +57,22 @@ jobs:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y build-essential

- name: ls
run: ls

- name: Install Rust ${{ matrix.rust-branch }}
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: ${{ matrix.rust-branch }}
components: rustfmt
profile: minimal

- name: Clone bittensor repo
run: git clone https://github.com/opentensor/bittensor.git

- name: Setup bittensor repo
working-directory: ${{ github.workspace }}/bittensor
run: |
git clone https://github.com/opentensor/bittensor.git
cd bittensor
git checkout staging
python3 -m pip install -e bittensor/
python3 -m pip install -e .
- name: Run E2E tests
run: LOCALNET_SH_PATH="../subtensor/scripts/localnet.sh" pytest tests/e2e_tests/ -s
- name: Run tests
working-directory: ${{ github.workspace }}/bittensor
run: LOCALNET_SH_PATH="../scripts/localnet.sh" pytest tests/e2e_tests/ -s
12 changes: 6 additions & 6 deletions node/src/chain_spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,27 +371,27 @@ fn localnet_genesis(
let mut balances = vec![
(
get_account_id_from_seed::<sr25519::Public>("Alice"),
1000000000000u128,
1000000000000000u128,
),
(
get_account_id_from_seed::<sr25519::Public>("Bob"),
1000000000000u128,
1000000000000000u128,
),
(
get_account_id_from_seed::<sr25519::Public>("Charlie"),
1000000000000u128,
1000000000000000u128,
),
(
get_account_id_from_seed::<sr25519::Public>("Dave"),
2000000000u128,
2000000000000u128,
),
(
get_account_id_from_seed::<sr25519::Public>("Eve"),
2000000000u128,
2000000000000u128,
),
(
get_account_id_from_seed::<sr25519::Public>("Ferdie"),
2000000000u128,
2000000000000u128,
),
];

Expand Down

0 comments on commit cac082b

Please sign in to comment.