Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
Genesis hash is only consistent upon using the raw chainspec file (#1498
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hhamud authored Apr 4, 2024
1 parent 0e433dc commit c397c90
Show file tree
Hide file tree
Showing 23 changed files with 250 additions and 262,188 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/basic-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Basic Testnet

on:
workflow_dispatch:
workflow_call:

jobs:
rpc-tests:
runs-on: ubuntu-latest
env:
BINARY_PATH: ../target/production/madara
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: "cache"
save-if: false
- uses: actions/cache@v3
with:
path: |
target/production/madara
key:
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{
github.run_id }}
fail-on-cache-miss: true
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.3.1"
- name: Setup Validator
run: |
./target/production/madara setup --from-local ./configs/ --chain dev --base-path /tmp/alice
- name: Setup Node1
run: |
./target/production/madara setup --from-local ./configs/ --chain dev --base-path /tmp/node1
- name: Purge validator chain
run: |
./target/production/madara purge-chain --base-path /tmp/alice --chain dev -y
- name: Purge node chain
run: |
./target/production/madara purge-chain --base-path /tmp/node1 --chain dev -y
- name: Run validator
run: |
./target/production/madara \
--base-path=/tmp/alice \
--chain=dev \
--alice \
--node-key=0000000000000000000000000000000000000000000000000000000000000001 \
--validator > validator_output.txt 2>&1 &
echo $! > validator_pid.txt
- name: Run node
run: |
./target/production/madara \
--chain=dev \
--bootnodes=/ip4/127.0.0.1/tcp/30333/p2p/12D3KooWEyoppNCUx8Yx66oV9fJnriXwCcXwDDUA2kj6vnc6iDEp \
--base-path=/tmp/node1 \
--rpc-port=9946 > node_output.txt 2>&1 &
echo $! > node_pid.txt
- name: Wait for services to start
run: sleep 20

- name: Check node connection
run: |
if ! grep -q "1 peers" validator_output.txt; then
echo "Node failed to connect to validator"
cat validator_output.txt
echo "==============> Node output <=============="
cat node_output.txt
exit 1
fi
echo "Validator successfully connected."
5 changes: 5 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
uses: ./.github/workflows/linters-cargo.yml
needs: madara_commands

basic_testnet:
name: Run Basic Testnet
uses: ./.github/workflows/basic-testnet.yml
needs: madara_commands

rpc-tests:
name: Run rpc tests
uses: ./.github/workflows/starknet-rpc-tests.yml
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release

- fix(node): fix genesis hash inconsistency
- feat (pallet): add tests for storage reversal on transaction revert
- feat: add prometheus metrics for mapping worker
- Fix(node): Fix creating a local testnet with multiple nodes fails using only
Expand All @@ -26,7 +27,7 @@
- chore(db): changed the way hashes are encoded
- refacto: reusable Eth client config for settlement/DA/other tasks
- ci: add gomu gomu no gatling perfomrance test
- feat(runtime): moved StarkEvents from Substrate events to runtime storage
- feat(runtime): moved StarkEvents from Substrate

## v0.7.0

Expand Down
184 changes: 4 additions & 180 deletions Cargo.lock

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

Loading

0 comments on commit c397c90

Please sign in to comment.