forked from paritytech/substrate
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP draft compiles * Add authorship pallet. * bump spec version * cargo fmt * remove commented code * add license * wrap commetn * Add some notes * another idea * rename pallet * remove pallet authorship. That was a false lead. * Make it compile * Event and event handler * Ditch FindAuthor implementation. * Inherent is required * Add the digest. Is it really that easy? * Wire into standalone node. Lots of duplicate code. * cargo fmt * cleanup and fix * Add to both runtimes * init * add check-inherent impl and fix runtime config * add Call to stake config and fix standalone Cargo lock * add stakers in genesis and remove repeated timestamp inherent in parachain node * wired parachain cli with account id param * move to account_id to RunCmd like in utxo workshop * parse H160 from string * clean * wire standalone node * make account_id optional * fix parse h160 impl and return error early if cli run account id is not set * fix inherent provider registration in standalone, add tests, now an issue generating the chain spec * split match statement in nodes so account is only required in some branches * push attempt * pass tests * pass * make author permissions more generic, unit test payout distribution, bump versions * init stake polkadot js integration tests * update runtime parameters * update node genesis with new validator min stake requirements * and integration tests * test rewards sent to sole validator for block authoring * add code docs * green * fmt * Update tests/tests/test-balance.ts Co-authored-by: Joshy Orndorff <[email protected]> * Update pallets/author-inherent/src/lib.rs Co-authored-by: Joshy Orndorff <[email protected]> * Update pallets/author-inherent/src/lib.rs Co-authored-by: Joshy Orndorff <[email protected]> * Update pallets/stake/src/lib.rs Co-authored-by: Joshy Orndorff <[email protected]> * Update pallets/stake/src/lib.rs Co-authored-by: Joshy Orndorff <[email protected]> * fmt and add back parachain import * address some comments * comment use of account as H160 default in when not needed for call * only register author inherent when running node and otherwise pass in None * rm outdated comment Co-authored-by: Joshy Orndorff <[email protected]> Co-authored-by: Joshy Orndorff <[email protected]>
- Loading branch information
1 parent
83823ac
commit 22c4742
Showing
29 changed files
with
523 additions
and
148 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
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
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
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
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.