Commit Graph

481 Commits

Author SHA1 Message Date
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
André Silva 9c7845b824 Update latest substrate master (#462)
* update substrate to latest polkadot-master

* fix test runtime
2019-10-08 08:44:29 +02:00
thiolliere 9d3dd691b6 update (#457) 2019-10-03 12:52:41 +02:00
Bastian Köcher 6a7956b45e Enable substrate-session std feature and remove unused traits (#456) 2019-10-01 10:46:54 +02:00
Talha Cross 3e78d326a4 docs: add security policy (#450)
* docs: add security policy

* Update SECURITY.md

Co-Authored-By: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
2019-09-30 14:39:24 +02:00
joe petrowski e9bfafc235 update readme for cc2 (#453) 2019-09-30 11:32:05 +02:00
ddorgan d82f459543 Kusama CC2 spec (#449) 2019-09-26 12:27:38 +02:00
thiolliere ba31727ddd lock (#446) 2019-09-24 18:04:29 +02:00
André Silva ec828175d8 grandpa: set justification period to 512 blocks (#445) 2019-09-24 17:29:47 +02:00
André Silva 821a59ca8d add authority discovery module (#444) 2019-09-24 15:31:27 +02:00
Bastian Köcher 4f4baa9b07 Update to lastest Substrate master (#443) 2019-09-24 13:09:30 +02:00
thiolliere 444a19ec5f update substrate (#442) 2019-09-23 16:25:14 +02:00
Bastian Köcher 21cb1e9f45 Switch to wasm-builder 1.0.7 (#441)
* Switch to `wasm-builder` 1.0.7
2019-09-23 12:38:38 +02:00
Gavin Wood 0b0a42b717 Crowdfund parachain deposit (#315)
* Initial crowdfund stuff

* Make `communication_for` exit when we end a round (#313)

* Make `communication_for` exit when we end a round

* Fix compilation

* Add file

* Rest of logic.

* Consts to Getters

* Cleanups

* Trying to get things to compile

* More patchwork

* Patch dissolve

* Patch `fix_deploy_data`, add getters to `NewBidder`

* Dispatchable functions compile... with warnings

* Fix some warnings and typos

* Whitespace to Tabs

* Update to use `into_sub_account`

* Add events

* Basic fixes to runtime logic and checking

* Check that auction in progress when creating

* Automatically assign end for crowdfund

* Update runtime/src/crowdfund.rs

Co-Authored-By: Amar Singh <asinghchrony@protonmail.com>

* Update runtime/src/crowdfund.rs

Co-Authored-By: Amar Singh <asinghchrony@protonmail.com>

* Update runtime/src/crowdfund.rs

Co-Authored-By: Amar Singh <asinghchrony@protonmail.com>

* Update crowdfund.rs

* Patch `NewRaise` logic

* Test compiles

* Make `NewRaised` logic even better

* Fix trie id generation, start to add some tests

* More tests

* Add more tests

* Finish tests

* Formatting nits

* Use `into_iter`

* Fix for latest Substrate updates

* Cleanup

* Fixes.

* Copyright header.

* Remove dead code.

* Reinstate actually alive code.

* Fix tests

Still have to write some new follow up tests though

* Make funds work before auction

* Test a fund which spans 2 auctions.

* Docs.

* Update doc
2019-09-17 18:22:34 +08:00
Gavin Wood 99c6d600c4 Substrate.from() (#431)
* Update branches

* Bump runtime.

* Update again.
2019-09-13 15:27:41 +02:00
gabriel klawitter cccfdee49b ci: build-linux-release fix missing bracket (#434) 2019-09-12 14:48:39 +02:00
gabriel klawitter 524890c335 ci: build kusama-nightly-staging and trigger deployment (#430)
* trigger pipeline in github-api for polkasync

* update polkadot branch name for replacement

* deployment: update project
2019-09-12 14:12:25 +02:00
Gavin Wood 28e23d07ef Substrate.from() (#426)
* Substrate.from()

* Fix some transaction validation code

* must be more specific for matching now.

* Update `wasm-builder` and add `build-only-wasm` script

* Update to latest service builder interfaces

* ANother substrate update

* Another update
2019-09-11 13:14:20 +02:00
thiolliere 5590ba2fbe forward ported version bump (#418) 2019-09-04 12:47:25 +02:00