Bastian Köcher
acb2bc4f00
Do not include :code in the storage proof if not required ( #480 )
...
This is basically a hack that prevents the inclusion of `:code` in the
storage proof. A proper fix requires some changes to the trie crate to
not include nodes that aren't read.
2021-06-07 16:17:19 +02:00
Pierre Krieger
5c14dd3f32
Periodically call Peerset::alloc_slots on all sets ( #9025 )
...
* Periodically call alloc_slots on all slots
* Add test
2021-06-07 13:00:03 +00:00
Kian Paimani
d9c1836987
Don't inlucde nominaotrs that back no one in the snapshot. ( #9017 )
2021-06-07 09:26:31 +00:00
cheme
f01c396677
Compact proof utilities in sp_trie. ( #8574 )
...
* validation extension in sp_io
* need paths
* arc impl
* missing host function in executor
* io to pkdot
* decode function.
* encode primitive.
* trailing tab
* multiple patch
* fix child trie logic
* restore master versionning
* bench compact proof size
* trie-db 22.3 is needed
* line width
* split line
* fixes for bench (additional root may not be needed as original issue was
with empty proof).
* revert compact from block size calculation.
* New error type for compression.
* Adding test (incomplete (failing)).
Also lacking real proof checking (no good primitives in sp-trie crate).
* There is currently no proof recording utility in sp_trie, removing
test.
* small test of child root in proof without a child proof.
* remove empty test.
* remove non compact proof size
* Missing revert.
* proof method to encode decode.
2021-06-07 09:06:38 +00:00
André Silva
f0c5699bc6
arithmetic: fix PerThing pow ( #9030 )
...
* arithmetic: add failing test for pow
* arithmetic: fix PerThing::pow
* Revert back to previous optimisations
Co-authored-by: Gav Wood <gavin@parity.io >
2021-06-06 10:07:29 +02:00
Robert Habermeier
a87df9d854
Fix historical validation code runtime API ( #3187 )
...
* remove some 'allow(unused)'
* fix historical validation code runtime API
2021-06-05 11:47:37 -05:00
André Silva
9c014f7c8b
node: fix babe worker params ( #2956 )
...
* node: fix babe worker params
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-04 22:01:09 +00:00
André Silva
c44b552d8f
consensus: handle justification sync for blocks authored locally ( #8698 )
...
* consensus: add trait to control justification sync process
* network: implement JustificationSyncLink for NetworkService
* slots: handle justification sync in slot worker
* babe: fix slot worker instantiation
* aura: fix slot worker instantiation
* pow: handle justification sync in miner
* babe: fix tests
* aura: fix tests
* node: fix compilation
* node-template: fix compilation
* consensus: rename justification sync link parameter
* aura: fix test compilation
* consensus: slots: move JustificationSyncLink out of on_slot
2021-06-04 21:31:06 +00:00
Robert Habermeier
3bc3856544
impose minimum limitation on explicit votes too ( #3181 )
2021-06-04 18:05:23 +00:00
Andronik Ordian
ab018944a9
approval-distribution: send all messages on unify ( #3179 )
...
* approval-distribution: send all messages on unify
* update the guide
2021-06-04 12:20:53 -05:00
Robert Habermeier
736d0a48fe
better logging for approval voting failures ( #3180 )
2021-06-04 11:50:38 -05:00
Robert Habermeier
b5e49c03ec
put a cap on finality lag ( #3175 )
...
* put a cap on finality lag
* Update node/service/src/grandpa_support.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* apply lag to best, not to current vote
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-06-04 15:49:27 +00:00
Andreas Doerr
a477d4dadf
Bump parity-db ( #9024 )
2021-06-04 14:46:16 +00:00
Xiliang Chen
0a5dbafd53
update substrate & polkadot ( #472 )
...
* update substrate
* try again
2021-06-04 16:43:29 +02:00
e.g. magical unicorn
23d7afceb4
Add raw chainspecs for Westmint and Statemine ( #470 )
...
* add raw chainspecs
* rename chain specs
* add statemine to accepted --chain values
* fix up westmint chainspec
* fix up westmint chainspec
* add token symbol and decimals to statemine chain spec
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-06-04 15:12:06 +02:00
dependabot[bot]
15d6399a37
Bump wasm-bindgen-futures from 0.4.19 to 0.4.23 ( #3177 )
...
Bumps [wasm-bindgen-futures](https://github.com/rustwasm/wasm-bindgen ) from 0.4.19 to 0.4.23.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases )
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rustwasm/wasm-bindgen/commits )
---
updated-dependencies:
- dependency-name: wasm-bindgen-futures
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-04 13:31:05 +02:00
Arkadiy Paronyan
8a8cc7bc60
Fixed build ( #9021 )
2021-06-04 11:27:05 +00:00
Gavin Wood
3d6df31cbe
Named reserve companion ( #3176 )
...
* fix build
* fix tests
* update
* fix
* update
* Bump
Co-authored-by: Bryan Chen <xlchen1291@gmail.com >
2021-06-04 11:17:59 +02:00
Jakub Pánik
1480b13cc5
update ss58 type to u16 ( #8955 )
2021-06-04 09:01:05 +00:00
Xiliang Chen
223529e4dd
Named reserve ( #7778 )
...
* add NamedReservableCurrency
* move currency related trait and types into a new file
* implement NamedReservableCurrency
* remove empty reserves
* Update frame/support/src/traits.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* fix build
* bump year
* add MaxReserves
* repatriate_reserved_named should put reserved fund into named reserved
* add tests
* add some docs
* fix warning
* Update lib.rs
* fix test
* fix test
* fix
* fix
* triggier CI
* Move NamedReservableCurrency.
* Use strongly bounded vec for reserves.
* Fix test.
* remove duplicated file
* trigger CI
* Make `ReserveIdentifier` assosicated type
* add helpers
* make ReserveIdentifier assosicated type
* fix
* update
* trigger CI
* Apply suggestions from code review
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* trigger CI
* Apply suggestions from code review
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Gavin Wood <i@gavwood.com >
Co-authored-by: Shaun Wang <spxwang@gmail.com >
2021-06-04 09:32:46 +02:00
Arkadiy Paronyan
8223d3ae71
Update for the new substrate client API ( #2890 )
...
* Update for the new substrate client API
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-04 07:21:46 +00:00
Andronik Ordian
003738b1c5
more useful error message ( #9014 )
2021-06-04 07:05:21 +00:00
Arkadiy Paronyan
84811dae00
Storage chain: Runtime module ( #8624 )
...
* Transaction storage runtime module
* WIP: Tests
* Tests, benchmarks and docs
* Made check_proof mandatory
* Typo
* Renamed a crate
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Added weight for on_finalize
* Fixed counter mutations
* Reorganized tests
* Fixed build
* Update for the new inherent API
* Reworked for the new inherents API
* Apply suggestions from code review
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Store transactions in a Vec
* Added FeeDestination
* Get rid of constants
* Fixed node runtime build
* Fixed benches
* Update frame/transaction-storage/src/lib.rs
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-04 06:50:59 +00:00
Zeke Mostov
127771ba38
Cleanup unused errors & events in lease coordination pallets ( #3174 )
...
* Cleanup unused errors & events in lease cordination modules
* Spelling
2021-06-04 00:01:30 -04:00
Martin Pugh
5fcf3e0cea
bump spec version ( #3171 )
...
* bump spec version
* bump beefy
2021-06-03 18:30:49 +00:00
Bastian Köcher
782c0264ac
Update Substrate & Polkadot ( #469 )
2021-06-03 19:50:18 +02:00
Martin Pugh
b63184e4ec
Bump version, substrate, beefy in prep for v0.9.4 ( #3169 )
...
* bump version, substrate, beefy
* bump substrate
2021-06-03 17:05:31 +02:00
Andronik Ordian
bd66121324
validator-discovery: some extra logs ( #3157 )
...
* remove duplicate logging
* validator-discovery: add extra logging
2021-06-03 14:17:24 +00:00
Bastian Köcher
258c1a86f6
Transaction pool: Ensure that we prune transactions properly ( #8963 )
...
* Transaction pool: Ensure that we prune transactions properly
There was a bug in the transaction pool that we didn't pruned
transactions properly because we called `prune_known`, instead of `prune`.
This bug was introduced by:
https://github.com/paritytech/substrate/pull/4629
This is required to have stale extrinsics being removed properly, so
that they don't fill up the tx pool.
* Fix compilation
* Fix benches
* ...
2021-06-03 16:04:29 +02:00
Gavin Wood
53de6871e0
Fix teleport accounting and add some events ( #3167 )
...
* Stuff to help inspect the DMP activity
* Fix teleport accounting
* Fixes
* Fixes
* Fixes
* Fixes
2021-06-03 15:39:08 +02:00
Shawn Tabrizi
f585bf1c1e
Add Call Filter That Prevents Nested batch_all ( #9009 )
...
* add filter preventing nested `batch_all`
* more tests
* fix test
* cargo run --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs
Co-authored-by: Parity Bot <admin@parity.io >
2021-06-03 13:05:02 +00:00
Chevdor
24ddf1b0ce
Add srtool + subwasm workflow ( #462 )
...
Add github workflow to build the westmint and statemine runtimes with srtool and subwasm
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com >
2021-06-03 14:46:43 +02:00
Dmitry Kashitsyn
94717b93db
Removes unused import ( #9007 )
2021-06-03 11:25:02 +00:00
Gavin Wood
bf1ea96c66
Non-fungible token traits ( #8993 )
...
* Non-fungible token traits
* Docs
* Fixes
* Implement non-fungible trait for Uniques
* Update frame/uniques/src/impl_nonfungibles.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/uniques/src/impl_nonfungibles.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-03 13:20:34 +02:00
Bastian Köcher
ecb0478a49
Decrease log levels ( #464 )
...
It doesn't make sense to log them as a warning, especially when it could
happen that a parachain id could be reused over the lifetime of a relay
chain.
2021-06-03 12:48:28 +02:00
Shaun Wang
88e25f1669
Companion PR for Substrate #8824 (Migrate pallet-democracy to pallet attribute macro) ( #3030 )
...
* Add type parameter for democracy genesis config.
* update Substrate
Co-authored-by: parity-processbot <>
2021-06-03 06:28:00 -04:00
Andreas Doerr
ccb4e6a551
Add ecdsa::Pair::verify_prehashed() ( #8996 )
...
* Add ecdsa::Pair::verify_prehashed()
* turn verify_prehashed() into an associated function
* add Signature::recover_prehashed()
2021-06-03 09:46:43 +00:00
Shaun Wang
7ec6ebb627
Migrate pallet-democracy to pallet attribute macro ( #8824 )
...
* Migrate pallet-democracy to pallet attribute macro.
* Metadata fix.
* Trigger CI.
2021-06-03 08:30:21 +00:00
Alexander Popiak
a28d4a5c5d
XCM docs and tests ( #2948 )
...
* WIP
* add tests and docs for DoubleEncoded
* reformat parent_count
* add test for match_and_split
* fix append_with docs and add tests
* move Parachain enum variant to tuple
* Fix stuff
* add to append test
* simplify match
* formatting
* format and extend doc comments (including examples)
* fix typo
* add some doc comments
* add test for location inverter
* Add more tests/docs
* Fix build
* matches fungibles
* currency adapter.
* add more tests for location inverter
* extract max length magic number into constant
* adapters.
* Apply suggestions from code review
* Final touches.
* Repot and fixes
* Remove last todo
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/barriers.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/barriers.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/currency_adapter.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/filter_asset_location.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-builder/src/matches_fungible.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/conversion.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/conversion.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/transact_asset.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update xcm/xcm-executor/src/traits/should_execute.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-03 02:01:25 +00:00
Shaun Wang
512b366280
Update purchase pallet to FRAME v2 ( #3075 )
...
* Migrate purchase wrapper pallet to pallet attribute macro.
* Apply review suggestions.
* Update runtime/common/src/purchase.rs
* Update runtime/common/src/purchase.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-02 18:30:55 -04:00
Pierre Krieger
152587bcb9
Discard notifications if we have failed to parse handshake ( #8806 )
2021-06-02 20:41:21 +02:00
Bastian Köcher
2ab5f9aeca
Transactionpool: Make ready_at return earlier ( #8995 )
...
`ready_at` returns when we have processed the requested block. However,
on startup we already have processed the best block and there
are no transactions in the pool on startup anyway. So, we can set `updated_at`
to the best block on startup.
Besides that `ready_at` now returns early when there are no ready nor
any future transactions in the pool.
2021-06-02 18:13:47 +00:00
Alexander Popiak
50245e5add
Statemine Release Prep ( #460 )
...
* set default para id to 1000
* add genesis value generation script
* add statemine chain spec and genesis values
* add westmint chain spec and genesis values
* rename chain specs to _genesis to indicate that they are not usable for syncing the chain
* adjust chain names to reduce confusion
* add westmint chain spec
* set chain id to shell
* comment out statemine chain spec
* fix build
Co-authored-by: joepetrowski <joe@parity.io >
2021-06-02 16:27:46 +02:00
Bastian Köcher
ba81b0b56c
Do not require the collator key to be passed ( #459 )
2021-06-02 11:43:45 +02:00
Gavin Wood
3a06a47aa7
Bump XCM weight to something more conservative ( #458 )
2021-06-02 09:22:49 +02:00
Gavin Wood
fccdc2da9a
Add NFTs to Statemine ( #456 )
...
* Add NFTs to Statemine
* Update NFT deposits
* add_benchmark
* add feature flag
* std feature too
* add weights
* add `transfer_ownership` to `NonTransfer` blacklist
* fix merge
* add `approve_transfer` to `NonTransfer` blacklist
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-06-02 09:00:18 +02:00
joe petrowski
b60d1e36d2
add transfer_ownership to NonTransfer blacklist ( #457 )
2021-06-02 07:29:29 +02:00
Shawn Tabrizi
554a0cb274
also fix bounded vec ( #8987 )
2021-06-02 04:30:53 +00:00
Gavin Wood
cac84659a2
Bump Substrate ( #3153 )
2021-06-02 00:17:47 +02:00
MOZGIII
e63730b763
Convert another instance of Into impl to From in the macros ( #8986 )
...
* Convert another instance of Into impl to From in the macros
* Convert another location
2021-06-01 20:48:31 +00:00