Ashley
27f4f42e74
Companion PR for Move subcommands from sc-cli to nodes #6948 ( #1635 )
...
* Companion PR
* Implement traits for Client
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-09-01 11:27:24 +02:00
Robert Habermeier
430cf6e6f2
Remove v0 node-side parachains code ( #1609 )
...
* clean out v0 consensus crates
* remove service dependencies on old consensus code
* fix cli
* kill adder-collator
* bump Cargo.lock
2020-08-24 11:43:01 +00:00
Wei Tang
944b1bd0b4
Companion PR for #6862 ( #1564 )
...
* Companion PR for #6862
* Check in Cargo.lock for CI
* "Update Substrate"
* update substrate
Co-authored-by: parity-processbot <>
Co-authored-by: André Silva <andre.beat@gmail.com >
2020-08-17 12:33:30 +00:00
Seun Lanlege
cf7133cbcf
Companion PR for #6846 ( #1568 )
...
* remove Arc<RpcHandlers>
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-08-15 09:31:51 +00:00
Robert Habermeier
57aef8eef5
Remove v0 parachains runtime ( #1501 )
...
* remove v0 parachains modules and switch to v1 primitives
* get tests compiling for runtime-common
* remove registrar module
* Add a dummy module
* remove runtime-parachains
* mostly remove old parachains code from polkadot-runtime
* remove slots::Trait implementation
* remove sp_std prelude import
* add a ZeroSizedTypeDifferentiator to dummy
* finish porting over polkadot runtime
* ZeroSizedTypeDifferentiator was actually unnecessary
* westend
* kusama
* test-runtime (no dummy modules)
* fix warning
* fix chain-specs
* fix test-service
* test-client
* remove dead import
* remove unused needed_extrinsics parameter
* runtimes compile
* remove rococo-v0
* remove remaining references to Rococo
* bump versions
2020-08-13 15:55:27 +02:00
Cecile Tonglet
661c10a206
Allow using any polkadot client instead of enum Client ( #1575 )
...
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* Apply suggestions from code review
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* WIP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* CLEANUP
Forked at: e91642361133dba084a9c9b3efa45fcb6cd3c5ca
Parent branch: origin/rococo-branch
* link in doc
* doc
2020-08-13 08:40:39 +00:00
Max Inden
7914847950
service/src/lib: Update authority discovery construction ( #1563 )
...
* service/src/lib: Update authority discovery construction
https://github.com/paritytech/substrate/pull/6760 introduces the concept
of an authority discovery `Service` allowing one to communicate with an
authority discovery `Worker`, e.g. to learn the `Multiaddr`s for a given
`AuthorityId`.
Along with the new `Service` structure it also alters the authority
discovery constructor to return both a worker and a service. This
commit adjusts the callside of the constructor, ignoring the `Service`
for now.
* "Update Substrate"
* Revert ""Update Substrate""
This reverts commit 04fb79c465f91b55422e22d4ea266f08f4072854.
* Update Substrate
Co-authored-by: parity-processbot <>
2020-08-12 16:06:12 +00:00
Bastian Köcher
a12f634e51
Support build-spec for other chains than Polkadot ( #1567 )
...
* Support `build-spec` for other chains than Polkadot
The problem when building a chain specification is that you require the
native runtime to parse the json file (assuming the chain spec is not
raw yet). Before this pr we could only overwrite the native runtime when
running the node using `force_*`. This pr now adds support to load the
native runtime when the filename starts with the name of the chain. So,
when usng `build-spec --chain rococo-something-else.jon` it will use the
rococo native runtime to load the chain spec.
* Apply suggestions from code review
Co-authored-by: Andronik Ordian <write@reusable.software >
Co-authored-by: Andronik Ordian <write@reusable.software >
2020-08-11 13:06:53 +02:00
Jon Häggblad
0ed8cad3c3
companion PR for #5732 : pubsub RPC for grandpa justifications ( #1346 )
...
* Companion PR for #5732
Add subscription RPC for listening on GRANDPA justifications.
* grandpa-rpc: some merge fixes
* "Update Substrate"
Co-authored-by: parity-processbot <>
2020-08-10 10:57:42 +00:00
Pierre Krieger
39ed1a2b99
Companion PR to delaying network startup to after initialization ( #1547 )
2020-08-06 14:30:19 +02:00
André Silva
a7b6c91f80
revert enabling authority discovery by default ( #1532 )
2020-08-05 14:10:43 +02:00
Shawn Tabrizi
73f09e5154
Unalias Substrate Imports ( #1530 )
...
* cargo.toml updates
* session and system
* more
* more
* more
* more
* more
* fix
* compiles
* fix tests
* fix more tests
* fix mock
* fix deleted space
* Update validation/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update Cargo.lock
* update rococo
* remove unused warning
* update add benchmarks
* rename weight file
* forgot a file
* Update chain_spec.rs
* Revert "remove unused warning"
This reverts commit 4227cd0d1525286fb466dccb817564c9b37f8645.
* fix merge
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-08-04 13:23:33 +00:00
Bastian Köcher
c01aa8bae8
Rewrite client handling ( #1531 )
...
* Rewrite client handling
We are supporting muliple polkadot-like chains and all have different
client types. This pr reworks the client handling by having all of them
in one enum combined. Besides that, there is added a special trait
`ExecuteWithClient` to use the internal client.
* Apply suggestions from code review
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* Up the versions
* Fix Cargo.lock
* Fix merge conflict
* ......................
* ....v2
* yep
* I'm dumb...
* Browser lol
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2020-08-04 14:53:47 +02:00
Bastian Köcher
5a4bca765e
Add Rococo test network ( #1363 )
...
* Add Rococo test network
* Correct license header
* Add bootNodes address
* Fix compile errors
* Change bootNodes
* Change rococo bootNodes
* Add new bootNodes
* Fix bootNodes typo
* Remove public telemetry
* Add rococo-local chain spec
* Remove staking
* Remove staking from chain spec
* use rococo-staging chain spec and preserve bootnodes
* Same but with --raw
* update chain name and remove telemetry
* Empty commit to re-trigger CI
* Fix revision (temp. until I merge master)
* Revert to branch = master to avoid conflicts
* Revert to branch = master to avoid conflicts
* Disable test (temp)
* Revert to branch = master to avoid conflicts
* Revert to branch = master to avoid conflicts
* Change bootNodes IPs for second rococo network
* Revert "Disable test (temp)"
This reverts commit a159f12e3131d1a25dabb1a4d2834642f2bcdc26.
* Revert purchase
* Update chain spec
* FUUU
* Update service/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* Update runtime/rococo/src/lib.rs
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
* Fix compilation
Co-authored-by: Evaldo <contato@evaldofelipe.com >
Co-authored-by: David Dorgan <david@parity.io >
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com >
Co-authored-by: Robert Habermeier <rphmeier@gmail.com >
2020-08-04 09:41:39 +00:00
Bastian Köcher
277fd75179
Fix transaction payment runtime api companion ( #1519 )
...
* Fix transaction payment runtime api companion
Companion for Substrate pr: https://github.com/paritytech/substrate/pull/6792
* 'Update substrate'
Co-authored-by: parity-processbot <>
2020-08-03 09:06:03 +00:00
Ashley
610dd1368c
Companion PR for Add a DefaultQueue type alias to remove the need to use sp_api::TransactionFor`` ( #1499 )
...
* BabeImportQueue -> DefaultImportQueue
* Use DefaultImportQueue from the top level of consensus_common
* 'Update substrate'
Co-authored-by: parity-processbot <>
2020-07-30 09:25:59 +00:00
Ashley
7c7b02ece0
Companion PR for Various small improvements to service construction.. ( #1472 )
...
* Initial commit
Forked at: 1ed17cd467
Parent branch: origin/master
* Refactor
* Refactor
* Remove macro
* WIP
Forked at: 1ed17cd467
Parent branch: origin/master
* CLEANUP
Forked at: 1ed17cd467
Parent branch: origin/master
* small fix
* fix for browser
* Switch branch
* Rewrite service builds
* Update branch
* Fix sp-core branch
* Switch branch back and update
Co-authored-by: Cecile Tonglet <cecile.tonglet@cecton.com >
2020-07-28 20:18:11 +02:00
Cecile Tonglet
1cb92aa83e
Refactor service to allow building full (and light) node matching chain spec ( #1467 )
2020-07-27 07:54:24 +02:00
Wei Tang
b8de0ff16f
Companion PR for #6569 ( #1394 )
...
* Update wasm-builder version to 2.0.0
* Fix all crate compile
* Update cargo lock
* Bump runtime impl_version
2020-07-24 12:00:34 +00:00
Ashley
6919c3030c
Companion PR for Remove the service builder ( #1448 )
...
* Switch branch
* Update branch
* Change service code
* Change light service stuff to be functions ^_^
* Update substrate branch
* Remove accidental 'f'
* Rework LightBackend/LightClient types
* Update substrate branch
* Remove unused imports in test-service
* Add #[cfg(feature = full-node)]
2020-07-23 14:12:53 +02:00
Gavin Wood
760d49c551
Remove Sudo ( #1437 )
...
* Remove Sudo
NOTE: To ensure minimal index changes to pre-existing pallet deployments,
this is done with a "swap_remove" style; the previous last pallet
(Purchase), which is hitherto unused, has been shifted into the old index
of Sudo.
* Remove CC1 designation.
* Fixes
* Bump
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
2020-07-20 17:47:09 +02:00
Max Inden
59f5eb4c17
*: Enable authority discovery by default ( #1395 )
...
* *: Enable authority discovery by default
Instead of having to explicitly enable the authority discovery module on
validator and sentry nodes, this commit enables the module by default.
Today there is no way for non validator or sentry nodes to run the
module. That might change in the future.
* service/src/lib: Fix typo in new_full! for test
2020-07-13 18:19:48 -04:00
Robert Habermeier
3b13cd9a85
Refactor primitives ( #1383 )
...
* create a v1 primitives module
* Improve guide on availability types
* punctuate
* new parachains runtime uses new primitives
* tests of new runtime now use new primitives
* add ErasureChunk to guide
* export erasure chunk from v1 primitives
* subsystem crate uses v1 primitives
* node-primitives uses new v1 primitives
* port overseer to new primitives
* new-proposer uses v1 primitives (no ParachainHost anymore)
* fix no-std compilation for primitives
* service-new uses v1 primitives
* network-bridge uses new primitives
* statement distribution uses v1 primitives
* PoV distribution uses v1 primitives; add PoV::hash fn
* move parachain to v0
* remove inclusion_inherent module and place into v1
* remove everything from primitives crate root
* remove some unused old types from v0 primitives
* point everything else at primitives::v0
* squanch some warns up
* add RuntimeDebug import to no-std as well
* port over statement-table and validation
* fix final errors in validation and node-primitives
* add dummy Ord impl to committed candidate receipt
* guide: update CandidateValidationMessage
* add primitive for validationoutputs
* expand CandidateValidationMessage further
* bikeshed
* add some impls to omitted-validation-data and available-data
* expand CandidateValidationMessage
* make erasure-coding generic over v1/v0
* update usages of erasure-coding
* implement commitments.hash()
* use Arc<Pov> for CandidateValidation
* improve new erasure-coding method names
* fix up candidate backing
* update docs a bit
* fix most tests and add short-circuiting to make_pov_available
* fix remainder of candidate backing tests
* squanching warns
* squanch it up
* some fallout
* overseer fallout
* free from polkadot-test-service hell
2020-07-09 21:23:03 -04:00
Ashley
1c5f9b09ba
Companion PR for ' Simplify a few chain components creation APIs related to the service' ( #1384 )
...
* Switch branch
* Fix service creation
* Revert "Switch branch"
This reverts commit a706335821eb1553e48f86e0b0c5b3c11d589a1d.
* Switch branch again
* Revert "Switch branch again"
This reverts commit 04afc5095e408ff9a116c526ef84f6b101482ee1.
* Update substrate branch
2020-07-09 16:59:58 +02:00
Cecile Tonglet
a4fa71ed17
Make a test crate to make the runtime-test usable ( #1258 )
...
Fixes #833
2020-07-09 15:12:52 +02:00
Bastian Köcher
283ffd4ec4
Companion for #6599 ( #1371 )
...
* Companion for #6599
https://github.com/paritytech/substrate/pull/6599
* Update Substrate ref
2020-07-08 16:15:59 +00:00
André Silva
19ef40a7c9
babe: enable equivocation reporting on all runtimes ( #1330 )
...
* enable BABE equivocation reporting on all runtimes
* runtime: fix parachains mock test runtime
* cargo update -p sp-io
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-07-04 15:19:58 +02:00
Gavin Wood
79954ae589
Reduce Westend deposit requirements ( #1341 )
...
* Switch branch
* Return chain ops parts in new_chain_ops
* Remove where param from new_chain_ops
* Add task manager to new_chain_ops return
* Revert branch switch
* Revert "Revert branch switch"
This reverts commit 7c7900c047abd794ddc759aa092811db4961a7a6.
* network/test/src/lib: Adjust network worker polling
Companion for https://github.com/paritytech/substrate/pull/6552 .
* Fix adder parachain
* Fix collator tests
* Revert branch switch
* Bump everything
- Remove old migration code
- Reduce deposit requried for westend
* Reapply fixes
* Bump locl
* Fix for #6550
* Fix message
Co-authored-by: Ashley Ruglys <ashley.ruglys@gmail.com >
Co-authored-by: Max Inden <mail@max-inden.de >
2020-07-03 15:35:36 +02:00
Ashley
b26f6d08ac
Companion PR for Remove the service, replacing it with a struct of individual chain components ( #1288 )
...
* Switch branch
* Fix service things
* Fix browser node compilation
* Update branch
* fixed new service
* Update for new branch
* Fix browser node
* Update branch
* Revert "Switch branch"
This reverts commit 3623adff7681124a1539a385a718c34e85931254.
* Update cargo.lock
Co-authored-by: Bastian Köcher <git@kchr.de >
2020-06-30 12:06:55 +00:00
Ashley
aacc251af9
Companion PR for Fix the browser node and ensure it doesn't colour the informant output #6457 ( #1307 )
...
* Companion for Substrate #6269 (nested storage tx)
* Adjust to PR changes
* Bump to newest substrate
* Bump spec
* Switch branch
* Remove redundant informant_prefix
* Fix collator tests
* Update branch
* Revert "Switch branch"
This reverts commit bcce560c51fbc9db604cf3b0f615bfd21419f87d.
Co-authored-by: Alexander Theißen <alexander.theissen@parity.io >
2020-06-24 12:04:07 +02:00
André Silva
6feeabbc7e
node: spawn babe and grandpa as blocking tasks ( #1292 )
...
* node: spawn babe and grandpa as blocking tasks
* update to latest substrate
2020-06-22 19:27:38 +02:00
André Silva
9bb2e0dadc
service: update to latest ServiceBuilder changes ( #1245 )
...
* service: update to latest ServiceBuilder changes
* Update Cargo.lock
Co-authored-by: Bastian Köcher <git@kchr.de >
2020-06-11 13:43:20 +02:00
Cecile Tonglet
61e82c3495
Add the ability to change the informant's prefix ( #1221 )
...
* Initial commit
Forked at: 261d701c5b
Parent branch: origin/master
* Add the ability to change the informant's prefix
* Update Cargo.lock
* Update Cargo.lock
* fixed tests
* Rename prefix to informant prefix
2020-06-10 16:50:47 +02:00
Rakan Alhneiti
261d701c5b
Companion PR to substrate/6178 ( #1167 )
...
* Cast keystore pointer
* Update cargo.lock
2020-06-09 14:05:43 +02:00
Bastian Köcher
11140c4202
Companion for Substrate #6123 ( #1206 )
...
* Companion for Substrate #6123
* Update Substrate
2020-06-05 23:33:13 +02:00
Tomasz Drwięga
44c0ec5cf8
Use Substrate Block Proposer ( #1156 )
...
* Use Substrate block builder.
* Clean up metrics.
* Lock.
* Lock.
* Switch to newest basic authorship interface
* Update Substrate reference and polkadot spec_version
* Let's improve
Co-authored-by: Bastian Köcher <git@kchr.de >
2020-05-30 11:06:08 +02:00
Cecile Tonglet
0ff80d0355
Add HeaderBackend trait to BuildParachainContext for cumulus validation ( #1153 )
2020-05-26 17:23:36 +02:00
Gavin Wood
b170d9674f
Prepare for final genesis ( #1131 )
...
* Update claim statements
* Update URLs
* Minor tweak to make enum agree with URL
* final html multihashes
* New hashes
* Version
* updated SAFT statement hash
* Update runtimes; this relies on substrate #6131
* Bump
* Share transaction filterer and fix Kusama
* Warning
* Gah!
* Tidy
* Westend fixes
* Westend fix
* Tweak constants
* Implement TCF stuff
* Fix
* Warning
* 15 minute lookahead
* 15 minute lookahead in Polkadot
* update max transactions
* Enable utility, disable vested_transfer
* Update runtime/common/src/lib.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* Filter calls for validate unsigned also
* Deduplicate
* Fix
* Introduce Polkadot (mainnet) chainspec
* Fix naming.
* Enable indices and fix comment.
* Fix compilation
* Enable indices and fix comment.
* polkadot: babe: enable secondary VRF slots
* Test JSON
* Allow set_heads
* Fix
* Raw chain spec added
Co-authored-by: keorn <github@i.keorn.org >
Co-authored-by: NikVolf <nikvolf@gmail.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 <andre.beat@gmail.com >
2020-05-26 15:27:48 +02:00
Shawn Tabrizi
b407af2672
Companion for Substrate #5961 (on_offence weight) ( #1103 )
...
* Add new trait to offences
* companion for substrate#6069
* update to latest changes
* Update Cargo.lock
Co-authored-by: André Silva <andre.beat@gmail.com >
Co-authored-by: Gav Wood <gavin@parity.io >
2020-05-21 14:32:25 +01:00
Nikolay Volf
dc281e313d
Update substrate, add block construction metrics ( #1112 )
...
* add metrics
* reset & update
* update
2020-05-19 19:01:16 +02:00
Jon Häggblad
afb9af4cf0
Enable Babe RPC for getting epoch authorship ( #1065 )
...
Enable babe_epochAuthorship that was added in substrate#4729 for
querying information about slots that can be claimed in the current
epoch.
2020-05-16 12:46:21 +01:00
Benjamin Kampmann
b660c226d8
Companion for #6025 ( #1098 )
2020-05-15 19:35:39 +02:00
André Silva
41699f5d6e
grandpa: report equivocations on all runtimes ( #1000 )
...
* grandpa: report equivocations on all runtimes
* runtime: fix test-runtime compilation
* runtime: enable historical session manager on all runtimes
* runtime: fix indentation
* runtime: use strong key types in KeyOwnerProofSystem definitions
* update substrate
* bump spec_version of runtimes
2020-05-06 19:27:28 +01:00
Jon Häggblad
a7f76b4edd
Companion PR for Substrate #5375 ( #1040 )
...
* Companion PR for Substrate #5375
* fix compilation
* Update rpc/Cargo.toml
* update substrate
Co-authored-by: André Silva <andre.beat@gmail.com >
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org >
2020-05-04 22:27:38 +02:00
Bastian Köcher
054a64af7e
Companion for Substrate#5860 ( #1061 )
...
* Companion for Substrate#5860
* Update Substrate
2020-05-04 20:20:06 +02:00
Pierre Krieger
626a4aeccf
Some fixes to compile for Android ( #1063 )
...
* Some fixes to compile for Android
* Revert change to cli
2020-05-04 16:04:33 +02:00
Seun Lanlege
1b73920de1
remove ClientProvider import ( #1054 )
2020-04-29 18:48:07 +02:00
pscott
15c0e6e3ed
Companion PR for #5647 ( #1035 )
2020-04-29 18:46:51 +02:00
Bastian Köcher
c1ecc9b6cd
Use correct executor for Westend ( #1053 )
2020-04-29 15:15:49 +02:00
Seun Lanlege
befd6815a3
remove ClientProvider for feature PolkadotClient ( #1052 )
2020-04-29 13:10:03 +01:00