dependabot[bot]
559faf1c61
Bump async-std from 1.9.0 to 1.10.0 ( #9759 )
...
Bumps [async-std](https://github.com/async-rs/async-std ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/async-rs/async-std/releases )
- [Changelog](https://github.com/async-rs/async-std/blob/master/CHANGELOG.md )
- [Commits](https://github.com/async-rs/async-std/compare/v1.9.0...v1.10.0 )
---
updated-dependencies:
- dependency-name: async-std
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-29 10:53:15 +02:00
Bastian Köcher
89a85936e5
Fix flaky sync tests ( #9889 )
2021-09-29 09:10:20 +02:00
Bastian Köcher
62187b5916
Prepare UI tests for rust 1.55 ( #9637 )
...
* Prepare UI tests for rust 1.54
* Delete wrong_page.stderr
* CI: run with a staging CI image
* Revert "CI: run with a staging CI image"
This reverts commit 66f5b00d14b50fd9d8fbf773f7e884f380697591.
* CI: debug, again
* LOG_TARGET is only used in std
* Remove unnecessary unsafe
* Fixes
* Use correct rustc locally
* FMT
* Compile with benchmarking
* Review feedback
* Some ui tests
* I know...
* Fix wasm tests
Co-authored-by: Denis P <denis.pisarev@parity.io >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-09-24 10:42:08 +00:00
Qinxuan Chen
f198a5b86b
beefy-gadget-rpc: fix toml warnings ( #9854 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-09-24 07:30:38 +00:00
Andreas Doerr
283c8daa81
Integrate BEEFY ( #9833 )
...
* Initial project setup and skeleton (#4 )
* initial project setup for beefy gadget client
* update editorconfig
* update gitignore
* add initial skeleton for beefy gadget worker
* add skeleton for gossip processing
* add app crypto
* move around some code
* add basic flow for voting
* add logic for picking blocks to sign
* add rustfmt config
* add example node with beefy gadget
* use u32::next_power_of_two
* make maximum periodicity configurable
* add copyright header
* rename max_periodicity to min_interval
* CI stuff (#5 )
* CI stuff.
* Fix workspace.
* cargo fmt --all
* Add license for beefy-gadget
* One toolchain to rule them all.
* Clippy.
* Fix clippy.
* Clippy in the runtime.
* Fix clippy grumbles.
* cargo fmt --all
* Primitives & Light Client examples (#8 )
* Primitives.
* Docs.
* Document primitives.
* Simple tests.
* Light client examples.
* Fix stuff.
* cargo fmt --all
* Add a bunch of tests for imports.
* Add more examples.
* cargo fmt --all
* Fix clippy.
* cargo fmt --all
* Apply suggestions from code review
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Add GRANDPA / FG clarifications.
* Fix min number of signatures.
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update to substrate master (#22 )
* update to substrate master
* update dependencies
* fix clippy issues
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
* Add beefy pallet (#25 )
* move beefy application crypto to primitives
* make primitives compile under no_std
* add beefy pallet that maintains authority set
* add beefy pallet to node example runtime
* tabify node-example cargo.toml files
* use double quotes in Cargo.toml files
* add missing hex-literal dependency
* add runtime api to fetch BEEFY authorities
* fix clippy warnings
* rename beefy-pallet to pallet-beefy
* sort dependencies in node-example/runtime/Cargo.toml
* Signed commitments rpc pubsub (#26 )
* move beefy application crypto to primitives
* make primitives compile under no_std
* add beefy pallet that maintains authority set
* add beefy pallet to node example runtime
* tabify node-example cargo.toml files
* use double quotes in Cargo.toml files
* add missing hex-literal dependency
* add runtime api to fetch BEEFY authorities
* fix clippy warnings
* gadget: use commitment and signedcommitment
* gadget: send notifications for signed commitments
* gadget: add rpc pubsub for signed commitments
* node-example: enable beefy rpc
* gadget: fix clippy warnings
* rename beefy-pallet to pallet-beefy
* sort dependencies in node-example/runtime/Cargo.toml
* gadget: add documentation on SignedCommitment rpc wrapper type
* gadget: add todos about dummy beefy commitments
* gadget: remove redundant closure
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Integrate MMR and deposit root into the digest. (#24 )
* Add basic MMR.
* Deposit digest item.
* cargo fmt --all
* Merge with primitives.
* cargo fmt --all
* Fix extra spaces.
* cargo fmt --all
* Switch branch.
* remove stray whitespace
* update to latest td-mmr commit
* fix clippy error
Co-authored-by: André Silva <andrerfosilva@gmail.com >
* use new mmr root as commitment payload (#27 )
* use new mmr root as commitment payload
* fix mmr root codec index
* warn on MMR root digest not found
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* add type alias for MMR root hash
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Bump serde_json from 1.0.59 to 1.0.60 (#28 )
* Update to latest substrate. (#32 )
* Update to latest substrate.
* Fix tests.
* cargo fmt --all
* Switch to master.
* Bump serde from 1.0.117 to 1.0.118 (#29 )
* Bump serde from 1.0.117 to 1.0.118
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.117 to 1.0.118.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.117...v1.0.118 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
* Bump arc-swap.
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
* Remove transition flag (#35 )
* Get rid of is_set_transition_flag
* Fix tests.
* cargo fmt --all
* Bump futures from 0.3.9 to 0.3.12 (#50 )
* Bump log from 0.4.11 to 0.4.13 (#52 )
* Bump Substrate and Deps (#57 )
* Update README (#58 )
* Update README
* Apply suggestions from code review
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* address review comments
* missed a typo
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Add validator set to the pallet. (#65 )
* Bump Substrate and Deps (#71 )
* Bump Substrate and Deps
* pin serde and syn
* bump Substrate again for '__Nonexhaustive' fix
* add cargo deny ignore
* Beefy pallet test (#74 )
* setup mock
* test session change
* silence beefy
* clippy still
* no change - no log
* clippy again
* Apply suggestions from code review
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* code review changes, added additional test
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Beefy node cleanup (#75 )
* bump serde
* bump substrate, scale-codec 2.0.0
* we need a proper beefy node
* rename primitives as well
* Sort members.
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
* Migrate beefy-pallet to FRAMEv2 (#76 )
* migrate beefy-pallet to FRAMEv2
* Code review
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
* Run BEEFY worker as non-validator (#77 )
* run BEEFY worker as non-validator
* don't check for roloe.is_authority
* change enum type name
* Bump Substrate and Deps (#79 )
* Add BEEFY gadget as extra peer set (#80 )
* Add BEEFY gadget as extra peer set
* use BEEFY protocol
* Add ValidatorSetId to BEEFY digest (#85 )
* add ValidatorSetId to BEEFY digest
* apply review changes
* Bump Substrate and Deps (#91 )
* Bump Substrate and Deps
* Bump Substrate again in order to include a hot-fix
* redo again
* use CryptoStore issue
* cargo fmt
* Bump serde_json from 1.0.63 to 1.0.64 (#93 )
* Track BEEFY validator set (#94 )
* Track BEEFY validator set
* Add validator_set_id to BeefyWorker
* Make validattor_set_id optional
* Ad 92 (#97 )
* sign_commitment()
* Error handling todo
* Add error type (#99 )
* Add error type
* Address review
* Extract worker and round logic (#104 )
* Bump serde from 1.0.123 to 1.0.124 (#106 )
* Rework BeefyAPI (#110 )
* Initialize BeefyWorker with current validator set (#111 )
* Update toolchain (#115 )
* Use nightly toolchain
* dongradde to latest clippy stable
* GH workflow trail and error
* next try
* use stable for clippy
* update wasm builder
* yet another try
* fun with CI
* no env var
* and one more
* allow from_over_into bco contruct_runtime
* back to start
* well ...
* full circle
* old version was still used
* Bump Substrate and Deps (#117 )
* Bump Substrate and Deps
* cargo fmt should enforce uniform imports
* merge some imports
* Delayed BEEFY worker initialization (#121 )
* lifecycle state
* add Client convenience trait
* rework trait identifiers
* WIP
* rework BeefyWorker::new() signature
* Delayed BEEFY gadget initialization
* address review
* Bump substrate. (#123 )
* Bump substrate.
* Fix tests.
* Lower log-level for a missing validator set (#124 )
* lower log-level for a missing validator set
* move best_finalized_block initialization
* Setup Prometheus metrics (#125 )
* setup Prometheus metrics
* expose validator set id
* cargo fmt
* Update beefy-gadget/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* add vote messages gossiped metric
* track authorities change, before checking for MMR root digest
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Make Client convenience trait public (#126 )
* Bump serde from 1.0.124 to 1.0.125 (#131 )
* Reset rounds on new validator set. (#133 )
* Re-set rounds on new validator set.
* Fix docs.
* Bump Substrate and Deps (#134 )
* beefy: authority set changes fixes (#139 )
* node: fix grandpa peers set config
* gadget: update best finalized number only when finalized with beefy
* gadget: process authorities changes regardless of vote status
* gadget: remove superfluous signature type (#140 )
* node: fix grandpa peers set config
* gadget: update best finalized number only when finalized with beefy
* gadget: process authorities changes regardless of vote status
* gadget: remove superfluous signature type
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
* gadget: reduce gossip spam (#141 )
* node: fix grandpa peers set config
* gadget: update best finalized number only when finalized with beefy
* gadget: process authorities changes regardless of vote status
* gadget: remove superfluous signature type
* gadget: only gossip last 5 rounds
* gadget: note round to gossip validator before gossiping message
* gadget: fix clippy warnings
* gadget: update docs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: adoerr <0xad@gmx.net >
* gadget: verify SignedCommitment message signature (#142 )
* gadget: verify SignedCommitment message signature
* gadget: log messages with bad sigs
* gadget: move todo comment
* Bump futures from 0.3.13 to 0.3.14 (#145 )
* Milestone 1 (#144 )
* use best_finalized, prevent race
* make best_finalized_block an Option, should_vote_on bails on None
* Bump futures from 0.3.13 to 0.3.14
* Revert futures bump
* Revert "Revert futures bump"
This reverts commit a1b5e7e9bac526f2897ebfdfee7f02dd29a13ac5.
* Revert "Bump futures from 0.3.13 to 0.3.14"
This reverts commit a4e508b118ad2c4b52909d24143c284073961458.
* debug msg if the bail voting
* validator_set()
* local_id()
* get rid of worker state
* Apply review suggestions
* fix should_vote_on()
* Extract BeefyGossipValidator (#147 )
* Extract BeefyGossipValidator
* Apply review suggestions
* Add block_delta parameter to start_beefy_gadget (#151 )
* Add block_delta parameter
* rename to min_block_delta
* Add additional metrics (#152 )
* Add additional metrics
* add skipped session metric
* add some comment for temp metric
* don't log under info for every concluded round (#156 )
* don't log error on missing validator keys (#157 )
* don't log error on missing validator keys
* remove unused import
* Fix validator set change handling (#158 )
* reduce some logs from debug to trace
* fix validator set changes handling
* rename validator module to gossip
* run rustfmt
* Fix should_vote_on() (#160 )
* Fix should_vote_on()
* by the textbook
* fix the algorithm
* Apply review suggestions
* don't use NumberFor in vote_target
Co-authored-by: André Silva <andrerfosilva@gmail.com >
* Make KeyStore optional (#173 )
* Use builder pattern for NonDefaultSetConfig (#178 )
Co-authored-by: adoerr <0xad@gmx.net >
* Append SignedCommitment to block justifications (#177 )
* Append SignedCommitment
* add BeefyParams
* add WorkerParams
* use warn
* versioned variant for SignedCommitment
* Bump serde from 1.0.125 to 1.0.126 (#184 )
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.125 to 1.0.126.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.125...v1.0.126 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump strum from 0.20.0 to 0.21.0 (#195 )
* Bump strum from 0.20.0 to 0.21.0
Bumps [strum](https://github.com/Peternator7/strum ) from 0.20.0 to 0.21.0.
- [Release notes](https://github.com/Peternator7/strum/releases )
- [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Peternator7/strum/commits )
---
updated-dependencies:
- dependency-name: strum
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* use dervie feature for strum; clippy and deny housekeeping
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: adoerr <0xad@gmx.net >
* Make concluded round an info log (#200 )
* Remove external crypto trait bounds (#207 )
* BeefyKeystore newtype
* WIP
* remove mod ecdsa
* WIP
* fix tests
* some polishing
* Rename AuthorityId to BeefyId to avoid type conflict in UI (#211 )
* Add trace points; Reduce MAX_LIVE_GOSSIP_ROUNDS (#210 )
* Add trace points; Reduce MAX_LIVE_GOSSIP_ROUNDS
* log local authority id
* Additional initial authority id's (#217 )
* Scratch concluded rounds
* adjust testnet doc
* fix authority key typo
* We don't want no scratches
* address review comments
* Fix note_round() (#219 )
* rename BeefyGossipValidator
* Fix note_round()
* use const for assert
* put message trace points back in
* test case note_same_round_twice()
* address review comments
* remove redundant check
* Use LocalKeystore for tests (#224 )
* private_keys()
* Use LocalKeystore for tests
* Use keystore helper
* Address review
* some reformatting
* Cache known votes in gossip (#227 )
* Implement known messages cache.
* Add tests.
* Appease clippy.
* More clippy
Co-authored-by: adoerr <0xad@gmx.net >
* Some key store sanity checks (#232 )
* verify vote message
* verify_validator_set()
* rework logging
* some rework
* Tone down warnings.
* Add signature verification.
* Tone down more.
* Fix clippy
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
* Use Binary Merkle Tree instead of a trie (#225 )
* Binary tree merkle root.
* Add proofs and verification.
* Clean up debug.
* Use BEEFY addresses instead of pubkeys.
* Use new merkle tree.
* Optimize allocations.
* Add test for larger trees.
* Add tests for larger cases.
* Appease clippy
* Appease clippy2.
* Fix proof generation & verification.
* Add more test data.
* Fix CLI.
* Update README
* Bump version.
* Update docs.
* Rename beefy-merkle-root to beefy-merkle-tree
Co-authored-by: adoerr <0xad@gmx.net >
* Bump Substrate and Deps (#235 )
* BEEFY+MMR pallet (#236 )
* Add MMR leaf format to primitives.
* Fix tests
* Initial work on the BEEFY-MMR pallet.
* Add tests to MMR pallet.
* Use eth addresses.
* Use binary merkle tree.
* Bump libsecp256k1
* Fix compilation.
* Bump deps.
* Appease cargo deny.
* Re-format.
* Module-level docs.
* no-std fix.
* update README
Co-authored-by: adoerr <0xad@gmx.net >
* Fix noting rounds for non-authorities (#238 )
* Bump env_logger from 0.8.4 to 0.9.0 (#242 )
Bumps [env_logger](https://github.com/env-logger-rs/env_logger ) from 0.8.4 to 0.9.0.
- [Release notes](https://github.com/env-logger-rs/env_logger/releases )
- [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md )
- [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.4...v0.9.0 )
---
updated-dependencies:
- dependency-name: env_logger
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* gadget: add global timeout for rebroadcasting messages (#243 )
* gadget: add global timeout for rebroadcasting messages
* update rustfmt.toml
* make message_allowed() a debug trace
Co-authored-by: adoerr <0xad@gmx.net >
* Bump Substrate and Deps (#245 )
* Bump Substrate and Deps
* Bump Substrate again
* Bump futures from 0.3.15 to 0.3.16 (#247 )
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.15 to 0.3.16.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.15...0.3.16 )
---
updated-dependencies:
- dependency-name: futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump libsecp256k1 from 0.5.0 to 0.6.0 (#249 )
* Bump libsecp256k1 from 0.5.0 to 0.6.0
Bumps [libsecp256k1](https://github.com/paritytech/libsecp256k1 ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/paritytech/libsecp256k1/releases )
- [Changelog](https://github.com/paritytech/libsecp256k1/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/libsecp256k1/commits )
---
updated-dependencies:
- dependency-name: libsecp256k1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* use correct crate name
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: adoerr <0xad@gmx.net >
* Derive `scale_info::TypeInfo` for types used in polkadot (#218 )
* Add scale-info TypeInfo derives
* Update scale-info
* Add crates.io patches
* Use substrate aj-metadata-vnext branch
* Revert master branch substrate deps
* Add scale-info to beefy-pallet
* scale-info v0.9.0
* Remove github dependencies and patches
* More TypeInfo derives
* Update scale-info to 0.10.0
* Add missing scale-info dependency
* Add missing TypeInfo derive
* Hide TypeInfo under a feature.
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
* Bump serde from 1.0.126 to 1.0.127 (#260 )
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.126 to 1.0.127.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.126...v1.0.127 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump Substrate and Deps (#262 )
* Update jsonrpc (#265 )
* Update jsonrpc
* Update Substrate
* bump Substrate and Deps (#268 )
* Bump serde from 1.0.127 to 1.0.128 (#272 )
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.127 to 1.0.128.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.127...v1.0.128 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix spelling (#271 )
* Bump serde from 1.0.128 to 1.0.130 (#276 )
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.128 to 1.0.130.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.128...v1.0.130 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump scale-info from 0.10.0 to 0.12.0 (#275 )
Bumps [scale-info](https://github.com/paritytech/scale-info ) from 0.10.0 to 0.12.0.
- [Release notes](https://github.com/paritytech/scale-info/releases )
- [Changelog](https://github.com/paritytech/scale-info/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/scale-info/commits )
---
updated-dependencies:
- dependency-name: scale-info
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: adoerr <0xad@gmx.net >
* Update to scale-info 1.0 (#278 )
* bump substrate (#282 )
* bump Substrate and Deps
* cargo fmt
Co-authored-by: Wenfeng Wang <kalot.wang@gmail.com >
* Update worker.rs (#287 )
* Bump anyhow from 1.0.43 to 1.0.44 (#290 )
* Bump anyhow from 1.0.43 to 1.0.44
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.43...1.0.44 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* derive Default
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: adoerr <0xad@gmx.net >
* Remove optional `scale-info` feature (#292 )
* Make scale-info dependency non-optional
* Remove feature gated TypeInfo derives
* Import TypeInfo
* Update substrate
* Fix up runtime
* prune .git suffix (#294 )
* remove unused deps (#295 )
* remove unused deps
* update lock file
* Bump libsecp256k1 from 0.6.0 to 0.7.0 (#296 )
* Bump libsecp256k1 from 0.6.0 to 0.7.0
Bumps [libsecp256k1](https://github.com/paritytech/libsecp256k1 ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/paritytech/libsecp256k1/releases )
- [Changelog](https://github.com/paritytech/libsecp256k1/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/libsecp256k1/commits )
---
updated-dependencies:
- dependency-name: libsecp256k1
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* update sec advisories
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: adoerr <0xad@gmx.net >
* clean compile
* use path dependencies
* beefy-gadget license header
* pallet-beefy license header
* pallet-beefy-mmr license header
* beefy-primitves license header
* carg fmt
* more formatting
* shorten line
* downgrade parity-scale-codec to 2.2.0
* use path dependency for Prometheus endpoint
* remove clippy annotations
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
Co-authored-by: André Silva <andrerfosilva@gmail.com >
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Jones <ascjones@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: drewstone <drewstone329@gmail.com >
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Wenfeng Wang <kalot.wang@gmail.com >
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
2021-09-23 19:02:30 +00:00
Pierre Krieger
94635218af
Silence Kademlia InboundRequestServed event ( #9797 )
...
Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com >
2021-09-21 14:59:57 +00:00
Roman
f6ab53f3c3
Don't answer peers with a low reputation ( #9008 )
...
* Init architecture for not answering peers with a low reputation
* Get reputation inside of RequestResponsesBehaviour::poll
* Filter reputation in RequestResponsesBehaviour
* Pass PeersetHandle to RequestResponsesBehaviour
* Add more docs
* Fix tests compilation
* Fix compiler warnings (still FIXME)
* Fix tests
* Fmt code
2021-09-21 11:32:13 +00:00
Roman
ce6e578d14
Reduce the number of types in build_transport for transport ( #9793 )
2021-09-16 14:31:44 +00:00
Andrew Jones
49b6dfd2e5
Enrich metadata with type information ( #8615 )
...
* Cargo.lock after merge
* Restore scale-info feature
* Fully qualify TypeInfo derive
* Skip PendingSwap T
* Add missing skip_type_params attr
* metadata docs features
* Reduce pallet event attribute to struct
* Cargo.lock
* Update frame/balances/src/tests_composite.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Line widths check
* Cargo.lock
* Add scale-info/std
* Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Use `skip_type_params` to remove `TypeInfo` requirements on checks
* Revert "Remove unused Call metadata stuff"
This reverts commit 41311f85
* Skip BalanceSwapAction type parameter
* Remove unused event metadata macro
* Update frame-metadata
* Update primitives/npos-elections/compact/src/codec.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Manual TypeInfo for Header
* Remove TypeInfo requirement for consts in BoundedVec etc.
* Another TypeInfo bound removed
* review: fix indentation
* TypeInfo impls for Identity types
* Add some todos to add custom TypeInfo impls
* Update frame/support/procedural/src/pallet/expand/pallet_struct.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Add some todos to add custom TypeInfo impls
* Add a test for manual Data TypeInfo impl
* Add custom TypeInfo impl for Vote
* Era custom TypeInfo crimes
* Revert finality-grandpa version to 0.14.z
* review: renamed module to pallet_constants_metadata
* New line at end of file
* Add missing scale-info/std
* Update frame/support/src/storage/types/mod.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Remove StorageEntryType::Map unused flag
* Add missing scale-info dependency after merge
* SignedExtension::AdditionalSigned metadata
* Update frame-metadata, use abbreviated docs and args fields
* Update frame/example/Cargo.toml
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Add scale_info/std and remove unused scale-info dependency
* Remove scale-info dependency
* Remove treasury pallet::metadata
* Remove redundant Event test
* Add back scale-info as dev dependency
* fix error metadata when no error defined in decl_module
* Add Module3 to tests
* Fix metadata test
* Add docs feature to frame-support test
* WIP fixing pallet metadata test
* Remove redundant FunctionMetadata, FunctionArgumentMetadata as per https://github.com/paritytech/frame-metadata/pull/20
* Use main branch of frame-metadata
* Use patch of scale-info for latest changes
* Use latest patched scale-info
* Manual TypeInfo for DigestItem
* Manual TypeInfo for DigestItem
* Update scale-info
* Skip __Ignore variants for Error, depends on https://github.com/paritytech/scale-info/pull/117
* Named fields for FRAME v2 pallet Call variants
* Named fields for FRAME v1 pallet Call variants
* Add missing scale-info dependency
* WIP expand benchmark call variant
* fix benchmark with new function
create a new function for each variant of a pallet call.
This function is called by benchmarking macro in order not to break call
creation with unnamed argument
* fix tests
* more fix
* Fix staking tests
* Fix offchain workers calls
* Cherry pick rustfmt.toml from master
* cargo +nightly-2021-06-22 fmt --all
* Update to new call variant structs
* More call variant struct updates
* Remove unused import
* More call variant structs
* More call variant structs
* Even more call variant structs
* Mooar variant structs
* Evermore variant structs
* Call variant structs ad infinitum
* Fmt
* More call variants
* Last call variant
* Call variants all done?
* Fix SS58Prefix type
* Potential workaround for BitFlags<IdentityFields> TypeInfo
* Enable docs capturing for Call, Event, and Error types
* Fix IdentityFields TypeInfo
* Remove metadata-docs feature
* Add capture_docs = true for legacy Call, Event and Error types
* Fmt
* Fix metadata test type
* Update benchmarks with call struct variants
* Fmt
* More test fixes
* Fmt
* Fix benches
* Use latest capture_docs attr
* Latest scale_info
* Fmt
* review: change &Vec to &[]
* Remove pallet metadata attr
* review: remove commented out test code
* review: skip_type_params trailing comma suggestion
* Update to scale-info 0.10.0
* Update construct_runtime ui tests, different because of metadata TypeInfo impls
* Add some TypeInfo derives for UI tests
* Update storage ensure span ui stderrs
* Update call argument bound ui tests
Possibly changed because change from tuple to struct variants?
* Add scale-info dev dependency
* Update to latest finality-grandpa release
* review: missing newline
* review: missing scale-info/std
* review: remove duplicate scale-info/std
* review: remove fully qualified TypeInfo
* review: add missing scale-info/std
* review: remove unnecessary imports.
* Fmt
* Use crates.io RC version of frame-metadata
* Remove scale-info/std because it is a dev dependency
* Add missing scale_info dev-dependency for test
* Delete empty metadata folder
* Fix sp_std import
* review: improve manual UncheckedExtrinsic TypeInfo impl
* review: use full scale-info for dev-dependency
* Remove DefaultByteGetter impl
* review: derive TypeInfo for generic header
* Fmt
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update bin/node/executor/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/identity/src/types.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/support/src/dispatch.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove redundant derive
* Simplify scale-info dependency
* Strip underscore prefix from call variant struct names
* Another underscore field
* More underscore fields
* Another underscore field
* Update to frame-metadata 14.0.0-rc.2 with combined StorageEntryType::Map
* Fmt
* Revert weights formatting
* Fix up some tests
* Fix up some tests for StorageEntryTypeMetadata
* scale-info dev dependency
* Fix test error
* Add missing TypeInfo derives
* Add back missing scale-info dependency
* Add back missing scale-info dependency
* Fix npos compact impls
* Cargo.lock
* Fmt
* Fix errors
* Fmt
* Fix renamed raw_solution field
* Fix error
* Fmt
* Fix some benchmarks
* Fmt
* Stray R
* Fix
* Add missing TypeInfos
* ui test fix
* Fix line widths
* Revert "ui test fix"
This reverts commit 2d15ec058a216e3f92d713f1174603a2bb1eac65.
* Upgrade to scale-info 0.11.0
* Revert "Upgrade to scale-info 0.11.0"
This reverts commit 047bb179085a0059c36cd20ab405f55cf0867e28.
* Add Runtime type
* Update to scale-info 0.12
* Update to scale-info 1.0
* Update frame-metadata to version 14.0.0
* Patch finality-grandpa until release available
* Fix metadata tests
* Fix metadata tests
* Fmt
* Remove patched finality-grandpa
* Fix tests, use scale_info imports
* Fix pallet tests
* Add BlockNumber TypeInfo bound
* ui test fix
* Cargo.lock
* Remove pallet metadata
* Cargo.lock
* Add missing scale-info dependency
* Remove pallet event metadata
* Fix error
* Fix collective errors
* Semicolol
* Fmt
* Remove another metadata attribute
* Add new variant to custom digest TypeInfo
* Fmt
* Cargo.lock from master
* Remove comma lol
* Fix example call error
* Fix example call error properly
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-15 11:40:41 +00:00
dependabot[bot]
ebe78a4c1b
Bump serde_json from 1.0.64 to 1.0.68 ( #9783 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.64 to 1.0.68.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.64...v1.0.68 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-15 10:20:07 +00:00
Liu-Cheng Xu
2562f8c65e
Clean up sc-network ( #9761 )
...
* Clean up sc-network
- Avoid using clone() for the Copy type `PeerId`.
- Use `find_map` for `filter_map` and `next`.
- Use `Self`.
* More on Copy types
* Cargo +nightly fmt --all
* More ..
* fmt
* Revert vec![default_notif_handshake_message]
2021-09-13 20:11:29 +02:00
Robert Klotzner
2c36adf898
More descriptive errors. ( #9768 )
2021-09-13 12:02:00 +00:00
Pierre Krieger
d5d6d79e37
Purge addresses that fail to reach a peer ( #8843 )
...
Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com >
2021-09-13 13:31:04 +02:00
Falco Hirschenberger
c9197a2c6a
Add childstate_getStorageEntries RPC ( #9459 )
...
* Add storage query functions for multiple keys
fixes #9203
* Query all keys in one request and add more tests
* Make it compatible with stable release channel
* Update to new futures
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_light.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_light.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Satisfy borrowck
* Remove non-RPC `storage_entries` functions.
* Revert "Remove non-RPC `storage_entries` functions."
This reverts commit d840015c59ce865f879178594088c79082e8d151.
* Revert "Revert "Remove non-RPC `storage_entries` functions.""
This reverts commit 5813b439a4b467e022c627e3fe60cf2fa5520db4.
* Finally some formatting
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-13 09:42:08 +00:00
Chevdor
0d30893840
update crate names and rand deps ( #9762 )
2021-09-13 08:52:41 +00:00
Bastian Köcher
c09d52ead7
Use tokio runtime handle instead of TaskExecutor abstraction ( #9737 )
...
* Use tokio runtime handle instead of TaskExecutor abstraction
Before this pr we had the `TaskExecutor` abstraction which theoretically
allowed that any futures executor could have been used. However, this
was never tested and is currently not really required. Anyone running a
node currently only used tokio and nothing else (because this was hard
coded in CLI). So, this pr removes the `TaskExecutor` abstraction and
relies directly on the tokio runtime handle.
Besides this changes, this pr also makes sure that the http and ws rpc
server use the same tokio runtime. This fixes a panic that occurred when
you drop the rpc servers inside an async function (tokio doesn't like
that a tokio runtime is dropped in the async context of another tokio
runtime).
As we don't use any custom runtime in the http rpc server anymore, this
pr also removes the `rpc-http-threads` cli argument. If external parties
complain that there aren't enough threads for the rpc server, we could
bring support for increasing the thread count of the tokio runtime.
* FMT
* Fix try runtime
* Fix integration tests and some other optimizations
* Remove warnings
2021-09-12 12:29:11 +00:00
dependabot[bot]
110ba540ec
Bump proc-macro2 from 1.0.28 to 1.0.29 ( #9741 )
...
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2 ) from 1.0.28 to 1.0.29.
- [Release notes](https://github.com/alexcrichton/proc-macro2/releases )
- [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.28...1.0.29 )
---
updated-dependencies:
- dependency-name: proc-macro2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-10 10:56:14 +00:00
dependabot[bot]
d1c281461d
Bump zeroize from 1.2.0 to 1.4.1 ( #9591 )
...
Bumps [zeroize](https://github.com/iqlusioninc/crates ) from 1.2.0 to 1.4.1.
- [Release notes](https://github.com/iqlusioninc/crates/releases )
- [Commits](https://github.com/iqlusioninc/crates/compare/zeroize/v1.2.0...zeroize/v1.4.1 )
---
updated-dependencies:
- dependency-name: zeroize
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 11:31:31 +00:00
dependabot[bot]
d32340b913
Bump lru from 0.6.5 to 0.6.6 ( #9635 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.6.5 to 0.6.6.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.6.5...0.6.6 )
---
updated-dependencies:
- dependency-name: lru
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-09 13:26:25 +02:00
Bastian Köcher
129c9ed09e
Remove the last bits of unknown_os in the code base ( #9718 )
...
* Remove the last bits of unknown_os in the code base
* Fmt
2021-09-09 11:17:16 +02:00
Pierre Krieger
5666d9de94
Fix flaky test ( #9729 )
...
* Fix flaky test
* Restore cargo fmt
Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com >
2021-09-08 20:45:24 +02:00
tgmichel
f7a421f488
graph::ChainApi and graph::Pool reexport (#9726 )
...
* `graph::ChainApi` and `graph::Pool` reexport
* Redundant import cleanup
2021-09-08 15:57:34 +02:00
Bastian Köcher
b382cc8f9d
Improve sandbox internal api ( #9709 )
...
* Improve sandbox internal api
This improves the internal sandbox api for the executor implementations.
The main point is to hide the tls in the internal api and not having it
exposed to the outside.
This is especially needed for wasmtime 0.29.0
* Fmt
* Make it nicer
2021-09-08 12:28:23 +02:00
Falco Hirschenberger
16144e7404
Store the database in a role specific subdirectory ( #9645 )
...
* Store the database in a role specific subdirectory
This is a cleaned up version of #8658 fixing #6880
polkadot companion: paritytech/polkadot#2923
* Disable prometheus in tests
* Also change p2p port
* Fix migration logic
* Use different identification file for rocks and parity db
Add tests for paritydb migration
2021-09-07 13:31:25 +00:00
Bastian Köcher
224c7f10b9
SimpleSlotWorker make claim_slot async ( #9713 )
...
* SimpleSlotWorker make `claim_slot` async
* FMT
2021-09-07 11:15:44 +00:00
Alexander Theißen
d99c0cead7
Don't allow failure for cargo fmt ( #9702 )
...
* Don't allow failure for cargo fmt
* cargo fmt
2021-09-06 10:09:34 +00:00
Arkadiy Paronyan
cd19c7b79e
Fixed block response limit check ( #9692 )
...
* Fixed block response limit check
* Fixed start block detection and added a test
* Missing test
2021-09-06 07:25:30 +00:00
Squirrel
ffced22fb7
sp-utils => sc-utils ( #9677 )
...
* sp-utils => sc-utils
* cargo fmt
* These files are now in the client so should be licensed as GPL3
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-04 19:20:48 +00:00
Andreas Doerr
cfe3490007
Use coherent prost crate versions ( #9676 )
2021-09-02 19:50:27 +01:00
Bastian Köcher
7fe40d4c90
Remove some browser leftovers ( #9636 )
...
As we have removed the feature for now, we don't need this here as well.
Co-authored-by: Giles Cope <gilescope@gmail.com >
2021-09-01 21:04:25 +01:00
Chevdor
6c2d9566df
doc: subkey documentation ( #9639 )
...
* doc: convert the adoc to md
* add ref to UncheckedExtrinsic
* Add references to the SS58 format
* Add details about the inspect command
* removing command that is no longer available
* reorder display so ss58 representations show up next to each other
* remove deprecated section
* Add doc about the password option
* fix fmt
* minor fixes
fix #6613
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: David <dvdplm@gmail.com >
2021-08-31 15:24:37 +02:00
Guillaume Thiolliere
6c8946ae21
fix tracker repeat writes ( #9653 )
2021-08-31 12:41:44 +00:00
Qinxuan Chen
847d264c33
Add methods param for RPC state_traceBlock ( #9642 )
...
* Add methods param for RPC state_traceBlock
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* rename event_values_filter arg
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add some doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add some doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix doc
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-08-30 11:52:26 +00:00
Qinxuan Chen
a636b7a512
rpc-api: use thiserror instead of derive_more for error handling ( #9631 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-08-27 07:50:36 +02:00
Bastian Köcher
5a347adad2
Fix state_subscribeRuntimeVersion for parachains ( #9617 )
...
The old implementation was listening for storage changes and every time
a block changed the `CODE` storage field, it checked if the runtime
version changed. It used the best block to compare against the latest
known runtime version. It could happen that you processed the storage
notification of block Y and checked the runtime version of block X (the
current best block). This is also what happened on parachains.
Parachains import blocks and set the new best block in a later step.
This means we imported the block that changed the code, got notified and
checked the runtime version of the current best block (which would still
be the parent of the block that changed the runtime). As the parent did
not changed the runtime, the runtime version also did not changed and we
never notified the subscribers.
The new implementation now switches to listen for best imported blocks.
Every time we import a new best block, we check its runtime version
against the latest known runtime version. As we also send a notification
when the parachains sets a block as new best block, we will trigger this
code path correctly. It moves some computation from checking if the key
was modified to getting the runtime version. As fetching the runtime
version is a rather common pattern, it should not make any big
difference performancewise.
2021-08-25 09:13:00 +02:00
Bastian Köcher
f92e5c5e65
Upgrade tokio to 1.10 ( #9575 )
...
* Upgrade tokio to 1.10
* Fix test runner
* Try fix it
* Update Cargo.lock
* Review feedback
* ahhhh
* FML
* FMT
* Fix tests
2021-08-24 14:31:19 +00:00
Tomasz Drwięga
d722c44248
Better RPC prometheus metrics. ( #9358 )
...
* Better RPC prometehus metrics.
* Add session metrics.
* Add counting requests as well.
* Fix type for web build.
* Fix browser-node
* Filter out unknown method names.
* Change Gauge to Counters
* Use micros instead of millis.
* cargo fmt
* Update client/rpc-servers/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* move log to separate lines.
* Fix compilation.
* cargo +nightly fmt --all
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-08-24 10:48:23 +00:00
Bastian Köcher
30ce8bbc8c
Fetch runtime code from storage cache when using proofing backend ( #9611 )
...
Before we fetched the runtime code from the `TrieBackend` and this lead
to not using the storage cache. Thus, we recalculated the storage hash
for the runtime code on every call into the runtime and this killed the
performance on parachains block authoring. The solution is to fetch the
runtime code from the storage cache, to make sure we use the cached
storage cache.
2021-08-24 09:54:53 +00:00
Alexander Theißen
ac9c3259bf
Remove useless borrow ( #9615 )
2021-08-24 11:54:30 +02:00
Pierre Krieger
fb408e3e85
Remove spurious debug_assert! ( #9603 )
2021-08-23 09:16:54 +00:00
Ayomide Onigbinde
ab4d4654ae
continue in pow loop instead of returning ( #9539 )
...
* continue in pow loop instead of returning
* change other return statements, add logs
* remove redundant logs
* formatting fix
* remove log
* Add some commas to make rustfmt happy
Co-authored-by: Wei Tang <accounts@that.world >
Co-authored-by: Wei Tang <wei@that.world >
2021-08-22 17:02:19 +02:00
Roman
12bf41d24d
Change unhandled Kademlia events from warn to debug ( #9599 )
2021-08-20 12:35:40 +00:00
dependabot[bot]
8a00437081
Bump directories from 3.0.1 to 3.0.2 ( #9589 )
...
Bumps [directories](https://github.com/soc/directories-rs ) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/soc/directories-rs/releases )
- [Commits](https://github.com/soc/directories-rs/commits )
---
updated-dependencies:
- dependency-name: directories
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-19 19:43:39 +00:00
dependabot[bot]
b28654c480
Bump prost from 0.7.0 to 0.8.0 ( #9560 )
...
Bumps [prost](https://github.com/tokio-rs/prost ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/tokio-rs/prost/releases )
- [Commits](https://github.com/tokio-rs/prost/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: prost
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-19 19:23:20 +00:00
dependabot[bot]
13d2adc78e
Bump bitflags from 1.2.1 to 1.3.2 ( #9568 )
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 1.2.1 to 1.3.2.
- [Release notes](https://github.com/bitflags/bitflags/releases )
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md )
- [Commits](https://github.com/bitflags/bitflags/compare/1.2.1...1.3.2 )
---
updated-dependencies:
- dependency-name: bitflags
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-19 18:13:05 +00:00
Dmitry Kashitsyn
61606a0b3b
Integrate Wasmer into Substrate sandbox environment ( #5920 )
...
* Add comments and refactor Sandbox module
* Adds some comments
* Add wasmtime instance to the sandbox and delegate calls
* Adds module imports stub
* WIP state holder via *mut
* My take at the problem
* Brings back invoke and instantiate implementation details
* Removes redundant bound
* Code cleanup
* Fixes invoke closure
* Refactors FunctionExecutor to eliminate lifetime
* Wraps `FunctionExecutor::sandbox_store` in `RefCell`
* Renames `FunctionExecutor::heap` to `allocator`
* Wraps `FunctionExecutor::allocator` in `RefCell`
* Refactors FunctionExecutor to `Rc<Inner>` pattern
* Implements scoped TLS for FunctionExecutor
* Fixes wasmi instancing
* Fixes sandbox asserts
* Makes sandbox compile after wasmtime API change
* Uses Vurich/wasmtime for the Lightbeam backend
* Uses wasmtime instead of wasmi for sandbox API results
* Refactors sandbox to use one of the execution backends at a time
* Fixes wasmtime module instantiation
* TEMP vurich branch stuff
* Adds wasmer impl stub
* Adds get global
* Fixes warnings
* Adds wasmer invoke impl
* Implements host function interface for wasmer
* Fixes wasmer instantiation result
* Adds workaround to remove debug_assert
* Fixes import object generation for wasmer
* Attempt to propagate wasmer::Store through sandbox::Store
* Wraps `sandbox::Store::memories` in `RefCell`
* Moves `sandbox::instantiate` to `sandbox::Store`
* Eliminate `RefCell<memories>`
* Implements `HostState::memory_get/set`, removes accidental `borrow_mut`
* Fixes sandbox memory handling for wasmi
* Fix memory allocation
* Resets Cargo.lock to match master
* Fixes compilation
* Refactors sandbox to use TLS for dispatch_thunk propagation to wasmer
* Pass dispatch thunk to the sandbox as a TLS
* Initialize dispatch thunk holder in `SandboxInstance`
* Comment out Wasmtime/Lightbeam sandbox backend
* Revert wasmtime back to mainstream
* Adds SandboxExecutionMethod enum for cli param
* Cleanup sandbox code
* Allow wasmi to access wasmer memory regions
* More cleanup
* Remove debug logging, replace asserts with runtime errors
* Revert "Adds SandboxExecutionMethod enum for cli param"
This reverts commit dcb2b1d3b54145ab51ad2e3fef0d980ba215b596.
* Fixes warnings
* Fixes indentation and line width
* Fix return types condition
* Puts everything related under the `wasmer-sandbox` feature flag
* Fixes warnings
* Address grumbles
* Split instantiate per backend
* More splits
* Refacmemory allocation
* Nitpicks
* Attempt to wrap wasmer memory in protoco enforcing type
* Revert renaming
* WIP wasm buffer proxy API
* Reimplement util::wasmer::MemoryRef to use buffers instead of memory slices
* Adds WasmiMemoryWrapper and MemoryTransfer trait
* Refactor naming
* Perform all memory transfers using MemoryTransfer
* Adds allocating `read`
* Adds comments
* Removes unused imports
* Removes now unused function
* Pulls Cargo.lock from origin/master
* Fix rustdoc
* Removes unused `TransferError`
* Update Cargo.lock
* Removes unused import
* cargo fmt
* Fix feature dependency graph
* Feature should flow from the top level crate
* We should not assume a specific workspace structure
* sc-executor-wasmi does not use the feature
* sc-executor-wasmtime should not know about the feature
* Fix doc typo
* Enable wasmer-sandbox by default (for now)
It will be removed before merge. It is so that the benchbot
uses the wasmer sandbox.
* cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* Revert "cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs"
This reverts commit d713590ba45387c4204b2ad97c8bd6f6ebabda4e.
* cargo fmt
* Add ci-check to prevent wasmer sandbox build breaking
* Run tests with wasmer-sandbox enabled
* Revert "Run tests with wasmer-sandbox enabled"
This reverts commit cff63156a162f9ffdab23e7cb94a30f44e320f8a.
Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com >
Co-authored-by: Andrew Jones <ascjones@gmail.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
2021-08-19 13:04:13 +00:00
Ashley
bad4544507
Make choosing an executor (native/wasm) an explicit part of service construction ( #9525 )
...
* Split native executor stuff from wasm executor stuff
* Remove `native_runtime_version` in places
* Fix warning
* Fix test warning
* Remove redundant NativeRuntimeInfo trait
* Add a warning for use_native
* Run cargo fmt
* Revert "Add a warning for use_native"
This reverts commit 9494f765a06037e991dd60524f2ed1b14649bfd6.
* Make choosing an executor (native/wasm) an explicit part of service construction
* Add Cargo.lock
* Rename Executor to ExecutorDispatch
* Update bin/node/executor/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Fix tests
* Fix minor node-executor error
* Fix node cli command thing
Co-authored-by: Squirrel <gilescope@gmail.com >
2021-08-18 14:26:41 +02:00
David
2de7e51c2a
Remove substrate-in-the-browser ( #9541 )
...
* Comment out browser stuff
* Remove browser stuff
* Remove more wasm transport code
* Remove ExtTransport and rework how telemetry initialises.
* Change (most) wasm-timer using code to use std::time
* Rename CI-job
* Aura does not compile for wasm
* Remove testing in the browser on CI
* Update README
* Leave `StreamSink` be
* fmt
2021-08-17 18:06:23 +00:00
Ashley
7caaa9ef8b
Simplify NativeExecutionDispatch and remove the native_executor_instance! macro ( #9562 )
...
* Remove the `native_executor_instance!` macro
* Add comment to test runner ex
* Fix comments
2021-08-16 15:06:52 +00:00
Trevor Arjeski
d9f02296ab
RUSTSEC-2021-0076 bump libsecp256k1 ( #9391 )
...
* RUSTSEC-2021-0076 bump libsecp256k1
libsecp256k1 allows overflowing signatures
https://rustsec.org/advisories/RUSTSEC-2021-0076
Changes were made to conform to libsecp256k1 version differences.
Closes #9356
* parse_standard_slice() -> parse_overflowing_slice()
* Added v2 host function for ecdsa_verify
* Add feature tag over helpers
* Added ecdsa_verify v2 to test runner
* PR feedback
- Spaces -> tabs
- renamed two helper functions
* Fixed imports after rebasing
* Bump rest of libsecp256k1 (and libp2p)
libp2p also uses libsecp256k1 so it is required to be bumped too, along
with all the version difference changes.
* Add version2 for ecdsa pubkey recovery
* libp2p rebase master fixes
* Fix test panic when non Behaviour event is returned
* Update bin/node/browser-testing/Cargo.toml
* Update primitives/core/src/ecdsa.rs
* Update primitives/core/src/ecdsa.rs
* Update Cargo.lock
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-08-16 14:17:10 +00:00