Commit Graph

295 Commits

Author SHA1 Message Date
chevdor ec946fe893 Add same .editorconfig than Substrate 2018-09-10 15:13:30 +02:00
chevdor 64a2a97de5 Add docker resources 2018-09-10 15:07:55 +02:00
Gav Wood 335b850e0c Merge pull request #2 from paritytech/a-wasm-authoring
Authoring with WASM runtime
2018-09-01 12:04:35 +02:00
arkpar ab5e870f1c Merge branch 'master' of github.com:paritytech/polkadot into a-wasm-authoring 2018-08-31 18:06:00 +02:00
Gav Wood 55dec503d4 Merge pull request #11 from paritytech/gav-compat-629
Upgrade to Substrate#629
2018-08-31 14:42:46 +02:00
Arkadiy Paronyan 192907811b BFT delay adjustments (#593)
* force delay only on votes

* set proposal timestamp forward

* Adjusted timeout formula
2018-08-31 13:26:51 +02:00
Sergey Pepyakin f19966de8f Install llvm-tools. 2018-08-31 14:10:25 +03:00
Gav 91b1a8960e Ugh. Confused. 2018-08-30 18:59:49 +02:00
Gav 07c72ea8e7 Rejig serialisation 2018-08-30 18:57:59 +02:00
Gav 268b3ea949 Fix 2018-08-30 18:25:12 +02:00
Gav d4e761ae7d No need for specific branch 2018-08-30 13:53:04 +02:00
Gav Wood a325902e57 Merge branch 'master' into a-wasm-authoring 2018-08-30 13:48:16 +02:00
Gav 4f210bbad6 Fix tests 2018-08-30 13:42:59 +02:00
Gav 1b0861a1e3 Fix build 2018-08-30 13:40:05 +02:00
Gav 57e2257a54 Merge remote-tracking branch 'origin/master' into gav-compat-629 2018-08-30 12:42:59 +02:00
Gav Wood aa6340c2fd Merge pull request #7 from paritytech/rh-testnet-fp
Forward-port of various testnet fixes
2018-08-30 12:41:44 +02:00
Gav Wood 96c269ad08 Merge branch 'master' into rh-testnet-fp 2018-08-30 12:37:24 +02:00
Gav 74b4bc0911 Update to latest substrate 2018-08-30 11:17:48 +02:00
Gav 5138feb801 Fix up polkadot runtime 2018-08-30 09:57:09 +02:00
Gav 7aff0dc99b Merge branch 'gav-compat-624' into gav-compat-629 2018-08-29 23:57:53 +02:00
Gav 11b9d9495a Merge branch 'master' into gav-compat-624 2018-08-29 23:57:35 +02:00
Gav e322657597 Initial stuff 2018-08-29 23:56:04 +02:00
Arkadiy Paronyan ee9779abd5 Merge pull request #9 from gguoss/arrange
Delete not use dependecies in polkadot/cli
2018-08-29 13:36:02 +02:00
Arkadiy Paronyan 2a27dc1a69 Merge pull request #6 from paritytech/a-ext-pool
More generic extrinsic pool
2018-08-29 12:33:45 +02:00
Gav 79932f1975 Compat fix for substrate#624 2018-08-29 12:30:04 +02:00
gguoss 0b2ef109c5 Delete not use dependecies in polkadot/cli 2018-08-28 10:50:32 +08:00
Robert Habermeier 624c2ca0dc Merge remote-tracking branch 'substrate-disk/polkadot-testnet-fixes-fp' 2018-08-23 13:57:43 +02:00
Robert Habermeier 430e3920e5 Rollup of various testnet-related fixes.
fix a deadlock when spawning agreement as non-authority

fix test compilation for BFT

more accurate consensus superseding logic

mild revision to `can_build_on` logic

block evaluation without redundant initialisation

refactor BFT delay: update rhododendron and poll after delaying. (#589)

dropping BFT future before poll doesn't lead to service deadlock
2018-08-22 18:14:58 +02:00
arkpar 6a491f10a2 Bumped substrate 2018-08-21 17:29:47 +02:00
arkpar d10733c3fe More generic extrinsic pool 2018-08-20 17:21:33 +02:00
Arkadiy Paronyan f993836b72 Merge pull request #3 from paritytech/rh-continue-rounds
fix interval logic
2018-08-20 17:18:19 +02:00
arkpar 9f64bb78a3 Bumped substrate 2018-08-20 17:17:54 +02:00
Arkadiy Paronyan 6d3aa8b16e Merge pull request #4 from miguelmota/bugfixes/typos
typo fix
2018-08-20 17:09:11 +02:00
Miguel Mota a7a5b5633b typo fix 2018-08-17 15:38:14 -07:00
Robert Habermeier f1cc82ae53 Continue from next round when re-building on same block (#582)
* keep rounds consistent when encountering bad block

* fix interval logic

* Fixed indentation
2018-08-17 22:13:01 +02:00
arkpar d6ddbc8bb5 Paranoid mode 2018-08-17 14:09:26 +02:00
Robert Habermeier 321441c1f7 fix interval logic 2018-08-17 13:56:13 +02:00
arkpar aaf7bc930a Authoring with WASM runtime 2018-08-17 11:01:34 +02:00
Gav Wood f12221c4e6 Version bump, fixes (#572)
* Bump version, don't propose invalid blocks

* Fix build.

* Fixes.

* More fixes.

* Fix tests.

* Fix more tests

* More tests fixed
2018-08-15 21:50:39 +02:00
Gav Wood 4e103f3d5f Update README.adoc 2018-08-15 19:46:28 +02:00
Gav Wood 673b4d16d2 Update README.adoc 2018-08-15 19:41:08 +02:00
Gav Wood 314e2eeaf9 New slashing mechanism (#554)
* Slashing improvements

- unstake when balance too low
- unstake after N slashes according to val prefs
- don't early-terminate session/era unless unstaked
- offline grace period before punishment

* Fix warning

* Cleanups and ensure slash_count decays

* Bump authoring version and introduce needed authoring stub

* Rename

* Fix offline tracker

* Fix offline tracker

* Renames

* Add test

* Tests

* Tests.
2018-08-15 18:08:21 +02:00
Robert Habermeier 898c7d3138 parity-substrate -> substrate 2018-08-15 14:34:49 +02:00
Robert Habermeier 56759c781c replacing references to staging branch 2018-08-15 14:17:28 +02:00
Robert Habermeier 3e1e14d2c1 remove WASM publish step 2018-08-15 13:57:46 +02:00
Robert Habermeier 649bb2fdaa build new WASM 2018-08-15 13:42:34 +02:00
Robert Habermeier 670fc459b2 copy scripts 2018-08-15 13:40:49 +02:00
Robert Habermeier f85fcd4fc2 get building 2018-08-15 13:40:46 +02:00
Robert Habermeier 6e0903613b point to upstream split-substrate branch 2018-08-15 13:16:54 +02:00
Gav Wood c5e68a7b9b Refactor/substrate state machine generic (#553)
* Genric over hasher

* WIP start adding NodeCodec

* Add codec to TrieBackend

* Typechecks

* Fix error type

* Cleanup

* Tests build (and fail)

* Fix tests: don't use MemoryDB::default()

* Lockfile

* Address grumbles

* Teach environmental! about generics

* Add Finder artifacts

* whitespace

* Add a toy impl of Hasher and plug it in to Externalities

* Use `uint` and `fixed-hash` from `parity-common`
Remove unused U512
Add test to ensure H256 impls heapsizeof

* lock file updates

* Make hashes Encodable/Decodable

* lock file updates

* Impl FromIterator for TestExternalities so we can collect() and use map!

* Use rustc-hex from crates
Use rlp from master so dependencies do not mess up the scope

* Fix tests in runtime-io

* lockfile shenanigans

* Add a BlakeHasher impl

* Use BlakeHasher in runtime-io

* lockfile updates

* ws

* Add a Blake2/RLP-flavoured NodeCodec

* Use Blake-flavoured Hasher and NodeCodec

* lockfile

* Implement PartialEq and Default for TestExternalities

* Add note about limitations of environmental!

* Make it compile, but this is probably broken

* Derive Debug so tests in executor can work

* Make executor use BlakeHasher

* ws

* WIP make client generic

* typechecks

* cleanup

* client tests pass

* Fix client/db

* cleanup

* Fix network

* Fix rpc

* Fix service

* Make TestExternalities work better au lieu d'un HashMap

* Fix tests in council

* Fix tests in contract

* Fix tests in council

* Fix democracy

* Add comment about odd-looking reexports in tests

* Don't need to load branch

* Fix staking

* Fix session

* Some polkadot fixes and lockfile

* Fix executive

* fixup lockfile

* Fix polkadot/api

* Fix polkadot/service

* Fix polkadot/runtime tests

* Fix tests in test-runtime

* Test fixes

* Fix missing component in the `std` feature

* Use PhantomData and Result from core

* Fix paths
Use core

* load heapsize on wasm

* implement `HeapSizeOf` for wasm

* Add toy impl of `blake2_256` for no_std

* lockfile

* Use kvdb* from parity-common and fix errors

* rebuilt lockfile

* Add dummy impl of `on_advance_round` for rhododendron::Context

* Fix build after merge

* Add HeapSizeOf bound where needed

* Sort out dependencies for no_std

* Add HeapSizeOf bound where needed

* use temp branch pending PR merges

* Remove unneeded tests

* Lock file and wasm artifacts

* lockfile

* Use magic commit for libp2p

* Cleanup

* Implement blake2_256 for no_std

* Back on parity-common master

* missing type params

* Update Cargo.lock

* whitespace

* Rename concrete Rlp node codec "RlpCodec" and use everywhere
Implement a Keccak-flavoured Rlp NodeCodec and use everywhere
Add a KeccakHasher

* Switch to use KeccakHasher

* Lock file and runtimes

* fixup lockfile

* Fix outstanding issue using concrete types (thanks @gnunicorn)

* Cleanup

* More cleanup

* Comment out Blake2 Hasher

* implement ext_keccak256

* Address todo: FetchChecker is generic

* all tests passing
2018-08-15 13:13:11 +02:00