Pierre Krieger
b8602aa58b
Fix TODO for the WASM CI build of rpc-servers ( #3966 )
2019-10-30 12:22:04 +01:00
Pierre Krieger
5de3393297
Make substrate-offchain compile for WASM again ( #3965 )
...
* Make substrate-offchain compile for WASM again
* Minor adjustments
2019-10-30 12:08:46 +01:00
André Silva
b16bd4de8d
bump version to 0.6.6 ( #516 )
2019-10-30 10:48:45 +01:00
Ashley
678ec6899c
Remove deprecated Client::backend ( #3951 )
2019-10-29 19:26:44 -04: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
Bastian Köcher
93c1e87a36
Provide simple TestSessionHandler that works with UintAuthorityId ( #3962 )
2019-10-29 21:20:09 +01:00
André Silva
9ec5ba46f3
cli: fix display_role helper ( #3961 )
2019-10-29 20:07:11 +00:00
Max Inden
6ee284ec5e
test-utils/chain-spec-builder: Add note to run builder in release mode ( #3958 )
2019-10-29 20:41:43 +01:00
Bastian Köcher
de711ac188
Upgrade impl-serde to 0.2.3 ( #3960 )
2019-10-29 20:22:20 +01:00
André Silva
c92eda9809
node: add sentry mode flag ( #3959 )
...
* node: add sentry mode flag
* cli: extend docs on validator and sentry modes
* service: add missing field in test Configuration
* node: Display instead of Debug when printing node role
2019-10-29 19:58:34 +01:00
André Silva
dc14809804
grandpa: fix handling of catch-up requests ( #3956 )
...
* grandpa: fix handling of catch-up requests
* grandpa: fix tests
* grandpa: add test for catch-up handling when observer disabled
* grandpa: extend doc comment
* grandpa: rename existing catch up test
2019-10-29 19:15:49 +01:00
Gavin Wood
3aecf32824
More robust punishment ( #3952 )
...
* Introduce new option "always force new era".
* Take appropriate action, even for small offences.
- Deselect the offender in all circumstances
- Ensure that deselection forces a new era
- Ensure that forcing a new era works with the always-forcing.
* Bump runtime
2019-10-29 17:03:17 +01:00
Kian Paimani
a0e24f3aa2
Storage migration of elections-phragmen ( #3948 )
...
* Initial sotrage migration
* Fix some deps
* test added
* another dep removed
* Update srml/elections-phragmen/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* a bit nicer
2019-10-29 15:46:34 +01:00
Ashley
ae42db6049
Switch sr-arithmetic benchmarking to criterion ( #3902 )
...
* Change DefaultMaxDepth from 1024 to 32
* Switch sr-arithmetic benchmarking to criterion
* Update core/sr-arithmetic/Cargo.toml
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update core/sr-arithmetic/benches/bench.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Test on variable limb lengths
* Change license
* Rework division
2019-10-29 13:47:27 +01:00
Bastian Köcher
057636fd1f
Remove footgun around session keys/handlers ( #3949 )
...
* Remove footgun around session keys/handlers
- `OpaqueKeys` now has an associated type `KeyTypeIdProviders`. This can
be used in the runtime as input for `SessionHandler` from the session
trait.
- `impl_opaque_keys` now works with modules and extracts the `KeyTypeId`
from the module directly.
- Added some checks to the `session` storage initialization that checks
that the `SessionHandler` and `Keys` use the same number of keys and
that the order is equal.
* Update core/sr-primitives/src/traits.rs
2019-10-29 00:58:58 +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
Tomasz Drwięga
06433c9889
Fix a import+prune+replace case for multi-provides transactions. ( #3939 )
...
* Fix a import+prune+replace case for multi-provides transactions.
* Fix tests.
2019-10-28 16:06:20 +01:00
Nikolay Volf
448ce2adff
Basic extrinsic pool benchmarks ( #3922 )
...
* Working bench for 50 sequental
* configured benches
* fix warnings
* Optimize and fix issues
* add preamble
* Fix benchmarks.
* fix compilation
* remove unneeded features for now
2019-10-28 16:05:52 +01:00
Kian Paimani
7e87dfdc07
RPC to query transaction fee + weight + info ( #3876 )
...
* initial version for testing
* New version that compiles
* optional at block parameter
* Fix some more view grumbles.
* Update srml/transaction-payment/src/lib.rs
2019-10-28 16:04:45 +01:00
Kian Paimani
9b1dd268bf
Updates to elections-phragmen and some runtime docs. ( #3940 )
...
* minor changes
* Refactors for phragmen-election
* Bump.
* Fix genesis stuff
* Fix rest of the errors
2019-10-28 15:29:53 +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
Pierre Krieger
fbe9cfad46
Too many addresses for a node is now a debug! rather than warn! ( #3938 )
...
* Too many addresses for a node is now a debug! rather than warn!
* I managed to fail this change
2019-10-28 13:12:31 +01:00
Gavin Wood
ec7655cc7b
Tip payment is a different withdraw reason. ( #3937 )
...
* Tip payment is a different withdraw reason.
* Bump runtime version.
* Test fix.
* Fix lock type
2019-10-28 13:04:20 +01:00
Max Inden
e110cd7ae8
*: Disable authority discovery module ( #3914 )
...
The authority discovery module enables authorities to be discoverable
and discover other authorities to improve interconnection among them. In
order to achieve this the module needs to know when the authority set
changes, thus when a session changes.
One has to register a module as a *session handler* in order for it to
be notified of changing sessions. The order and number of these *session
handlers* **MUST** correspond to the order and number of the *session
keys*.
Commit 027d887 added the authority discovery to the `SessionHandlers`.
Given that the authority discovery module piggybacks on the Babe session
keys the commit violated the above constraint.
This commit reverts most of 027d887 , leaving `core/authority-discovery`
and `srml/authority-discovery` untouched.
2019-10-28 11:06:16 +01:00
Bastian Köcher
6beaccdae3
decl_storage! check for duplicate config()/get() (#3936 )
...
* `decl_storage!` check for duplicate `config()`/`get()`
* Fix tests
2019-10-28 09:35:09 +01:00
kaichao
bb5f406b3b
Fix test description. ( #3935 )
2019-10-27 18:44:19 +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
580e32101e
runtime: Add ability to force a name change ( #3934 )
...
* Add ability to force a name change
* Fix tests
* Bump runtime.
2019-10-27 16:20:35 +01:00
Gavin Wood
c08ac2277f
runtime: Expose const params for nicks module ( #3932 )
...
* Expose const params for nicks module
* Bump runtime
2019-10-27 14:36:35 +01:00
Gavin Wood
d41a5ce00f
Revert "Watch existing extrinsics RPC ( #3873 )" ( #3931 )
...
This reverts commit d149c2f719 .
2019-10-27 13:19:06 +01:00
Nikolay Volf
d149c2f719
Watch existing extrinsics RPC ( #3873 )
...
* Transaction pool watch intristics.
* Track extrinsic rpc methods.
* Test for pool watcher.
* Track extrinsic rpc test.
* Fix rpc naming.
* review fixes
* Update jsonrpc and use une subcription.
* Naming and dependencies.
2019-10-27 12:55:44 +01:00
Xiliang Chen
f7ee9ab235
Fix node-template ( #3924 )
...
* fix node-template
Use MultiSignature to maintain compatibility with substrate-node
Reset version to 1
Remove unused const
* fix chain_spec
* line width
2019-10-27 12:54:41 +01:00
André Silva
981c3a57f9
grandpa: always try to import available block justifcation ( #3928 )
...
* grandpa: always try to import justifications in blocks
* grandpa: export useful types
* grandpa: add test for justification import on regular blocks
* grandpa: expand comment in test
2019-10-27 12:54:08 +01:00
Nikolay Volf
40fac49216
Fix missing doc comments. ( #3929 )
2019-10-27 12:53:52 +01:00
Gavin Wood
3d6127ade0
runtime: Account nicknames ( #3930 )
...
* Add Nicknames module for accounts.
* Integrate into node.
* Fix build
* Update srml/nicks/src/lib.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Bump runtime
* Improve weight docs
* Docs.
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-10-27 12:53:41 +01:00
Gavin Wood
ae95d05621
Correct docs. ( #3919 )
2019-10-25 18:04:32 +02: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
Gav Wood
158b4b0b91
Merge branch 'master' of github.com:paritytech/substrate
2019-10-25 15:20:50 +02:00
Gav Wood
d2e6d8c64d
Emergency build fix on previous PR.
2019-10-25 15:19:36 +02:00
Bastian Köcher
ce71b7554d
Adds function to_substrate_wasm_fn_return_value ( #3905 )
...
* Adds function `to_substrate_wasm_fn_return_value`
Instead of replicating this piece of code over and over again, just move
it to a function that does it.
* Feedback
* Comment
2019-10-25 15:18:20 +02:00
Pierre Krieger
7c0592a9b6
Telemetry timeout ( #3916 )
...
* telemetry worker: add connection timeout
* restructure
* only add timeout when writing data
* don't overwrite an existing delay
* set timeout only around writing data
* address comments
* dedicated error enum
* remove whitespace
* move timeout to inside struct
* fix timeout
* remove prints
* move polling
* address comment
* Implement
* More work
2019-10-25 15:17:55 +02:00
Gavin Wood
a0094e72e5
Add force_unstake to staking as root operation. ( #3918 )
...
* Add force_unstake to staking as root operation.
* Bump runtime
* Tests
* Update srml/staking/src/lib.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2019-10-25 15:14:49 +02:00
Gavin Wood
b88b6b5418
Remove MintedForSpending (now unused) ( #3917 )
2019-10-25 14:22:25 +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
Tomasz Drwięga
cecf3a1438
Bring back SubmitSignedTransaction trait. ( #3908 )
...
* Bring back SubmitSignedTransaction.
* Fix long lines.
* Add missing docs.
* Update core/primitives/src/crypto.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update node/runtime/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update core/primitives/src/crypto.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-10-25 12:24:58 +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