Guillaume Thiolliere
f49aae65a8
fix deprecated usage of panic ( #8134 )
2021-02-16 19:02:53 +01:00
André Silva
24739d1ab0
grandpa: make the VotingRule API async ( #8101 )
...
* grandpa: make the VotingRule api async
* grandpa: add docs to VotingRuleResult
* grandpa: formatting
* grandpa: use async blocks
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* grandpa: expose VotingRuleResult
* grandpa: revert some broken changes to async syntax
* grandpa: use finality-grandpa v0.14.0
* grandpa: bump impl_version
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-02-15 18:28:04 +00:00
Bastian Köcher
33f9becf41
Simplify runtime api error handling ( #8114 )
...
* Ahh
* Work work work
* Fix all the compilation errors
* Fix test
* More fixes...
2021-02-15 11:55:40 +00:00
Benjamin Kampmann
6a964c5df0
Releasing 3.0 ( #8098 )
...
* bumping version for next release
* add changelog
* add guide
2021-02-10 19:23:18 +01:00
nahuseyoum
1baffde51f
Add Aventus ss58 address ( #8050 )
...
* Update crypto.rs
* Update ss58-registry.json
* quote fields
* Update ss58-registry.json
* Update crypto.rs
* Update ss58-registry.json
* Update ss58-registry.json
* Update ss58-registry.json
* Update crypto.rs
* Update ss58-registry.json
2021-02-09 20:30:16 +00:00
Sergei Shulepov
eb7226bb4a
WasmExecutor takes a cache directory ( #8057 )
...
That is useful for executors like wasmtime which produces compiled code
and can actually benefit from caching under some circumstances
2021-02-09 16:48:29 +00:00
frank
1ee71e54e5
Add Ares SS58 address type ( #8061 )
2021-02-09 14:57:41 +01:00
Kun
929c1c732a
Add Crust Network SS58 Address ( #8064 )
...
* Add Crust Address Format
* Add Crust Address Format
* Delete extra ss58 json info
2021-02-09 14:53:01 +01:00
Bastian Köcher
f174e14793
Switch to latest impl-trait-for-tuples ( #8082 )
...
Switches to the latest version everywhere now, as I fixed the problems
in the crate ;)
2021-02-09 13:31:44 +01:00
Gavin Wood
4b1460f61f
Extend SS58 network identifiers ( #8039 )
...
* Initial draft
* Fixes
* Fixes
* Fixes
* Fixes
* Fixes
* Improve readability, add format filter.
* Link
* Fixes
* Update primitives/core/src/crypto.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Suggestions from review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-02-06 15:00:10 +00:00
André Silva
54def5f3d3
transaction-pool: drop unpropagable txs if local node cant author blocks ( #8048 )
...
* transaction-pool: drop unpropagable txs if local node cant author blocks
* fix test compilation
* transaction-pool: remove unnecessary static bound on CanAuthor
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* rpc-api: add translation for PoolError::Unactionable
* transaction-pool: add test for rejecting unactionable transactions
* basic-authorship: fix doc test
* transaction-pool: fix benchmark compilation
* transaction-pool: rename CanAuthor to IsValidator
* transaction-pool: nit in error message
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2021-02-04 20:18:44 +01:00
Benjamin Kampmann
8e36d87ca8
Update dependencies ahead of next release ( #8015 )
...
Updates dependencies:
parity-db 0.2.2
paste
prometheus 0.11
cfg-if 1.0
strum 0.20
env_logger 0.8
pin-project
prost
nix
platforms
quickcheck 1.0
2021-02-04 19:17:42 +01:00
Bastian Köcher
5569313bd6
AURA: Switch to CurrentSlot instead of LastTimestamp ( #8023 )
...
* Convert AURA to new pallet macro
* AURA: Switch to `CurrentSlot` instead of `LastTimestamp`
This switches AURA to use `CurrentSlot` instead of `LastTimestamp`.
* Add missing file
* Update frame/aura/src/migrations.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Remove the runtime side provide inherent code
* Use correct weight
* Add TODO
* Remove the Inherent from AURA
* 🤦
* Remove unused stuff
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-02-03 13:47:13 +01:00
Arkadiy Paronyan
e905c9a92d
Storage chains: serve transactions over IPFS/bitswap ( #7963 )
...
* IPFS server for transactions
* Style
* Indent
* Log message
* CLI option
* Apply suggestions from code review
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
* Style
* Style
* Minor fixes
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
2021-02-03 07:14:23 +00:00
Joshy Orndorff
73386a4215
better formatting for doc comments ( #8030 )
2021-02-02 16:57:31 +00:00
Bastian Köcher
7d65b5aa59
Convert AURA to new pallet macro ( #8020 )
2021-02-02 14:19:40 +00:00
yjh
4da880ed41
chore: fix typos ( #8013 )
2021-02-01 11:54:13 +01:00
Bastian Köcher
d40f9c166f
Sync: Fix issue of not freeing a block announcement slot ( #8006 )
...
* Sync: Fix issue of not freeing a block announcement slot
There was a bug that when the block announcement validation returned an
error, the slot reserved for this validation wasn't freed. This could
lead to a situation where we rejected any block announcement from such a
peer for that the block announcement returned an error multiple times.
* Better logging
* Fuck I'm dumb
* 🤦
2021-01-29 16:29:25 +00:00
Guillaume Thiolliere
f48296e9ad
Update parity-scale-codec to 2.0 ( #7994 )
...
* update cargo.toml
* use 2.0 in mmmr
2021-01-29 12:22:45 +00:00
Joshy Orndorff
04704ceee4
Clarify and expand ProvideInherent docs ( #7941 )
...
* Clarify and expand docs.
* clarify that a pallet can verify an inherent without providing one.
* Clarify what calls `is_inherent_required`.
* caution and link to issue
* typo
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-01-28 19:44:56 +00:00
Bastian Köcher
b6294418f8
Introduce a Slot type ( #7997 )
...
* Introduce a `Slot` type
Instead of having some type definition that only was used in half of the
code or directly using `u64`, this adds a new unit type wrapper `Slot`.
This makes it especially easy for the outside api to know what type is
expected/returned.
* Change epoch duratioC
* rename all instances of slot number to slot
* Make the constructor private
Co-authored-by: André Silva <andrerfosilva@gmail.com >
2021-01-28 19:44:22 +00:00
Bastian Köcher
e21a61eac8
Rewrite the async code in BasicQueue ( #7988 )
...
* Rewrite the async code in `BasicQueue`
This is some smaller change to rewrite the async code in `BasicQueue`. I
require this for some other pr I'm working on ;)
* Update primitives/consensus/common/src/import_queue/basic_queue.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update primitives/consensus/common/src/import_queue/basic_queue.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update primitives/consensus/common/src/import_queue/basic_queue.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Hmm :D
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-01-26 16:38:57 +01:00
cheme
878f7ccf6e
Allow transaction for offchain indexing ( #7290 )
...
* Moving offchain change set to state machine overlay change set,
preparing use of change set internally.
* Make change set generic over key and value, and use it for offchain
indexing.
* test ui change
* remaining delta
* generating with standard method
* Remove 'drain_committed' function, and documentation.
* Default constructor for enabling offchain indexing.
* Remove offchain change specific iterators.
* remove pub accessor
* keep previous hierarchy, just expose iterator instead.
* Update primitives/state-machine/src/overlayed_changes/mod.rs
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
* fix line break
* missing renamings
* fix import
* fix new state-machine tests.
* Don't expose InnerValue type.
* Add test similar to set_storage.
* Remove conditional offchain storage (hard to instantiate correctly).
* fix
* offchain as children cannot fail if top doesn't
Co-authored-by: Addie Wagenknecht <addie@nortd.com >
Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com >
2021-01-22 12:27:43 +00:00
Bastian Köcher
cd0ad4805d
Make offchain indexing work ( #7940 )
...
* Make offchain indexing work
This fixes some bugs with offchain indexing to make it actually working ;)
* Fix tests
* Fix browser build
* Update client/db/src/offchain.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Remove seperation between prefix and key
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
2021-01-21 13:12:42 +01:00
Kian Paimani
0dd8cd6277
Attempt to remove the where bounds in arithmetic. ( #7933 )
...
* Attempt to remove the where bounds.
* Fix further and further.
* Format better.
* Update primitives/npos-elections/src/lib.rs
* fix build
* remove unused
2021-01-21 09:39:30 +00:00
Black3HDF
0b69577a3e
Add ss58 version prefix for Litentry ( #7918 )
2021-01-18 15:08:19 +01:00
Kian Paimani
ced107b355
Decouple Stkaing and Election - Part1: Support traits ( #7908 )
...
* Base features and traits.
* Fix the build
* Remove unused boxing
* Self review cleanup
* Fix build
2021-01-18 10:24:12 +00:00
Gavin Wood
f1d36a7103
Introduces account existence providers reference counting ( #7363 )
...
* Initial draft
* Latest changes
* Final bits.
* Fixes
* Fixes
* Test fixes
* Fix tests
* Fix babe tests
* Fix
* Fix
* Fix
* Fix
* Fix
* fix warnings in assets
* Fix UI tests
* fix line width
* Fix
* Update frame/system/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/system/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Fix
* fix unused warnings
* Fix
* Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix
* fix slash and comprehensive slash test
* fix reserved slash and comprehensive tests
* check slash on non-existent account
* Revert "Fix UI tests"
This reverts commit e0002c0f13442f7d0c95a054a6c515536328a4a0.
* Fix
* Fix utility tests
* keep dispatch error backwards compatible
* Fix
* Fix
* fix ui test
* Companion checker shouldn't be so anal.
* Fix
* Fix
* Fix
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update frame/balances/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* return correct slash info when failing gracefully
* fix missing import
* Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix
* Update frame/balances/src/tests_local.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fixes
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-01-16 18:47:28 +01:00
Aten
660cf13e6d
Add ss58 version prefix for Patract/Jupiter (from PatractHubs) ( #7785 )
2021-01-15 17:59:29 +01:00
ropottnik
81efcc4e52
improve benchmarking error output ( #7863 )
...
* add concat Vec<u8> function and use it for better error logging in add_benchmark! macro
* refactor benchmark error reporting to use format! and RuntimeString
2021-01-15 12:38:21 +00:00
Max Inden
3927b649cb
*: Update to libp2p v0.34.0 ( #7888 )
...
* *: Update to libp2p v0.34.0
* client/network: Update bytes, unsigned-varint and asynchronous-codec
* client: Update to prost v0.7
2021-01-15 09:55:42 +00:00
Denis Pisarev
3ee8b66e7d
tests: fix UI test so we can update CI image ( #7901 )
...
* tests: fix UI test so we can update CI image
* CI: remove diener installation from the script as it's installed in CI image
* tests: another fix
* tests: fix another fix
* tests: NLoEOF
* tests: another broken stderr
2021-01-14 22:00:41 +01:00
Liu-Cheng Xu
65569620c2
Add payment_queryFeeDetails RPC ( #7692 )
...
* Return FeeDetails in compute_fee_raw()
* Add payment_queryDetails rpc
* Simplify serde attribute a bit
* Fix line width check
* Use saturating_add()
* Move transaction payment rpc types to types.rs
* Add file header
* Fix test
* Update Cargo.lock
* Nit
* Apply the review suggestions
* .
* .
* Fix serde
* Fix rust doc
* .
* Update frame/transaction-payment/src/types.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Use NumberOrHex in fee details RPC
* Address review feedback
* Nits
* Update some docs
* Address review
* Update frame/transaction-payment/src/types.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Happy 2021
* Nit
* Address code review
* Remove needless bound
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-01-14 11:43:53 +00:00
cheme
1922dab050
Fix clear prefix check to avoid erasing child trie roots. ( #7848 )
...
* Fix clear prefix check to avoid erasing child trie roots.
* Renaming and extend existing test with check.
* last nitpicks.
2021-01-13 12:45:31 +00:00
Satish Mohan
da9c73125f
Add ss58 version prefix for CORD (from Dhiway) ( #7862 )
...
* Add ss58 version prefix for CORD
* Add ss58 version prefix for CORD
2021-01-12 14:24:03 +01:00
Guillaume Thiolliere
014e6f03c6
bumpd minor version ( #7873 )
2021-01-12 09:25:47 +01:00
dependabot[bot]
6b4cc36c60
Bump sha2 from 0.8.2 to 0.9.2 ( #7643 )
...
* Bump sha2 from 0.8.2 to 0.9.2
Bumps [sha2](https://github.com/RustCrypto/hashes ) from 0.8.2 to 0.9.2.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha2-v0.8.2...streebog-v0.9.2 )
Signed-off-by: dependabot[bot] <support@github.com >
* Fix compilation error
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bastian Köcher <git@kchr.de >
2021-01-11 11:58:26 +00:00
Igor Matuszewski
028f3d2674
Merge 2.0.1 backport branch into mainline master ( #7842 )
...
* Backport paritytech/substrate#7381
* Bring back genesis storage build in aura/timestamp
To not change spec version, see
https://github.com/paritytech/substrate/pull/7686#discussion_r540032743
* Backport paritytech/substrate#7238
* Backport paritytech/substrate#7395
* Bump impl_version
* Fix UI tests and bump trybuild dep
See https://github.com/rust-lang/rust/pull/73996
Backports:
https://github.com/paritytech/substrate/pull/7764
https://github.com/paritytech/substrate/pull/7656
* Partially backport paritytech/substrate#7838
* Release frame-support with a dep compilation fix
* Bump patch level for remaining crates
This is done because at the time of writing cargo-unleash does not fully
support partial workspace publishing and mixes both local and crates.io
versions of the packages, leading to errors in the release check workflow.
* Backport paritytech/substrate#7854
...to fix compilation error when using futures-* v0.3.9.
* Adding Changelog entry for patch release
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Benjamin Kampmann <ben@parity.io >
2021-01-11 11:24:29 +01:00
Pierre Krieger
a4032b1dfb
Update to futures 0.3.9 ( #7854 )
2021-01-08 15:47:33 +00:00
tuminfei
467599df13
UniArts reserve SS58 address id 38 ( #7651 )
...
* UniArts reserve SS58 address id 45
* Update ss58-registry.json
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Xiang Li <bigxiang@gmail.com >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2021-01-08 13:43:43 +00:00
Bastian Köcher
8cdb5c01b6
Fix incorrect use of syn::exports ( #7838 )
...
* Fix incorrect use of syn::exports
Instead of using `syn::exports` we should import the trait from the
quote crate directly.
* Use own macro for test cases to fix compilation with latest syn
* Fix test
2021-01-06 22:22:23 +01:00
Andronik Ordian
2b48e09b24
upgrade a few dependencies ( #7831 )
...
* upgrade a few dependencies
* make it compile at the expense of duplicate deps
* fix web-wasm and a warning
* introduce activate-wasm-bindgen-features crate
* Revert "introduce activate-wasm-bindgen-features crate"
This reverts commit 5a6e41e683f8a4844c0a735dcd08caabb2313f11.
* add getrandom feature to sc-consensus-aura
2021-01-06 16:12:17 +00:00
André Silva
dd4625a1e7
babe: expose next epoch data ( #7829 )
...
* babe: expose next epoch data
* babe: add runtime api for next_epoch
* babe: avoid reading next authorities from storage unnecessarily
* babe: add notes about epoch duration constraints
* babe: guard against overflow
* babe: add test for fetching current and next epoch data
2021-01-06 11:08:29 +00:00
kaichao
d2eb87f5fc
minor fix ( #7828 )
2021-01-05 12:55:21 +01:00
honeywest
6d6794ea71
Feat sp keystore ( #7826 )
...
* delete not used VRFTranscriptValue
* specification variable naming
2021-01-05 11:32:35 +00:00
Max Inden
f0b99dd2f2
*: Update to libp2p v0.33.0 ( #7759 )
...
* *: Update to libp2p v0.33.0
* client/network: Consistently track request arrival time
With https://github.com/libp2p/rust-libp2p/pull/1886/ one is guaranteed
to receive either a `ResponseSent` or a `InboundFailure` event for each
received inbound request via `RequestResponseEvent::Message`. Given this
guarantee there is no need to track arrival times in a best-effort
manner and thus there is no need to use a LRU cache for arrival times.
* client/offchain: Adjust to PeerId API changes
2021-01-04 11:54:51 +00:00
Bastian Köcher
e3e651f72c
Happy new year ( #7814 )
...
* Happy new year
Updates the copyright years and fixes wrong license headers.
* Fix the template
* Split HEADER into HEADER-APACHE & HEADER-GPL
2021-01-04 09:03:13 +00:00
Bastian Köcher
672a2912b8
Fix ss58check test when executed with other tests ( #7815 )
...
There was a bug that could make other ss58 tests fail when being
executed with this one in parallel. This test changes the default ss58
version and if other tests are run at the time the default version is
changed, they would fail. To fix this problem, we now run the actual
test as a new process.
2021-01-03 21:17:31 +00:00
Alexander Theißen
ec2c70396e
Define ss58 prefix inside the runtime ( #7810 )
...
* Add SS58Prefix type to the frame_system config trait
* Remove unused chain_id runtime interface
2020-12-30 22:07:37 +00:00
Bastian Köcher
bd48ff310d
Add proper commit_all to TestExternalities ( #7808 )
...
* Add proper `commit_all` to `TestExternalities`
This pr adds a propoer `commit_all` function to `TestExternalities` to
commit all changes from the overlay to the internal backend. Besides
that it fixes some bugs with handling empty dbs when calculating a delta
storage root. It also changes the way data is added to the in memory
backend.
* Update primitives/state-machine/src/testing.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Don't allow self proxies (#7803 )
* Allow council to slash treasury tip (#7753 )
* wk2051 | D4 |Allow council to slash treasury tip | p1
* Update frame/tips/src/lib.rs
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
* wk2051 | D5 |Allow council to slash treasury tip | p2
* wk2051 | D5 |Allow council to slash treasury tip | p3
* wk2051 | D5 |Allow council to slash treasury tip | p4
* wk2051 | D5 |Allow council to slash treasury tip | p5
* random change
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_tips --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/tips/src/weights.rs --template=./.maintain/frame-weight-template.hbs
* fix typo
* Update frame/tips/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/tips/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/tips/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/tips/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/tips/src/tests.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* wk2052 | D1 | Allow council to slash treasury tip | p6
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Review feedback
* Review feedback
* Update docs
* More docs
* Make it private
* Use `None`
* Use apply transaction
* Update primitives/state-machine/src/testing.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: RK <r.raajey@gmail.com >
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com >
Co-authored-by: Parity Benchmarking Bot <admin@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2020-12-30 13:33:05 +00:00