-
Notifications
You must be signed in to change notification settings - Fork 789
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revive outdated Sassafras
- Loading branch information
Showing
21 changed files
with
129 additions
and
83 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,38 @@ | ||
#!/bin/bash | ||
|
||
binary="./target/release/node-sassafras" | ||
|
||
steps=20 | ||
repeat=3 | ||
|
||
export RUST_LOG="sassafras=debug" | ||
|
||
pallet='pallet_sassafras' | ||
|
||
extrinsic=$1 | ||
|
||
if [[ $extrinsic == "" ]]; then | ||
list=$($binary benchmark pallet --list | grep $pallet | cut -d ',' -f 2) | ||
|
||
echo "Usage: $0 <benchmark>" | ||
echo "" | ||
echo "Available benchmarks:" | ||
for bench in $list; do | ||
echo "- $bench" | ||
done | ||
echo "- all" | ||
exit | ||
fi | ||
|
||
if [[ $extrinsic == "all" ]]; then | ||
extrinsic='*' | ||
fi | ||
|
||
$binary benchmark pallet \ | ||
--chain dev \ | ||
--pallet $pallet \ | ||
--extrinsic "$extrinsic" \ | ||
--steps $steps \ | ||
--repeat $repeat \ | ||
--output weights.rs \ | ||
--template substrate/.maintain/frame-weight-template.hbs |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
Client module for Sassafras consensus | ||
Client module for SASSAFRAS consensus | ||
|
||
# ⚠️ WARNING ⚠️ | ||
|
||
The crate interfaces and structures are highly experimental and may be subject | ||
to significant changes. | ||
- Tracking issue: /~https://github.com/paritytech/polkadot-sdk/issues/41 | ||
- Protocol RFC proposal: /~https://github.com/polkadot-fellows/RFCs/pull/26 | ||
|
||
Depends on upstream experimental feature: `bandersnatch-experimental`. | ||
# ⚠️ WARNING ⚠️ | ||
|
||
Tracking issue: /~https://github.com/paritytech/polkadot-sdk/issues/41 | ||
The crate interfaces and structures are experimental and may be subject to changes. |
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.