Commit Graph

8915 Commits

Author SHA1 Message Date
Luke Schoen 037f9dde10 docs: Extends #999. Remove disused package readmes. Rename to sr-metadata. Fix Readme Rustdoc names (#1016)
* docs: Remove safe-mix since is no longer local dependency

* docs: Fix existing packages link. Still only includes Substrate Core

* docs: Remove empty package Readmes. Remove old docs links. Rename to Readme

* docs: Remove link to old docs

* misc: Merge latest from master. Renaem to sr-metadata. Fix list of RustDoc package names

* Rename substrate-metadata to sr-metadata, since it is in the "srml" subdirectory

* Change example to use package name that opens all packages in RustDocs

* Fix list of packages names that are available to open in RustDocs

* fix typo

* fix ordering of CLI options and add missing backslash
2018-11-12 21:18:06 +01:00
Sergey Pepyakin 1f0f3c8f6b srml-contract: Extract schedule (#1044)
* Rename Config → Schedule.

* Fetch and pass config.

* Integrate config everywhere.

* <<<E as Ext>::T as Trait> → <<E::T as Trait>

* Update roots

* Cache existential_deposit

* Update COMPLEXITY.md

* Update roots.
2018-11-12 20:44:05 +01:00
azban 367c99b2bb test-utils: add chain-spec-builder cli (#1061)
* test-utils: add chain-spec-builder cli

* style changes, mostly indentation

* fix padding

* add issue to todo

* more style fixes

* share seed padding with keystore

* fix master rebase error
2018-11-12 20:21:03 +01:00
Chevdor 168de867f5 Also change the image for the second stage (#1103)
The fix in #1101 fixed the build but it produces an image that could not run.
The PR fixes that as well.
Ref #1099
2018-11-12 20:13:13 +01:00
Andrew Jones db075b57f0 RPC: expose chain spec properties (#1104)
* Add properties to chain spec

* Read properties as serde_json::Value

* Use a serde json::map::Map directly for properties

* Add type alias for json Map

* Update chain_spec.rs
2018-11-12 19:58:44 +01:00
Gav Wood 57b2896332 Remove unneeded Serde requirements (#1076)
* Remove superfluous serde requirements.

* Try to ensure hash is serde

* Fixups

* Building again

* Attempt to reenable Block (doesn't build)

* Fixes compilation for node cli

* Fixes test compilation

* Fix wasm

* Fix tests

* Remove unneeded changes

* Fix up comments

* Reenable some code

* Compile error when origin misused.

* Remove unnecessary includes of `serde_derive`

* Cleanups
2018-11-12 18:40:18 +01:00
Pierre Krieger b76ba06472 Some minor TODOs removal (#1102)
* Only reconnect if topology changed

* Minor changes
2018-11-12 17:54:57 +01:00
Chevdor 37e3fc37d7 Fix docker image (#1101)
Fix #1099
2018-11-12 15:30:30 +01:00
David 7eef5cc3f8 Update substrate to use libp2p master as of nov 9 (#1095)
* WIP

* Use latest lip2p master
2018-11-09 13:32:29 +00:00
Sergey Pepyakin 5cbbd2284d Fix the race. (#1081) 2018-11-09 13:31:53 +00:00
Simon Warta 0ab26a9c4f Simplify onboarding when using subkey restore (#1079)
* Switch order of `subkey restore` output

to macht the derivation chain: seed -> keypair -> pubkey -> address

* Use terms public key and address explicitly `subkey restore`
2018-11-09 13:30:07 +00:00
Luke Schoen 6edf23d155 refactor: Fixes #1083. Rename ApplyExtrinsicFailed method without typo (#1084) 2018-11-07 21:42:47 +01:00
Tomasz Drwięga 3acafa9d2f Last finalised block PubSub & RPC (#1080)
* Finalised blocks PubSub

* Finalised head RPC.

* Unify spelling.
2018-11-07 13:55:00 +01:00
Hero Bird 660c747c51 Update fixed-hash & uint utilities (#1078)
* [core/primitives] Update crunchy 0.1 => 0.2

* [core/primitives] Update fixed-hash 0.2 => 0.3.0-beta

* [core/primitives] Update `uint` 0.4 => 0.5.0-beta

* [core/state-machine] Fix errors emerged by fixed-hash update

* [core/state-db] Fix errors that emerged from fixed-hash update

* [core/sr-io] Fix errors that emerged from the fixed-hash update

* [core/trie] Fix errors emerged from fixed-hash updates

* [core/trie] Make use of new Hash::as_fixed_bytes_mut method in tests

* [core/sr-primitives] Fix errors emerged from updating fixed-hash

* [core/executor] Fix errors that emerged from fixed-hash update

* [core/test-runtime] Fix errors that emerged from updating fixed-hash

* [core/test-runtime] Fix an error that emerged from fixed-hash update

* [core/transaction-pool] Fix errors that emerged from updating fixed-hash

* Add From<u64> impl for hash types defined in core/primitives

* [core/client/db] Fix errors that emerged from fixed-hash update

* [core/{client/network/rpc}]: Fix errors emerged by fixed-hash update

* [node/{cli/executor/runtime}]: Fix errors emerged by updating fixed-hash

* [core/network]: Fix bug in parsing constant str

* Update Cargo.lock

- Add crunchy 0.2.1
- fixed-hash 0.2.2 => 0.3.0-beta.3
- Add static-assertions 0.2.5
- uint 0.4.1 => 0.5.0-beta.1

* [core/primitives]: Add fixed-hash/rustc-hex feature for FromStr impl

* [core/primitives] No longer provide From<u64> impl for hash types if byteorder support is not enabled

* [core/primitives] Revert to using From impl again in primitives tests

* [core/..] Fix some bugs that emerged by recent fixed-hash updates

* Update a bunch of Cargo.lock files

* [core/state-db] Re-add whitespace between attr and extern crate/mod

* [core/primitives] Fix bug in From<u64> impl for hash types using the wrong feature guard
2018-11-06 15:39:55 +01:00
Sergey Pepyakin 9072fce658 srml-contract: Sandbox mem IO according to COMPLEXITY.md (#939)
* Sandbox mem IO according to COMPLEXITY.md

* Fix tests.

* Update root hash for deploying contract test.
2018-11-05 19:23:16 +01:00
Pierre Krieger fcae7ac582 Switch to libp2p master (#931) 2018-11-05 19:22:26 +01:00
azban 94e2589f1e gitattributes: add file and ignore Cargo.lock in diffs and github stats (#1064) 2018-11-05 19:21:37 +01:00
Robert Habermeier 876969d6f0 add some docs 2018-11-05 11:27:01 +01:00
Robert Habermeier 3968553f8c re-export ApiId from sr-api 2018-11-05 10:47:34 +01:00
Robert Habermeier ddd46db4d5 fix test 2018-11-03 17:08:47 +01:00
Robert Habermeier abfc4a24a9 ignore test temporarily 2018-11-03 16:47:38 +01:00
Robert Habermeier dc59431474 API id module 2018-11-03 16:45:18 +01:00
Guanghua Guo c3809fe962 Delete unuse extern (#941) 2018-11-02 21:05:37 +01:00
azban e384cec08f readme: add instructions for running multi-node test (#1055) 2018-11-02 20:31:03 +01:00
Robert Habermeier ebeacee7d4 all tests compile 2018-11-02 18:17:57 +01:00
Bastian Köcher 26f1381d0d Make balance::Trait::Balance require Member (#1057) 2018-11-02 12:09:58 +01:00
Robert Habermeier 21f291a607 Merge branch 'master' into rh-grandpa-dynamic2 2018-11-01 20:31:13 +01:00
Robert Habermeier 5b2a93821c use published finality-grandpa 2018-11-01 20:25:59 +01:00
Robert Habermeier 6704f15e99 finish GRANDPA test: dynamic authority sets 2018-11-01 20:15:51 +01:00
azban 2bd4c5cc05 docker: use alpine to slim down images (#1047) 2018-11-01 10:35:45 +01:00
azban 80cd14fd17 telemetry: wait for logger setup before making connection (#1048) 2018-11-01 09:55:48 +01:00
azban a0b05b0b0c ignore intellij folder in gitignore and dockerignore (#1046) 2018-11-01 09:47:51 +01:00
azban 5a50f15926 improve docker build caching (#1045)
* docker: add Dockerfile and .dockerignore to .dockerignore

* docker: install cargo deps before copying code
2018-11-01 09:47:08 +01:00
Sergey Pepyakin 05a73de366 Refine Complexity.md (#1038) 2018-11-01 09:30:32 +01:00
Wei Tang b21de8a0b5 Support multi trie in genesis generation (#958)
* Support multi trie in genesis generation

* Fix merge issues
2018-11-01 09:30:03 +01:00
Sergey Pepyakin ac4a188e15 Use the upstream version of integer-sqrt. (#1041) 2018-10-31 15:40:59 +01:00
Robert Habermeier 9630f34775 client sets aux in import pipeline 2018-10-31 12:47:41 +01:00
Robert Habermeier d346b330f9 implement aux-storing in client-db 2018-10-31 12:41:22 +01:00
Robert Habermeier 3f2a7f3cba set aux in block import 2018-10-31 12:40:21 +01:00
Robert Habermeier c64ff78776 initial test to ensure auxiliary data is generated correctly 2018-10-31 12:39:27 +01:00
Robert Habermeier fe6dd131f0 tests compile after changes 2018-10-30 23:46:27 +01:00
Robert Habermeier afbe00db75 extract out tests to file 2018-10-29 17:05:42 +01:00
Robert Habermeier 6d4acb053d tests compile using new test framework 2018-10-29 17:03:08 +01:00
Robert Habermeier 84925067f4 generalizable data for peers in test network 2018-10-29 16:25:22 +01:00
Robert Habermeier 0302a1fc5e refactor import queue to use explicit block import references 2018-10-29 15:56:10 +01:00
Gav Wood 83683bce43 Update README.adoc 2018-10-29 10:44:38 +01:00
Robert Habermeier e2ee6a2b90 read authority set from DB on startup 2018-10-29 02:31:51 +01:00
Robert Habermeier 3317fee0a1 write authority set to DB 2018-10-29 02:05:47 +01:00
Robert Habermeier 55ca13ab09 call into chain WASM to check for changes 2018-10-28 20:50:31 +01:00
Robert Habermeier 442e300163 add substrate finality grandpa primitives for WASM 2018-10-28 20:37:09 +01:00