Skip to content

w3f-grants-archive/etf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Encryption to the Future Node

This repository contains implementations of the ETF consensus mechanism and a substrate node that uses it.

This project is funded by the Web3 Foundation Grants Program

Build

Use the following command to build the node without launching it:

cargo build --release

Docker

From the root directory, run:

docker build .

Testing

Unit Tests

cargo test

E2E Tests

cargo test --features e2e

Benchmarks

Build with benchmarks using:

cargo build --release --features runtime-benchmarks

and run them with:

# list all benchmarks
./target/release/node benchmark pallet --chain dev --pallet "*" --extrinsic "*" --repeat 0
# benchmark the etf pallet
./target/release/node benchmark pallet \
    --chain dev \
    --wasm-execution=compiled \
    --pallet pallet_etf \
    --extrinsic "*" \
    --steps 50 \
    --repeat 20 \
    --output /pallets/etf/src/weight.rs

About

"Encryption to the Future" consensus and node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 99.3%
  • Other 0.7%