-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(feat) Attempt to infer post-block gaps.
(feat) Be more conservative in deleting blocks from the block_store (fix) Remember to remove requests from the in-flight requests queue when we get a response (feat) admin_ mechanisms to draw graphs of node arrangements and interrupt comms (feat) z2 commands to partition the network and dump out node arrangements (feat) A configuration file for zq2-richard (feat) z2 deployer info and command-line options to specify hosts for z2 deployer install and upgrade (feat) Scripts to allow you to easily(ish) run dhat and oprofile on zilliqa processes (feat) A ZQ2_API_URL env var for deposit txns so you can insert mitmweb to work out why they are failing. (feat) List API URLs in z deployer info
- Loading branch information
1 parent
1365d65
commit 4ad5f0b
Showing
30 changed files
with
1,236 additions
and
168 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#! /bin/bash | ||
# Use this as the value of ZQ2_SCRIPT to enable oprofile | ||
# You will also want to set [profile.release] debug = 1 in Cargo.toml | ||
# Args passed are (binary) (rest) | ||
valgrind --tool=dhat $* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#! /bin/bash | ||
# Use this as the value of PERF_SCRIPT to runt perf | ||
perf record --call-graph dwarf -- $* |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Testing | ||
|
||
There is now some test framework in z2. After starting a z2 network running in the context directory `/tmp/a`, you can... | ||
|
||
```sh | ||
./scripts/z2 test /tmp/a partition 0:0/30000 1-2:2000/30000 2-5:1-3:1000/20000 | ||
``` | ||
|
||
This tells the system to call the admin API to partition the network: | ||
|
||
* With node 0 being told to talk just to itself from t=0ms to t=30000ms. | ||
* With nodes 1 and 2 being told to talk to just 1 and 2 from t=2000ms to t=30000ms | ||
* With nodes 2-5 being told to talk to nodes 1-3 from t=1000ms to t=20000ms | ||
|
||
We do this by calling `admin_whitelist` at appropriate times. Code in `testing.rs`. | ||
|
||
You can also see what the nodes think of the chain: | ||
|
||
```sh | ||
./scripts/z2 test /tmp/a graphs xc viewmin-viewmax 1-2,3 | ||
``` | ||
|
||
* In the context `/tmp/a` | ||
* `graphs` - draw graphs | ||
* With names `/tmp/xc<node_number>.dot` | ||
* From `viewmin` to `viewmax` (see below) inclusive. | ||
* On nodes `1-2,3` | ||
|
||
`viewmax==0` means "the latest view". `viewmin>0, viewmax=0` means "the last `viewmin` views". | ||
Otherwise they are a range of views to visualise. | ||
|
||
Chrome is the best way to view svgs these days, it seems, so we | ||
convert the dotfiles written by the `admin` API to `svg` with `dot` | ||
(which you need to have installed) and then output the URLs. | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
p2p_port = 3333 | ||
bootstrap_address = [ "12D3KooWACUuqbMYRddTh34HejKg8i1QyuPJoffWVecYotCi8FzZ", "/ip4/34.87.179.185/udp/3333/quic-v1" ] | ||
|
||
[[nodes]] | ||
eth_chain_id = 33469 | ||
allowed_timestamp_skew = { secs = 60, nanos = 0 } | ||
data_dir = "/data" | ||
consensus.genesis_accounts = [ ["0xed4Ec243b08456404F37CFA9a09DFdF6a52137F1", "20_800_000_000_000_000_000_000_000_000" ] ] | ||
consensus.genesis_deposits = [ ["a81a31aaf946111bbe9a958cd9b8bd85d277b8b7c64fc67f579696dbcb6a460a96d4f70e0187064cda83a74b32b1f81f", "12D3KooWACUuqbMYRddTh34HejKg8i1QyuPJoffWVecYotCi8FzZ", "100_000_000_000_000_000_000_000_000", "0xed4Ec243b08456404F37CFA9a09DFdF6a52137F1", "0xed4Ec243b08456404F37CFA9a09DFdF6a52137F1"] ] | ||
|
||
# Reward parameters | ||
consensus.rewards_per_hour = "51_000_000_000_000_000_000_000" | ||
consensus.blocks_per_hour = 3600 | ||
consensus.minimum_stake = "10_000_000_000_000_000_000_000_000" | ||
# Gas parameters | ||
consensus.eth_block_gas_limit = 84000000 | ||
consensus.gas_price = "4_761_904_800_000" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.