Commit Graph

525 Commits

Author SHA1 Message Date
Fedor Sakharov 99d164b5e7 Erasure encoding availability (#345)
* Erasure encoding availability initial commit

 * Modifications to availability store to keep chunks as well as
   reconstructed blocks and extrinsics.
 * Gossip messages containig signed erasure chunks.
 * Requesting eraure chunks with polkadot-specific messages.
 * Validation of erasure chunk messages.

* Apply suggestions from code review

Co-Authored-By: Luke Schoen <ltfschoen@users.noreply.github.com>

* Fix build after a merge

* Gossip erasure chunk messages under their own topic

* erasure_chunks should use the appropriate topic

* Updates Cargo.lock

* Fixes after merge

* Removes a couple of leftover pieces of code

* Fixes simple stuff from review

* Updates erasure and storage for more flexible logic

* Changes validation and candidate receipt production.

* Adds add_erasure_chunks method

* Fixes most of the nits

* Better validate_collation and validate_receipt functions

* Fixes the tests

* Apply suggestions from code review

Co-Authored-By: Robert Habermeier <rphmeier@gmail.com>

* Removes unwrap() calls

* Removes ErasureChunks primitive

* Removes redundant fields from ErasureChunk struct

* AvailabilityStore should store CandidateReceipt

* Changes the way chunk messages are imported and validated.

 * Availability store now stores a validator_index and n_validators for
 each relay_parent.
 * Availability store now also stores candidate receipts.
 * Removes importing chunks in the table and moves it into network
 gossip validation.
 * Validation of erasure messages id done against receipts that are
 stored in the availability store.

* Correctly compute topics for erasure messages

* Removes an unused parameter

* Refactors availability db querying into a helper

* Adds the apis described in the writeup

* Adds a runtime api to extract erasure roots form raw extrinsics.

* Adds a barebone BlockImport impl for avalability store

* Adds the implementation of the availability worker

* Fix build after the merge with master.

* Make availability store API async

* Bring back the default wasmtime feature

* Lines width

* Bump runtime version

* Formatting and dead code elimination

* some style nits (#1)

* More nits and api cleanup

* Disable wasm CI for availability-store

* Another nit

* Formatting
2019-12-03 15:49:07 +01:00
Gavin Wood ec54d5b1e4 Make Kusama decentralised and permissionless (#647)
* Remove Sudo

* Bump versions

* Fixes

* Remove other mentions of sudo

* Remove sudo from Cargo
2019-12-03 15:46:47 +01:00
Phil 14c135e429 Change README to reflect master branch for Kusama CC3 (#646) 2019-12-03 15:34:47 +01:00
Arkadiy Paronyan 7cb57e7ab6 Update for new peerset API (#644)
* Reputation changes require reason

* Fixes

* Bump version
2019-12-03 12:09:05 +01:00
Gavin Wood 72bfa8c615 Bump Substrate and version (#645) 2019-12-02 23:40:35 +01:00
Benjamin Kampmann 518b6408a0 reverting to polkadot-master (#643) 2019-12-02 20:42:09 +01:00
Shawn Tabrizi b637a77249 Adding vesting logic to claims (#637)
* Adding vesting logic to claims

* Add genesis

* Update runtime/src/claims.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Bump spec

* Update runtime/src/claims.rs
2019-12-02 17:55:54 +01:00
Denis Pisarev 675ca2e258 interruptible test and build jobs (#642) 2019-12-02 17:20:03 +01:00
Benjamin Kampmann 7832ad93cd fix for latest substrate crate renaming (#641)
* rename crates as appropriate

* Rename to use master - easy to revert, but shows it's working

* Bump runtime version

* Bump version

* Bump Substrate again
2019-12-02 16:56:50 +01:00
Talha Cross 0c1ef33541 docs: update readme for cc3 (#639)
* docs: update readme for cc3

* docs: refer to the v0.7 release branch
2019-12-02 13:00:49 +01:00
Gavin Wood 37fec553cc Bump Substrate (#636)
* Merge

* Bump Substrate
2019-12-01 11:29:46 +01:00
Gavin Wood a0edfd57f0 Nicks are 32 bytes (#634)
* Nicks 32 bytes

* Bump runtime version

* Update lock
2019-11-30 20:31:12 +01:00
Pierre Krieger ed7ee57290 Add WASM CI checks and make availability-store compile for WASM (#626)
* Make availability-store compile for WASM

* Use --manifest-path instead
2019-11-29 16:12:16 +01:00
Bastian Köcher 33eb0b7ba6 Update to Substrate master (#633) 2019-11-29 14:54:37 +01:00
Gavin Wood 4ec635eea8 New chain spec (#632) 2019-11-28 18:18:10 +00:00
Gavin Wood f15a1db19d Bump Substrate (#631) 2019-11-28 14:58:56 +00:00
Gavin Wood 48c5d5ce19 Sessions/epochs are 1 hour not 4. (#630) 2019-11-28 13:16:32 +00:00
Arkadiy Paronyan d63f20434e Update to substrate master (#629)
* Update to substrate master

* Update service/src/lib.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* bump subsrate
2019-11-28 12:57:55 +00:00
XAMPPRocky f826ce5310 Move documentation from Asciidoc to Markdown. (#619) 2019-11-28 12:57:45 +00:00
Gavin Wood 8a1f24982b Enable governance transactions (#628) 2019-11-28 12:38:47 +00:00
Gavin Wood 756e0cd165 Update Substrate (#623)
* Update to latest Substrate master (#615)

* Update to latest Substrate master

* Remove unneeded patch + warning

* Update `Cargo.lock`

* Fix tests

* Update again

* Bump Substrate (#616)

* Update lock

* Fix

* Few fixes

* Bump to latest Substrate

* Fixes

* fix pre-tx-pool compilation

* more compilation fixes

* Updates for the injection period

- Liberal slash-refunding
- Instant unbonding

* *: Enable refactored authority discovery (#624)

* *: Enable authority discovery module

* *: List authority discovery id after parachain validator id

Make sure existing key types don't change their order by appending the
authority discovery id instead of injecting it between im online id and
parachain validator id.

* *: Gate authority discovery module behind feature flag

* cli/src/lib.rs: Fix warnings

* cli/src/lib.rs: Shorten line length

* Bump Substrate

* Bump Substrate

* Line widths

* Line widths again

* Revert bump.
2019-11-28 12:08:37 +00:00
Wei Tang c7743cd86b Mark unreachable match clause as unreachable! (#620)
* Mark unreachable match clause as unreachable!

* Fix indentation
2019-11-27 18:03:45 +01:00
Wei Tang 311d2a271d Move propose_with into a dedicated blocking threadpool (#614) 2019-11-26 19:34:06 +01:00
Arsen A. Gutsal 3e31268893 sentry-docker-compose.yml initial version created (#410)
* Dockerfile fixed.

* docker: use init.sh to setup rust env

* CMD replaced with ENTRYPOINT in Dockefile

* WIP Sentry/Validator basic setup

* Dockerfile modifier to correspond to master version

* `environment` block added to both sentry and validator

* some environment variables are now used to pass params to containers
2019-11-23 00:28:33 +01:00
Tommy Giardina f61e532e91 Clarifying README (#590)
Made two small changes to the README.adoc that will help first-time users. First, I added notifications that the user may need to edit their PATH env variable after installing Rust. Second, I added a 'Hello world!' name tag to the Kusama Canary Network connect command so that new users will be better able to find their node on telemetry.
2019-11-23 00:27:36 +01:00
joe petrowski c9b1e3d959 Update for Substrate master (#600)
* update substrate for change to palette

* change paint to palette

* update lock

* Fix missing import

* change to polkadot-master

* Use same commit hash of parity-common

* Resolve linking errors

* Rename to frame

* bump spec

* Subsume #602 and #596

* Fix DispatchInfo

* Merge `futures03` and `joe-update-to-palette` (#606)

* Change repo and branch

* Made changes

* Bumped async-std version

* Fix line width

* Bump spec_version

* Fix `run_to_block` for Crowdfund module (#603)

Probably a copy paste error.

* Bump dependencies

* Update trie-db to be inline with substrate

* Fix documentation warning

* Fix test compilation
2019-11-23 00:16:04 +01:00
Shawn Tabrizi e229074f79 Fix run_to_block for Crowdfund module (#603)
Probably a copy paste error.
2019-11-22 16:22:07 +01:00
Gavin Wood d5c521a086 Update Substrate after repository reorganisation (#587) (#598)
* Update Substrate after repository reorganisation

* Switch back to polkadot-master

* Bump `bitvec` and `parity-scale-codec` (#591)

Also bump other dependencies, but respect semver on them.
2019-11-19 18:30:01 +01:00
Sergei Pepyakin 6962a6a6b8 Update issue templates (#586) 2019-11-19 10:04:17 +01:00
Gavin Wood d04b97dc3e Bump Substrate (#578) 2019-11-12 20:41:39 +01:00
Gavin Wood a4c1907178 Allow Root to add a claim (#577)
* Allow Root to add a claim.

* Additional test

* Update lock
2019-11-12 16:47:54 +01:00
Gavin Wood 0ed7ac6ce3 Bump Substrate (#576)
* Bump Substrate

* Bump again.
2019-11-12 14:53:14 +01:00
Gavin Wood a7dfc317d5 Bump Substrate & version (#574)
* Bump Substrate.

* Bump version
2019-11-12 12:14:38 +01:00
Gavin Wood cc0e775810 Master backports (#571)
* Update to latest Substrate master (#570)

* Bump substrate/version (#557)

* Bump version and Substrate (#560)

* Bump version and Substrate

* Bump version and Substrate

* Bump versions

* bump substrate to release specific v0.6.15

* Update lock

* Prepare Polkadot update for Substrate runtime interface 2.0 (#563)

* Prepare Polkadot update for Substrate runtime interface 2.0

* bump substrate to release specific v0.6.15

* Switch to `polkadot-master`

* Version bump

* Master backports

* Bump runtime

* Fix tests

* Fix tests

* Another fix.
2019-11-12 02:10:02 +01:00
André Silva 40f1d22cd8 cli: fix node shutdown (#568) 2019-11-11 16:35:47 +01:00
gabriel klawitter 663ff3db91 ci: add runtime version check (#555) 2019-11-09 10:46:36 +01:00
Pierre Krieger 1c0cb62567 Remove deprecated methods from NetworkSpecialization (#553) 2019-11-08 14:38:24 +01:00
Gavin Wood bd79b34bb3 Backport all v0.6 changes to master... (#552)
* Bump Substrate and versions (#531)

* Bump versions

* Build fix.

* Enable governance (#536)

* Enable governance

* Tweak a few parameters

* Bump substrate, versions. (#538)

* Bump substrate, versions.

* Build fix

* Bump rpc deps (#537)

* Update to latest sub

* Revert branch update

* Update.

* Update tests.

* Ignore warnings in tests.

* Revert substrate (#540)

* Version bump

* Bump Substrate, versions. (#542)

* Bump Substrate, versions.

Also revert the enabling of democracy

* Build fix

* Bump Substrate (#544)

* Bump Substrate

* Fix

* A few tidyups

* Bump Substrate (#547)

* Bump Substrate

* Another bump

* Fixed build for new block_import API

* Enable grandpa migration. (#549)

* Enable grandpa migration.

* Bump runtime version
2019-11-08 11:49:04 +01:00
Xiliang Chen 88150e83d2 add comments for WonRenewal event (#533)
* add comments for WonRenewal event

* make event argument order consistent
2019-11-05 12:09:04 +01:00
Kian Paimani bcdf6c02fc Bump rpc deps (#537)
* Update to latest sub

* Revert branch update

* Update.

* Update tests.

* Ignore warnings in tests.
2019-11-05 11:58:07 +01:00
Gavin Wood 615c58f379 im-online module should report offences (#527)
* im-online module should report offences

* Bump runtime
2019-11-02 16:46:48 +01:00
Gavin Wood 848784e8ec Bump runtime version, update substrate. (#526)
* Bump substrate

* Bump runtime version

* Fix Configuration stuff

* switch to custom branch

* add new backend entry, ignore it

* Bump runtime version, update substrate.

* Rename branch back

* Update substrate
2019-11-01 15:57:07 +00:00
Gavin Wood 80662344f1 Bump Substrate master (#522)
* Bump substrate

* Bump runtime version

* Fix Configuration stuff

* fix extract_proof return type

* add ImOnline module as Authorship event handler
2019-10-31 16:08:16 +00:00
Denis Pisarev 676f1562b9 retry on gitlab system failures (#521)
* retry on gitlab system failures

* max is just 2
2019-10-31 11:12:23 +01:00
André Silva b16bd4de8d bump version to 0.6.6 (#516) 2019-10-30 10:48:45 +01:00
Gavin Wood 0168e2f0fe Update Substrate (#514)
* Update Substrate

* Attempt a fix

* Update substrate again

* Fix compilation

* update substrate add support for sentry

* Fixes tests
2019-10-29 22:00:12 +01:00
Kian Paimani 16e0e4afd1 Integrate fee RPC (#508)
* Update cargo files

* First round of build fixes

* update lock file

* Fix builds again

* Revert cargo file

* remove elections genesis

* Fix chain spec

* Remove imports

* Update runtime/src/lib.rs

Co-Authored-By: Gavin Wood <gavin@parity.io>
2019-10-28 17:22:56 +01:00
Gavin Wood fd7640e097 Backport fix lock (#507)
* Fix locking, from an updated Substrate (#506)

* Fix locking, from an updated Substrate

* Bump runtime version

* Lock file.

* Bump version and extra fix.
2019-10-28 16:26:24 +01:00
Gavin Wood b1f9b1ad07 Revert "Update to latest substrate (#504)" (#505)
This reverts commit 8fb635b5e5.
2019-10-28 14:44:29 +01:00
Gav Wood 8e0c8f037a Quick runtime bump 2019-10-28 14:31:41 +01:00