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
Bastian Köcher
43e34bb909
Make wasm-builder remove invalid members ( #4510 )
...
* Make wasm-builder remove invalid members
Wasm-builder now removes members that point to packages that do not
exist anymore or that were renamed. Up to now, the build would fail and
required manual fixing.
* Fixes build
2019-12-29 21:54:10 +01:00
Bastian Köcher
56355879be
Fix cli for structopt 0.3.7 and pin to that version ( #4509 )
...
* Fix cli for structopt 0.3.7 and pin to that version
This is just some hotfix to make everything compile. In the future it
will require another pr to not depend on internals of StructOpt, but
that will probably also require some additions to StructOpt itself. To
not break the code again with another StructOpt, this also pins the
StructOpt version.
* Fix benches
* Fix for fix
2019-12-28 22:52:18 +01:00
Denis Pisarev
9876d3dd09
less dupes, cleanup ( #4491 )
...
* build node job is separated from build substrate; less dupes, cleanup
* it's not effective yet to split these jobs
2019-12-28 17:00:39 +01:00
Nikolay Volf
885f94dfad
Improve subkey error reporting. ( #4504 )
2019-12-27 21:07:04 +01:00
Bastian Köcher
47639339f6
Support loading the URI from a file in subkey ( #4503 )
...
* Support loading the URI from a file in subkey
* Fix tests
2019-12-27 09:12:25 +01:00
Nikolay Volf
96744926b2
Check aura slot numbers are strictly increasing ( #4020 )
...
* initial block import handler
* fix node template
* fix error message
* fix error message again
* final fixes
* fix node template again
2019-12-26 14:04:07 +01:00
Weiliang Li
5431f09a4e
fix ligature ( #4497 )
2019-12-25 09:01:17 +01:00
Weiliang Li
fe587c72ec
Use sc_network::NetworkStateInfo instead of implementing redundant traits ( #4436 )
...
* Implement local_peer_id for gossip
* refactor local_peer_id
* fix
* reset gossip
* Update tests.rs
* fix ci
* fix review
* fix Cargo.lock
* fix Cargo.lock
2019-12-24 16:17:19 +01:00
Xiliang Chen
901dff5d14
use generated ModuleToIndex type ( #4495 )
2019-12-24 16:16:19 +01:00
Sergei Pepyakin
1f07123c6c
Remove unnecessary unsafe. ( #4494 )
2019-12-24 14:16:14 +01:00