Commit Graph

499 Commits

Author SHA1 Message Date
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
Kian Paimani 8fb635b5e5 Update to latest substrate (#504)
* Update cargo files

* First round of build fixes

* update lock file
2019-10-28 14:28:13 +01:00
Gavin Wood ca8aa4c4cd Enable nicknaming for accounts (#500) (#501)
* Update Substrate and add support for account nicknames

* Bump spec version

* Bump substrate branch

* Make nicks callable.

* Bump Substrate
2019-10-27 16:24:57 +01:00
Gavin Wood 6c14bad4e8 Final tweaks for Kusama PrePos. (#499)
* Final tweaks for Kusama PrePos.

* Replace old code

* Extra utility function.

* Update to latest Substrate

* Update to latest again
2019-10-25 16:29:07 +02:00
André Silva 6d71392500 service: don't use the grandpa observer (#494) (#498)
* service: don't use the grandpa observer

* service: remove unnecessary boxing

* service: fix indentation

* service: remove unnecessary on_exit

tasks spawned with `spawn_task`/`spawn_essential_task` are already
guarded by `on_exit`.

* Update service/src/lib.rs

Co-Authored-By: Gavin Wood <gavin@parity.io>
2019-10-25 12:47:42 +02:00
André Silva a84a5f472c Update to latest substrate polkadot-master (#496)
* update to latest substrate polkadot-master

* Bump to 0.6.3
2019-10-25 12:12:41 +02:00
André Silva d51cdff423 service: cleanup task spawning (#495) 2019-10-25 11:09:54 +01:00
Gavin Wood 425b884931 Switch elections to Phragmen, enable them in PoA (#492)
* Switch elections to Phragmen, enable them in PoA

* Remove superfluous code.

* Build fixes

* Update to substrate master

* Build fixes

* Add warning

* Disable authority discovery for now

* Remove commented code

* Fix warning
2019-10-24 18:55:02 +02:00
André Silva dd2b43cd10 Update to latest substrate master (#491)
* update to latest substrate master

* Fix compilation
2019-10-23 17:17:49 +02:00
Tomasz Drwięga 8dc443dc5b Support account_nextIndex RPC. (#460)
* Use node-rpc extensions to support account_nextIndex.

* Remove todo.

* Update lock.

* Use new srml_system_rpc crate.

* Update to substrate=master

* Update lockfile.

* Update to polkadot-master.

* Apply suggestions from code review

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>
2019-10-23 13:17:53 +02:00
gabriel klawitter 203cd74466 ci: fix publishing of ci builds (#488) 2019-10-22 11:44:05 +02:00
Bastian Köcher 11afe6a30c Only register one gossip validator for full nodes (#487) 2019-10-21 15:06:00 -04:00
fbranciard fee152fa51 fix dockerfile build - upgrade image base from ubuntu 16 to 18 (#423) 2019-10-21 12:32:11 +02:00
Bastian Köcher 7732e6cc60 Fixes required for Cumulus (#485)
* Collator node need to register all gossip validators as well

* Make sure that parachain authorities are only written once at genesis

* Fix test
2019-10-21 10:10:20 +02:00
Bastian Köcher 2e47302ead Update to latest Substrate master (#486) 2019-10-20 21:23:16 +02:00
Kian Paimani f861486fd2 integrate minor weight/fee changes (#482)
* Update cargo files

* Make it build again.

* Fix build

* revert cargo file

* New lockfile

* Bump.
2019-10-19 15:03:18 +02:00
Bastian Köcher 687244f989 Pass client and task_executor to BuildParachainContext (#484)
* Pass `client` and `task_executor` to `BuildParachainContext`

* Update `Cargo.lock`
2019-10-19 13:26:15 +02:00
Bastian Köcher 2842be7b81 Make ParaId constructible from a const context (#483) 2019-10-19 13:09:21 +02:00
gabriel klawitter b890df6cde change versioning and tagging of releases (#476)
* change versioning and tagging of releases
2019-10-16 16:03:28 +02:00
yjh 78fc9edd5f fix var name for post_upward_message (#474)
Signed-off-by: yjhmelody <465402634@qq.com>
2019-10-11 13:25:36 +02:00
Bastian Köcher 0efa39ce06 Update to latest Substrate master (#472)
* Update to latest Substrate master

* Fix

* Fix compilation
2019-10-11 13:24:30 +02:00
Gavin Wood b1558157cb Introduce Parathreads (runtime) (#341)
* Rest of parathread draft implementation, parachain permissioning.

* Update Substrate

* Update Substrate again

* Integrate weight/fee stuff.

* Council

* Build fixes

* More fixes

* Minor additions

* fix some small errors

* Revert "fix some small errors"

This reverts commit 4fb52c82adfdaf3af98edfe36b280133bcd4f9d3.

* Merge fix.

* do_swap -> on_swap

* Update depdendency to polkadot-master

* Fix more merge problems

* Some patching of errors

* Fix storage closure

* Actually fix storage. It builds!

* Tests run... but not successfully.

* Add `run_to_block` to get parachains active to start

* More `run_to_block`

* Fix build

* Queue up changes to threads

* Move registration test

* Fix regsiter/deregister test

* Retry queue.

* Minor refactor

* Refactor to avoid heavy storage items

* Make tests pass

* remove para on deregister, add events

* Remove println

* Fix register/deregister parathread test

* fix merge

* Parathread can be activated test

* Test auction

* Add `Debtors` storage item

I considered putting the debtor information in `ParaInfo`, but it did not make sense to me since this information only applies to parathreads, not `paras` in general.

* remove comment code

* Some new tests

* Fixes for removing threads when scheduled. Tests.

* Test progression of threads.

* Test that reschedule queuing works properly.

* Make test slightly more interesting

* whitespace

* Swap works properly.

* Update locks

* Build

* Rename can_swap

* Add test for funds to be correctly returned after a swap

Swap does not seem to have logic which correctly swaps the debtor account to the new parathread.

* Make tests consistant

* Add check that `PendingSwap` is cleaned up

* Update runtime/src/parachains.rs

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

* Update runtime/src/registrar.rs

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

* Some fixes/suggestions from review

* Docs

* Apply suggestions from code review

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

* Update network/src/gossip.rs

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

* Rename OnSwap

* Add missing `]`

* Rejig ordering semantics, making everything a bit slower but correct.

* Some Fixes to Parathread Compile (#470)

* Some Fixes

* Fix queue_upward_messages

* Change back to const

* Build fixes

* Fix tests
2019-10-11 08:27:30 +02:00
gabriel klawitter dfa4e2128b update branch name in Cargo.lock (#473) 2019-10-10 17:37:34 +02:00
Ashley 9240042048 Changes for substrate#3699 (#466)
* change upstream and branch

* Fix build

* remove doc renamings

* Fix tests

* .

* Revert changing fork and branch

* Update Cargo.toml

* Update parachains.rs
2019-10-10 13:50:41 +02:00
yjh ecfea4536f wasm_executor: fix wasm signature checker (#471)
Signed-off-by: yjhmelody <465402634@qq.com>
2019-10-10 13:49:25 +02:00
Bastian Köcher cb4875ec81 Make ParachainContext take self as mutable (#458)
This replicates changes to `Environment`/`Proposer` that are used
internally at Cumulus.
2019-10-08 17:41:52 +02:00
Bastian Köcher dd0009a006 Fix compilation in wasm (#465)
Also fix the weird file structure by making `wasm_executor.rs` ->
`wasm_executor/mod.rs`.
2019-10-08 17:40:48 +02:00