Pierre Krieger
bc3d283e78
Clean-ups in the network-gossip crate ( #4542 )
...
* Remove usage of sc_network::Context trait
* Remove Context::send_consensus
* Pass &mut dyn Network instead of &dyn Network
* Move Validator traits and related to separate module
2020-01-09 19:24:51 +01:00
Arkadiy Paronyan
b61b3095ee
Enabled wasmtime ( #4569 )
2020-01-09 19:23:51 +01:00
Pierre Krieger
ca997cf1e4
Update networking code to libp2p 0.14 ( #4383 )
...
* Entirely update substrate-telemetry to futures 0.3
* Add a Closed error
* Update to libp2p 0.14
* More work
* More work
* More work
* More work
* Fix warnings
* Remove unwrap()
* Work on tests fixing
* Fix network tests
* Fix external network tests
* Update libp2p and restore Yamux in discovery test
* Ignore DNS if initializatio nfails
* Restore variables ordering
* Forgot browser-utils
* Fix downfall after merge
* Fix tests
2020-01-09 19:01:23 +01:00
Arkadiy Paronyan
6e572a9477
Prioritize new blocks over old forks when syncing ( #4414 )
...
* Prioritize new blocks over old forks when syncing
* Fixed some test cases
2020-01-09 19:00:57 +01:00
Gavin Wood
6d8b99cf5e
Add an extra test to check rebond is a LIFO ( #4578 )
2020-01-09 18:19:11 +01:00
Shawn Tabrizi
0943a05833
Update getting started link ( #4581 )
...
* Update getting started link
* Update README.md
2020-01-09 15:27:24 +01:00
Gavin Wood
67202b7ec3
Add tipping into treasury ( #4480 )
...
* First draft
* Initial work on tests
* Add tests.
* Ensure old members can't tip.
* Fix complexity
* Update node runtime
* Build fix.
* build fix
* Fix tests
* Fix tests
* Refactor Contains impl for tests
* Introduce new way to avoid impl Contains conflicts
* Fixes
* Docs.
* Docs.
* Typo
* Whitespace
* Docs
* Typo
* Formatting
* Update frame/treasury/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/treasury/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/treasury/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Apply suggestions from code review
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Add provisional weights.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-01-09 14:39:12 +01:00
Marcio Diaz
586685fca0
Add missing weights to Identity module. ( #4577 )
2020-01-09 14:15:47 +01:00
Marcio Diaz
6100fb14e6
Introduce rebond ( #4374 )
...
* Implement rebond: allowing to re-bond stake unbonded.
2020-01-09 11:33:27 +01:00
Shawn Tabrizi
69245901dc
Update per_thing docs ( #4575 )
...
* Update `per_thing` docs
* Update primitives/arithmetic/src/per_things.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update per_things.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-01-09 11:29:09 +01:00
Cecile Tonglet
cc573bc106
Wasm executor should provide stubs for unknown externs (wasmi) ( #4550 )
...
Related to #4456
2020-01-09 11:18:14 +01:00
Bastian Köcher
189bd2349c
Keystore fix default path ( #4570 )
2020-01-08 15:19:14 +01:00
Arkadiy Paronyan
897445f32a
Bumped runtime version ( #4568 )
2020-01-08 12:12:11 +01:00
Weiliang Li
7a9b570ee5
txpool: unify client generic name ( #4565 )
2020-01-08 11:46:56 +01:00
Shawn Tabrizi
7f8f97ef91
Use single map and remove_all for EventTopics ( #4566 )
2020-01-08 09:50:35 +01:00
André Silva
660c882cd3
grandpa: guarantee that vote limit is never lower than vote base ( #4563 )
2020-01-07 23:34:54 +01:00
Nikolay Volf
df4058b556
i/o stats for backend databases ( #4525 )
2020-01-07 21:53:03 +03:00
Stanislav Tkach
9500eb7590
Fix Request::new documentation ( #4560 )
2020-01-07 18:09:27 +01:00
Ashley
ce0b82a9da
Remove timing based bits of grafana test ( #4558 )
2020-01-07 16:43:35 +01:00
Ashley
bb44f8fc24
Add a browser-utils crate ( #4394 )
...
* Squash
* Fix keystore on wasm
* Update utils/browser/Cargo.toml
Co-Authored-By: Benjamin Kampmann <ben@gnunicorn.org >
* export console functions
* Use an Option<PathBuf> in keystore instead of cfg flags
* Add a KeystoreConfig
* Update libp2p
* Bump kvdb-web version
* Fix cli
* Upgrade versions
* Update wasm-bindgen stuff
Co-authored-by: Benjamin Kampmann <ben.kampmann@googlemail.com >
2020-01-07 16:30:04 +01:00
Max Inden
d76a33033d
client/network-gossip: Remove GossipEngine::abort method ( #4552 )
...
`GossipEngine::abort` and thus `ConsensusGossip::abort` are never
called. This patch removes both.
2020-01-07 15:26:40 +01:00
Arkadiy Paronyan
bc9676737f
Expose load_spec ( #4556 )
2020-01-07 15:08:27 +01:00
Robert Habermeier
6a0e60c3a4
do not chill indirectly-slashed nominators ( #4553 )
...
* do not chill indirectly-slashed nominators
* test nomination non-kick and vote ignoring behavior
2020-01-07 13:17:17 +01:00
Bastian Köcher
82661cd2ce
decl_event support trailing comma in args (#4554 )
2020-01-07 12:48:05 +01:00
Gavin Wood
3cc6249cdf
Fix error message ( #4549 )
2020-01-07 01:57:32 +01:00
Joshy Orndorff
6b57c7181f
typo: lead -> leave ( #4546 )
2020-01-06 20:55:39 +01:00
André Silva
a89d87d708
client: add a block blacklist extension ( #4544 )
...
* client: add a block blacklist extension
* test-utils: fix client construction
* client: fix rustdoc test
2020-01-06 18:03:44 +00:00
Gav Wood
b65e336a1d
Spaces to tabs.
2020-01-06 16:08:11 +01:00
André Silva
c4e20af74d
client: allow reverting finalized blocks ( #4535 )
...
* client: allow reverting blocks past finality
* client: fix leaves reversion
* client: extend docs on revert
* client: add comment on leaves revert
2020-01-06 14:58:43 +00:00
André Silva
4fa4dfb77b
client: helper to create standalone client without service ( #4536 )
2020-01-06 14:52:14 +00:00
Sergei Pepyakin
b462009f88
Remove jimpo from CODEOWNERS ( #4541 )
...
Good night sweet prince
2020-01-06 14:07:05 +01:00
André Silva
c72619ed71
client: hack around fork blocks deserialization issue ( #4539 )
2020-01-06 13:43:25 +01:00
Shawn Tabrizi
7efa62725e
Update copyright year ( #4532 )
2020-01-05 14:05:44 +01:00
Nikolay Volf
6cef6b410e
fix expect text ( #4530 )
2020-01-04 14:34:53 +01:00
Denis Pisarev
75702e146e
check_polkadot now runs nightly and on master (merges) only ( #4492 )
2020-01-03 20:51:26 +00:00
Max Inden
c5fe4295f8
*: Register network event stream for authority discovery ( #4344 )
...
Previously one would create a sender and receiver channel pair, pass the
sender to the `build_network_future` through the service builder and
funnel network events returned from polling the network service into the
sender to be consumed by the authority discovery module owning the
receiver.
With recent changes it is now possible to register an `event_stream`
with the network service directly, thus one does not need to make the
detour through the `build_network_future`.
2020-01-03 20:47:12 +00:00
Nikolay Volf
f0e21eff09
Update kvdb-* and trie ( #4483 )
2020-01-03 20:46:42 +00:00
Max Inden
5cf682cece
client/authority-discovery: Limit number of connections to authorities ( #4487 )
...
* client/authority-discovery: Limit number of connections to authorities
Instead of connecting to all sentry nodes of all authorities, with this
patch the authority discovery module does the following:
- Choose one sentry node per authority at random.
- Choose MAX_NUM_AUTHORITY_CONN out of the above at random.
The module uses randomness to prevent hot spots, e.g. all nodes trying
to connect to a single node. If the authority discovery module would
choose the nodes to connect to at random on each new address that it
learns of, the node would go through a lot of connection churn. Instead
it creates a random seed at start up and uses this seed for its RNG on
each update cycle.
* client/authority-discovery: Extract address cache into own module
* client/authority-discovery/src/addr_cache: Add basic unit tests
* client/authority-discovery: Replace unwrap with expect on [u8] cmp
* .maintain/sentry-node/docker-compose.yml: Prefix endpoint flags
* client/authority-discovery/src/addr_cache: Use sort_unstable and cmp
* client/authority-discovery: Use BTreeMap in addr_cache for sorted iter
To reduce connection churn it is preferrable to have `get_subset` of the
`addr_cache` to return the same result on repeated calls. `get_subset`
iterates a map. To make the process of iteration deterministic, use a
`BTreeMap` instead of a `HashMap`.
2020-01-03 20:40:19 +00:00
Denis Pisarev
fa1e42a2a1
triggers srml-contracts-waterfall ci ( #4490 )
...
* triggers srml-contracts-waterfall ci
* only nightly and merges
* substrate does not use tager cache so far
2020-01-03 20:40:02 +00:00
Tomasz Drwięga
5986869390
Fix period of offchain transactions. ( #4521 )
...
* Fix period of offchain transactions.
* Calculate period dynamically.
* Convert to u64.
2020-01-03 20:39:46 +00:00
Bastian Köcher
f02e6d680a
Make sure docs given to decl_module! are passed to the module struct ( #4526 )
2020-01-03 20:39:30 +00:00
ddorgan
a45aa6e1b6
Update flamingfir spec for new testnet ( #4518 )
...
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-01-03 12:25:31 +01:00
Pierre Krieger
0b606613b1
ServerToWorkerMsg -> ServiceToWorkerMsg ( #4519 )
2020-01-03 11:47:31 +01:00
Bastian Köcher
4a9697db94
Check for invalid modules when registering a pallet in construct_runtime ( #4520 )
2020-01-02 20:10:20 +01:00
Nikolay Volf
508f94acdf
Update libp2p to fix build ( #4522 )
...
* update libp2p
* update toml files also
2020-01-02 18:37:42 +01:00
Nikolay Volf
65e78b8129
Insert key via node RPC for subkey ( #4514 )
...
* Insert key via node RPC.
* somewhat address the reivew
* Update bin/utils/subkey/src/rpc.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update bin/utils/subkey/src/rpc.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
* Update bin/utils/subkey/src/main.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-01-02 12:46:45 +01:00
Nikolay Volf
6d06a19f41
Refactor to use only chain info ( #4516 )
2020-01-02 12:46:07 +01:00
Bastian Köcher
8ecc450fd9
Make MultiSigner use compressed ECDSA public key ( #4502 )
...
* Don't use compressed ecdsa public key in verify
* Make `ECDSA` public support compressed
* Make it a proper `expect` message
2019-12-31 19:04:53 +00:00
Nikolay Volf
585f0c0811
update libsecp256k1 ( #4513 )
2019-12-30 11:26:34 -08:00
Bastian Köcher
2e5c327483
Increase metadata version to 10 ( #4512 )
...
Changes in https://github.com/paritytech/substrate/pull/4462 required a
metadata version increment that was forgotten.
2019-12-30 14:59:37 +00:00