Summary - Substrate is a chain layer which allows pluggable consensus, definition of storage through the seperation of “extrinsics” and abstracts the runtime design allowing for blockchain providers to decide which runtime best suits there application needs. It also has been built with light client protocol in mind with a number of storage and pruning options giving the ability to clearly seperated different actors requirements for infrastructure (e.g. participants can run a light client on a mobile device and validators can run full nodes with gauranteed performance and uptime). On top of this Polkadot sits as a relay chain (built on Substrate) which allows private chains to share infrastucture such as validators.
polkadot_consensus::Network
trait, providing a hook to be called each time consensus begins on a new chain head.Deploying a Substrate Chain
Note by default chaindata is held in
Johns-MacBook-Pro-2:chains jincubator$ pwd
/Users/jincubator/Library/Application Support/Substrate/chains
Johns-MacBook-Pro-2:chains jincubator$ ll
total 0
drwxr-xr-x 5 jincubator staff 160 Oct 22 21:31 bbq-birch
drwxr-xr-x 5 jincubator staff 160 Oct 23 11:50 development
drwxr-xr-x 5 jincubator staff 160 Oct 23 14:16 staging_testnet
and to purge a chain see
substrate purge-chain --help
Deploying Polkadot
Deploying a simple contract
Running a Transaction