cargo build --release
to compile it with optimizations. This command will create an executable in target/release instead of target/debug. The optimizations make your Rust code run faster, but turning them on lengthens the time it takes for your program to compile the code. If you’re benchmarking your code’s running time, be sure to run cargo build --release
and benchmark with the executable in target/release
SessionKeys
is a generic, indexable type that is made concrete in the runtime.MaximumBlockLength
), and an overall practical limit to the storage footprint of the blockchain.MaximumBlockWeight
, and the weight of the individual extrinsics in a transaction pool, we can select the set of extrinsics that allow us to saturate our block, while not going over the limits.Note: There is also a length_fee which takes into account the amount of data included in an extrinsic.
sudo
("superuser do") administrator. In FRAME, the Root
Origin is used to identify the runtime administrator; some of the FRAME's features, including the ability to update the runtime by way of the set_code
function, are only accessible to this administrator. The Sudo pallet maintains a single storage item: the ID of the account that has access to the pallet's dispatchable functions. The Sudo pallet's sudo
function allows the holder of this account to invoke a dispatchable as the Root
origin. The Sudo rights will be removed after the main-network and given to the community.rustfmt
and rust-analyzer
already work out of the box.--validator
--bootnode
--name
--chain
--base-path
--chain local
--chain dev
--port
--ws-port
--rpc-port
--telemetry-url
--name Alice --validator
with session keys for Alice
added to keystore--name Bob --validator
with session keys for Bob
added to keystore--name One --validator
with session keys for One
added to keystore--name Two --validator
with session keys for Two
added to keystoresp-*
), Frame (frame-*
) and the pallets (pallets-*
), binaries (/bin
) and all other utilities are licensed under Apache 2.0.