thiolliere
882b73492d
[Companion PR] make council members able to note preimage using operation extirnsic ( #1120 )
...
* make council members able to note preimage using operation extirnsic
* Bump
Co-authored-by: Gav Wood <gavin@parity.io >
2020-05-21 14:26:18 +02:00
Shawn Tabrizi
ac049a97be
Offences Weight for OnInitialize ( #5961 )
...
* Weight accounting for on_offence.
* Try to compute weight.
* Guesstimate upper bounds on db read/writes for slashing
* greater than or equal to
* add new trait
* Update mock.rs
* Add basic weight test
* one more test
* Update frame/staking/src/lib.rs
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
* Update frame/staking/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add test for offences queue
Co-authored-by: Tomasz Drwięga <tomasz@parity.io >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2020-05-21 14:00:24 +02:00
André Silva
0ddd5cc278
babe: treat epoch_authorship RPC method as unsafe ( #6069 )
...
* service: pass DenyUnsafe to rpc extensions
* node: add DenyUnsafe to rpc full node dependencies
* client: fix whitespace in rpc policy file
* babe: treat epochAuthorship rpc method as unsafe
* babe: add test for unsafe rpc method
* babe: rename babe rpc handler
* service: traitify rpc extension builder
* service: make the rpc extensions builder api non-breaking
* service: revert changes from light node rpc extensions builder
* node: remove unnecessary type in service creation
* service: cleanup with_rpc_extensions implementation
* service: add missing docs to RpcExtensionBuilder
2020-05-21 13:58:04 +02:00
Demi Obenour
ee6633e038
Add notes about safe uses of twox ( #6082 )
...
* Add notes about safe uses of twox
* Update frame/grandpa/src/lib.rs
Co-authored-by: Nikolay Volf <nikvolf@gmail.com >
* Update frame/elections/src/lib.rs
* Apply suggestions from code review
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Nikolay Volf <nikvolf@gmail.com >
2020-05-21 13:57:29 +02:00
mattrutherford
a90c4232e3
Increase precision of benchmarking results summary ( #6092 )
...
Co-authored-by: Matt Rutherford <mattrutherford@users.noreply.github.com >
2020-05-21 13:55:00 +02:00
Arkadiy Paronyan
5bf9e63181
Optimize network poll ( #6099 )
2020-05-21 13:54:50 +02:00
thiolliere
b50c3338d6
Allow operational recovery path if on_initialize use fullblock. ( #6089 )
...
* note_preimage using operational
* Update frame/democracy/src/lib.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-05-21 13:51:47 +02:00
Arkadiy Paronyan
6c47b130e8
Handle piping error for commands that output to stdout ( #6098 )
...
* Handle piping error for commands that output to stdout
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-05-21 13:50:37 +02:00
Federico Gimenez
39191d83c5
use new network identity format for Kusama bootnodes ( #1124 )
2020-05-21 13:49:00 +02:00
Alexander Theißen
b6829b6d21
Companion for #6076 (Allow fee calculation to happen off-chain) ( #1111 )
...
* Switch from Convert to WeightToFeePolynomial
* Bump
Co-authored-by: Gav Wood <gavin@parity.io >
2020-05-21 13:47:55 +02:00
Alexander Theißen
9dd21b1eed
Allow fee calculation to happen off-chain ( #6076 )
...
* Emit a PaymentParameters event once per block
This contains per-block paramaters need to calculate
fees off-chain.
* Add WeightToFee trait
* Add documentation to polynomial types
* Ignore pseudo code snippet for doc tests
* Use `Mul` implementation of Perbill
* Add tests for WeightToFeePolynomial
* Revert "Emit a PaymentParameters event once per block"
This reverts commit 6c4763baff3d8179676a3c1660fe7063fd56a8ca.
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-05-21 12:16:04 +02:00
Arkadiy Paronyan
162baa62fb
Bump substrate ( #1125 )
2020-05-21 10:26:21 +02:00
Wei Tang
e04f237152
Make planning epoch config change in BABE easier ( #5776 )
...
* Make planning epoch config change in BABE easier
* Bump node runtime version
* Update frame/babe/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* BabeEpochConfiguration -> NextConfigDescriptor
* Add tests for babe config changes
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: André Silva <andre.beat@gmail.com >
2020-05-20 21:08:20 +01:00
Wei Tang
3f3753b8e4
evm: allow setting pre-defined accounts in genesis ( #6086 )
...
* evm: allow setting pre-defined accounts in genesis
* Only build GenesisAccount in std
2020-05-20 19:33:16 +00:00
Pierre Krieger
c8339f9694
Turn a SmallVec into VecDeque for performances ( #6091 )
...
* Turn a SmallVec into VecDeque for performances
* Fix the other SmallVecs
2020-05-20 21:12:49 +02:00
Tomasz Drwięga
e08e5ff462
Companion for #6067 ( #1110 )
...
* Companion to #6067
* Fix tests?
* Use AvailableBlockLimit instead of hardcoding the value.
* Bump substrate.
2020-05-20 16:03:28 +02:00
Pierre Krieger
717fa95bc7
Restore the empty line after the license ( #6088 )
2020-05-20 13:08:27 +00:00
Tomasz Drwięga
f74a7171be
Maximum extrinsic weight limit ( #6067 )
...
* Only check single extrinsics weight limit in validate_transaction.
* Add missing parameter to all pallets.
* Add tests, fix default configuration.
* Bump spec version.
* Use AvailableBlockRation to calculate MaxExtrinsicWeight
2020-05-20 15:05:16 +02:00
Dmitry Kashitsyn
9e01d4feaa
Refactor resource and error handling in wasm ( #6074 )
...
* Refactor resource and error handling in wasm
* Fixes based on review
2020-05-20 12:28:13 +02:00
s3krit
a184320503
[CI] Move check-labels to .post stage ( #1114 )
2020-05-20 12:26:10 +02:00
Arkadiy Paronyan
cd89c93e39
Bump wasmtime version ( #6081 )
2020-05-20 11:43:33 +02:00
Alexander Theißen
7a5bdb896b
Refactor OverlayedChanges ( #5989 )
...
* Hide internal structure of OverlayChanges
* Fix tests for OverlayChanges refactor
* Do not clone pending changes
Discarding prospective changes should be equivalent as a state machine
is not to be called with peding changes.
This will be replaced by a storage transaction that is rolled back before
executing the call the second time removing this constraint.
* Doc fixes
* Remove overlong line
* Revert "Do not clone pending changes"
This reverts commit 4799491f4ac16f8517287a0fcf4a3f84ad56f46e.
* Deduplicate chield tries returned from child_infos()
* Remove redundant type annotation
* Avoid changing the storage root in tests
* Preserve extrinsic indices in trie build test
* Swap order of comitted and prospective in fn child_infos
This is only for consistency and does not impact the result.
* Rename set_pending to replace_pending for clearity
2020-05-20 11:39:45 +02:00
Nikolay Volf
dc281e313d
Update substrate, add block construction metrics ( #1112 )
...
* add metrics
* reset & update
* update
2020-05-19 19:01:16 +02:00
Cecile Tonglet
1727dc6291
Use JustifiedBlockAnnounceValidator for parachain block announce validator ( #96 )
2020-05-19 17:56:31 +02:00
Arkadiy Paronyan
f275c6ab0b
Detect obsolete block responses ( #6077 )
2020-05-19 17:06:52 +02:00
Cecile Tonglet
dfc95f0d0e
Consistency fix for repositories in Cargo.toml ( #102 )
...
* Initial commit
Forked at: ab51fe9abe
Parent branch: origin/master
* Consistency fix for repositories in Cargo.toml
* Inverse
2020-05-19 11:58:04 +02:00
Kian Paimani
3acb19f54f
Clean a number of sp_io imports ( #6072 )
2020-05-19 11:36:59 +02:00
André Silva
9a4e23d594
service: fix RPC unsafe exposed address detection ( #6070 )
2020-05-19 02:16:48 +01:00
Pierre Krieger
58566274a0
Update to latest Substrate ( #1107 )
2020-05-18 23:55:04 +02:00
Joshy Orndorff
1d8ddd7a98
Make GrandpaBlockImport public ( #6068 )
2020-05-18 20:13:30 +00:00
Pierre Krieger
8b9bd9018e
Upgrade to libp2p v0.19 - Changes the default PeerId representation ( #6064 )
...
* Upgrade to libp2p v0.19
* Listen on IPv6 by default
* Increase channels sizes
* Use spec-compliant noise protocol
* Show legacy PeerId
* Switch order of Noise protocols
* Switch to crates.io version
* Fix subkey's version
* Fix line width and Wasm build
* I think Wasm is fixed for real this time
2020-05-18 19:57:08 +02:00
Alexander Theißen
80accdbf7c
Include post dispatch corrected weight in extrinsic events ( #6024 )
...
* Include post dispatch corrected weight in extrinsic events
* Drop the 'Post' from ApplyExtrinsicResultWithPostInfo to make it less verbose
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Use proper Event type in pallet_system tests
* Add test that the actual weight is returned by events
* Make fn extract_actual_weight cap at pre dispatch weight
* Bump spec version
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Gavin Wood <gavin@parity.io >
2020-05-18 18:44:29 +02:00
Nikolay Volf
81b30fe6f6
Fix benchmarks and add check so that they won't break again ( #6061 )
...
* fix benchmarks and add check
* address review
* fix line width
2020-05-18 18:43:31 +02:00
thiolliere
4644be3c90
Make decl_storage generated code respect clippy ( #6065 )
...
* fix clippy for code generated by decl_storage
* use as_ref
2020-05-18 18:43:18 +02:00
Wei Tang
cd0ffec1fe
Refactor EVM operations to module functions ( #6056 )
...
* Refactor EVM operations to module functions
* Bump impl version
2020-05-18 18:42:56 +02:00
Pierre Krieger
7536de97b1
Print an error if we discover our own network identity ( #6047 )
...
* Add an error if we discover our own network identity
* Fix tests
2020-05-18 18:42:44 +02:00
Arkadiy Paronyan
d1bf24caef
Fix parallel code execution in wasmtime ( #6055 )
...
* Bump wasmtime version
* Proper test
2020-05-18 18:42:25 +02:00
clearloop
48ec437fb7
chore: updates the license badge ( #6058 )
2020-05-18 18:41:28 +02:00
Cecile Tonglet
ab51fe9abe
Integration test ( #91 )
2020-05-18 17:17:34 +02:00
Nikolay Volf
dd573374e0
Add block construction prometheus metrics ( #6030 )
...
* Add basic authorship metrics
* fixes
* no arc
* move to crate
* Update client/proposer-metrics/Cargo.toml
Co-authored-by: Max Inden <mail@max-inden.de >
* remove prefix
* use HistogramTimer
* Update client/proposer-metrics/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/basic-authorship/src/basic_authorship.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/proposer-metrics/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/proposer-metrics/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Max Inden <mail@max-inden.de >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-05-18 13:48:44 +00:00
André Silva
09a16a30a6
grandpa: minor cleanup for gossip round start instant ( #5976 )
...
* grandpa: move gossip round start instant to LocalView
* grandpa: round duration is 2 gossip periods
2020-05-18 12:53:33 +01:00
Nikolay Volf
d5411969ac
fix whitespace ( #6062 )
2020-05-18 13:51:28 +02:00
Denis Pisarev
17900b0483
Fail test on warnings ( #6043 )
...
* fix (ci): hotfix Docker release
* change (ci): fail test on warnings
* change (config): stderr msgs
* Fix the warnings properly
Co-authored-by: Bastian Köcher <git@kchr.de >
2020-05-18 13:28:20 +02:00
André Silva
f6e8b10de4
fix Cargo.lock dependency version ( #1105 )
2020-05-17 11:10:01 +02:00
Wei Tang
3048edd6ef
Remove file accounts.scale ( #6053 )
2020-05-16 21:59:11 +02:00
Benjamin Kampmann
7c565085e9
resetting to -dev ( #6050 )
2020-05-16 19:03:04 +02:00
Rakan Alhneiti
292d456277
Aura fix: make sure the key exists locally ( #6054 )
...
* Fix AURA
* Add test to make sure claim slot works as expected
2020-05-16 19:00:58 +02:00
Jon Häggblad
afb9af4cf0
Enable Babe RPC for getting epoch authorship ( #1065 )
...
Enable babe_epochAuthorship that was added in substrate#4729 for
querying information about slots that can be claimed in the current
epoch.
2020-05-16 12:46:21 +01:00
Arkadiy Paronyan
a6f35ee989
Companion PR to #6039 ( #1100 )
...
* remove on_block_imported
* remove on_block_imported
Co-authored-by: Gav Wood <gavin@parity.io >
2020-05-16 13:26:33 +02:00
Arkadiy Paronyan
cdb7808a0e
Remove on_block_imported ( #6039 )
...
* remove on_block_imported
* Update client/network/src/service.rs
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2020-05-16 12:59:34 +02:00