Commit Graph

4187 Commits

Author SHA1 Message Date
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
gabriel klawitter b3b511c974 Disable merge test enable kusama nightly staging test (#412)
* remove merge-test and set up kusama-nightly-staging

* refactor .gitlab-ci.yml

* kusama-nightly-staging typo i

* kusama-nightly-staging typo and cond --locked
2019-09-03 23:29:40 +01:00
郭光华 512ca35c62 Typo (#417) 2019-09-03 10:29:09 +02:00
thiolliere 8c38f05517 Update substrate master (#411)
* in progress impl

* im_online authorityid

* fix

* fix

* use polkadot-master

* trigger CI

* trigger CI

* fix removal

* storage reorganize included

* lock version
2019-09-02 16:05:51 +02:00
Robert Habermeier 55c4c830fe ICMP message-routing gossip (#304)
* core logic for ICMP gossip

* refactor gossip to make more extension friendly

* move files aroun

* extract attestation-gossip logic to its own module

* message validation and broadcast logic

* fix upstream crates' compilation

* add a test

* another test for overlapping

* Some grammar and phrasing tweaks

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

* add since parameter to ingress runtime API

* broadcast out known unrouted message queues

* fix compilation of service and collator

* remove useless index_mapping

* some tests for icmp propagation

* fix decoding bug and test icmp queue validation

* simplify engine-id definition

Co-Authored-By: Sergei Pepyakin <sergei@parity.io>

* address some grumbles

* some cleanup of old circulation code

* give network a handle to extrinsic store on startup

* an honest collator ensures data available as well

* address some grumbles

* add docs; rename the attestation session to "leaf work"

* module docs

* move gossip back to gossip.rs

* clean up and document attestation-gossip a bit

* some more docs on the availability store

* store all outgoing message queues in the availability store

* filter `Extrinsic` out of validation crate

* expunge Extrinsic from network

* expunge Extrinsic from erasure-coding

* expunge Extrinsic from collator

* expunge from adder-collator

* rename ExtrinsicStore to AvailabilityStore everywhere

* annotate and clean up message-routing tests
2019-08-29 11:49:59 +02:00
Pierre Krieger bd8ebbfee5 Update to latest Substrate (#407)
* Update to latest Substrate

* Fix main.rs
2019-08-27 15:50:24 +02:00
Chevdor 7612b7b56e Better filter to speed and reduce the size passed to the first stage image (#405) 2019-08-25 08:59:34 -07:00
Gavin Wood 974b400020 Update substrate (#404) 2019-08-24 20:41:16 +02:00
Gavin Wood 6c4ac65f5f Spelling and update (#402) 2019-08-24 18:58:20 +02:00
Logan Saether a554e72e91 Add Kusama to the README (#399) 2019-08-24 13:42:15 +02:00
Gavin Wood ccfa2b1828 Bump all versions to 0.6.0 (#397) 2019-08-24 13:40:57 +02:00
Gav Wood 4ee086f80a Bump runtime version 2019-08-24 03:06:08 -07:00
Gavin Wood 9011168ee1 Fix up bonding period. (#396) 2019-08-24 12:04:16 +02:00
Arkadiy Paronyan 908473c26b Allow parallel parachain validation (#370)
* Allow parallel parachain validation

* Fixed test interference

* Switch to pooled implementation

* Apply suggestions from code review

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

* Update validation_host.rs

* Minor cleanups

* Fixed build
2019-08-24 11:52:00 +02:00
Gavin Wood 7ae4f606c1 Kusama CC1 chain spec(!) (#395)
* CC-1 chain spec

* Name tweak
2019-08-23 12:14:34 +02:00
Jaco Greeff 9a32065c74 Add networkId to Kusama chain spec (#393)
* Add networkId to Kusama chain spec

* ss58Format
2019-08-21 17:24:48 +02:00
Gavin Wood 823aaabb60 Tweak treasury params (#392)
* Tweak treasury params

* Revert clobber
2019-08-21 16:47:08 +02:00
Robert Habermeier 7d78d9ace6 pay out slashes to the treasury (#391) 2019-08-20 18:33:14 +02:00
Federico Gimenez 2a78213040 fix Dockerfile (#386) 2019-08-20 15:09:23 +02:00
André Silva ac672a7881 runtime: disable grandpa offline fallback (#390) 2019-08-20 14:14:28 +02:00
Gavin Wood 6bcb0e57bf Update substrate and add some sensible values (#387)
* Update substrate

* Update substrate and some chain spec

* Undo old change

* Use hex ser/de for ethereum addresses

* Add docs.

* Accidental line

* incorrect fix

* Fix build
2019-08-20 13:29:05 +02:00
Pierre Krieger fdd014b862 Bump multistream-select to fix a debug_assert! (#389) 2019-08-20 13:16:06 +02:00
Gavin Wood ee630db943 Runtime version affinity enabled in transactions. (#384)
* Update to latest substrate

* Update lock

* Introduce tx version check

* Move to release constants

* fixes

* More updates

* More fixes
2019-08-19 09:18:03 +02:00
Robert Habermeier 742730c865 error variant for failed deadline compute in validation worker (#383)
* error variant for failed deadline compute

* fix compilation
2019-08-18 17:12:46 +02:00
Gavin Wood e6fb85a203 Move sudo to the last module (#381) 2019-08-18 15:36:36 +02:00
Gavin Wood cdefa9f9ad Enable session module during PoA (#380) 2019-08-17 19:13:06 +02:00
Gavin Wood 406aad0f9b Blocktime and epoch length tweaks. (#379)
* Blocktime and epoch length tweaks.

* Tweak probabilities.

* Deduplication.

* Add testnet values.
2019-08-16 21:48:42 +02:00
Bastian Köcher da39da8a04 Fix service setup for non-validator nodes (#378)
* Fix service setup for non-validator nodes

* Apply suggestions
2019-08-16 20:10:58 +02:00
Gavin Wood 2c6409a942 Update to latest Substrate (#377)
* Update to latest substrate

* Propagate substrate#3225

* Fixes

* Build

* Fix
2019-08-16 17:56:56 +02:00
Federico Gimenez 1054a531b5 non-root user for running node in Dockerfile (#369) 2019-08-16 13:42:37 +02:00
Shawn Tabrizi 481ded5509 Update Claims EcdsaSignature Codec (#373)
* Update to use [u8; 65] for EcdsaSignature

* Fix warning
2019-08-16 13:40:52 +02:00
cheme 873b974566 Config genesis json with children. (#372) 2019-08-16 13:39:15 +02:00
Tomasz Drwięga 46dd1d71d8 Add provides tag to claims transactions. (#375) 2019-08-16 12:12:53 +02:00
Pierre Krieger f3d8024799 Replace parse_and_execute with parse_and_prepare (#368) 2019-08-15 16:56:31 +02:00
Gavin Wood b4bb9c771c Claims module uses a hex representation of the address not raw (#371)
* Claims module uses a hex representation of the address not raw

* Fix test
2019-08-15 16:56:12 +02:00
thiolliere 2e4ce7f558 Reward validity statements from validators (#356)
* impl reward

* typo

* more clean RewardAttestation trait

* reward by index

* address grumble
2019-08-14 14:41:20 +02:00
Gavin Wood 7bd46ffbcb Prepare stuff for Kusama (i.e. disable most things) (#362)
* Prepare stuff for Kusama (i.e. disable most things)

* Fix service (hopefully)

* Remove curated grandpa.

* Block unwanted transactions a cleaner way.

* Add feature for restricting tx types

* Cleanups

* Make blocktime 1/10th of normal

* Fix ordering in construct_runtime

* Restore original timing

* Revert name change
2019-08-13 20:36:27 +02:00
Kian Paimani 10fc88f6b1 Update to latest Substrate master. (#353)
* Integrate srml/im-online

* Fix all build errors with old aura.

* Fix most of the build errors.

* Builds and tests seem to pass (I will not trust this commit yet)

* Apply suggestions from code review

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

* Kill some warnings.

* fix panics on 0 validators

* Fix dev chain.

* Fix author stuff

* fix im online integration.

* Some tweaks

* Introduce app-crypto

* Initial build work

* codec update / tweaks

* patch polkadot-erasure-coding input

* More fixes for new crypto

* More fixes

* Update parachains module

* evamp parachain crypto

* More crypto work.

* Chain spec and service.

* ChainSpec stuff

* Last bits for a clean build

* Tweak coment

* adapt polkadot-validation to the new keystore

* polkadot-network compiles, but tests don't

* Integrate the new parachain validation stuff

* delete message_routing file

* make polkadot-network tests compile and pass

* runtime tests compile and pass

* update substrate ref

* service compiles

* all tests pass

* Add TODO, change branch back to polkadot-master

* Lock file

* TODOs done

* Issue number

* Remove old tODO

* Remove commented code
2019-08-12 15:48:29 +02:00
Gavin Wood 9b6e630816 Integrate the claims module (#355)
* Integrate the claims.

* Remove accidetnal code.

* Update runtime/src/lib.rs

Co-Authored-By: thiolliere <gui.thiolliere@gmail.com>

* Add Config.

* Introduce claims to config

* Expose claims module signing Prefix (#358)

* Update parking_lot, bette trait args
2019-08-07 23:49:32 +02:00
Robert Habermeier 4d19de4bd9 Track received attestations from recent blocks (#337)
* record attestations in storage ringbuffer

* remove some reliance on Aura

* fix up test configuration

* extract attestations stuff out to its own module

* add dummy inherent

* use double_map

* fix a couple more compilation errors
2019-08-06 23:08:38 +02:00
Robert Habermeier 8c4d882407 sanity check on validity-votes length (#354) 2019-08-06 15:37:38 +02:00
Pierre Krieger 14cf3142d3 Remove tokio dependency from networking and service (#351)
* Remove tokio dependency from networking

* Also remove tokio from service

* Finally fix tests
2019-08-06 11:36:06 +02:00
Pierre Krieger 56845f74b5 Make polkadot-parachain compile for WASM (#350) 2019-08-06 01:07:24 +02:00
Stanislav Tkach c660c31937 Pass indices in serialized form (#318)
* Pass indices in serialized form

* Fix indentation and remove panic

* Fix tests and other code

* Remove unique voters tracking

* Restore validator group check

* Fix lock file

* Add test

* Add attestation sorting

* Add validation to the check_candidate function

* Update codec version one more time

* Remove patch versions
2019-08-05 22:44:05 +02:00
Bastian Köcher 4d5db52ca0 Update to latest Substrate (#340)
* Update Substrate

* Update Substrate again

* Integrate weight/fee stuff.

* Add new files.
2019-07-26 12:19:41 +02:00