Bastian Köcher
e19f5adfb7
Fix frame_system renaming in contruct_runtime ( #4412 )
...
* Fix contruct_runtime
* Update lib.rs
* Update event.rs
* Update event.rs
* Update event.rs
* Update event.rs
* Update event.rs
* Update event.rs
* Update event.rs
Back to where we started
* Update chain_spec.rs
* Update genesis.rs
* Fix it properly
2019-12-17 10:54:50 +01:00
Gavin Wood
48860a768b
Fix naming of utility crate (it's a legit pallet) ( #4408 )
...
* Fix naming of utility crate (it's a legit pallet)
* Additional bits
2019-12-17 14:25:52 +08:00
Stanislav Tkach
f20bb8b196
Use decl_error in stacking module ( #4387 )
2019-12-17 14:03:24 +08:00
Stanislav Tkach
7e9253d35d
Use decl_error in the treasure module ( #4370 )
2019-12-17 14:03:08 +08:00
thiolliere
583b0e3c69
impl iter_prefix on doublemap ( #4388 )
2019-12-17 13:41:25 +08:00
Shawn Tabrizi
7e3872c064
Make sudo use decl_error! ( #4369 )
...
* Make sudo use `decl_error`
* copy pasta error
* Update to use `as_str`
* Add doc
* Add back `decl_error`
2019-12-17 00:32:40 +01:00
Tomasz Drwięga
8778ca7dc8
[big refactor] Remove crate aliasing. ( #4395 )
...
* Rename: Phase 1.
* Unify codec.
* Fixing: Phase 2
* Fixing: Phase 3.
* Fixing: Phase 4.
* Fixing: Phase 5.
* Fixing: Phase 6.
* Fixing: Phase 7.
* Fixing: Phase 8. Tests
* Fixing: Phase 9. Tests!!!
* Fixing: Phase 10. Moar tests!
* Finally done!
* More fixes.
* Rename primitives:: to sp_core::
* Apply renames in finality-grandpa.
* Fix benches.
* Fix benches 2.
* Revert node-template.
* Fix frame-system in our modules.
2019-12-16 20:36:49 +08:00
Gavin Wood
f14d98a439
Identity module enhancements ( #4401 )
...
* Updates; not yet tested.
* Fix and add tests
* Add test
* Update a few comments
2019-12-16 20:36:08 +08:00
Gavin Wood
83711ca221
Remove proposal when it is refused ( #4399 )
...
* Remove proposal when it is refused.
* Fix build, add test
2019-12-16 08:24:03 +01:00
Robert Habermeier
16047e30bf
babe: exponential backoff on missed blocks ( #4397 )
...
* fix srml-support compilation
* babe: exponential backoff on missed blocks.
2019-12-16 01:24:49 +09:00
cheme
0ece5d9e17
Fix key collision for child trie ( #4162 )
...
* In progress, runtime io must switch to future proof root +
child_specific (unique id) + u32 type.
* Switch interface, sr-io seems ok, rpc could use similar interface to
sr-io, genesis json broken if there is child trie in existing encoding
genesis.
* test from previous implementation.
* fix proving test.
* Restore Keyspacedb from other branch, only apply to child trie.
* Removing unneeded child_info from child root (child info are stored
if things changed, otherwhise the root does not change).
* Switch rpc to use same format as ext: more future proof.
* use root from child info for trie backend essence.
* Breaking long lines.
* Update doc and clean pr a bit.
* fix error type
* Restore removed doc on merge and update sr-io doc.
* Switch child storage api to use directly unique id, if managed id
where to be put in place, the api will change at this time.
* Clean deprecated host interface from child.
* Removing assertion on child info (can fail depending on root
memoization).
* merging child info in the overlay when possible.
* child iteration by prefix using child_info.
* Using ChainInfo in frame support. ChainInfo gets redesign to avoid
buffers allocation on every calls.
* Add length of root to the data of child info.
* comments
* Encode compact.
* Remove child info with root.
* Fix try_update condition.
* Comment Ext child root caching.
* Replace tuples by struct with field
* remove StorageTuple alias.
* Fix doc tests, and remove StorageOverlay and ChildStorageOverlay
aliases.
2019-12-14 11:11:19 +09:00
Weiliang Li
21cbd80f8c
update comments in authority discovery ( #4390 )
...
* update comments in authority discovery
* Update lib.rs
2019-12-14 00:54:20 +09:00
Gavin Wood and Shawn Tabrizi
b178d0c7f3
Revamp reaping rules ( #4371 )
...
* Allow owner of a preimage to reap it a little while before everyone else.
* Revamp DispatchQueue to make reaping safer
* Remove commented code
* Update frame/democracy/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update docs
2019-12-12 19:24:36 +09:00
Bastian Köcher
467e01b991
decl_error! document that the error needs to be registered (#4366 )
2019-12-11 20:48:55 +01:00
Benjamin Kampmann
c5a709a882
Fix folder names in client and test ( #4360 )
...
* client/rpc/api -> client/rpc-api
* client/util/wasm-builder-runner -> utils/wasm-builder-runner
* client/grafana-data-source -> utils/grafana-data-source
* test/utils -> test-utils
* fix moved path
* Update Cargo.lock
* Update Cargo.lock
2019-12-11 16:41:38 +01:00
Gavin Wood
8131dc8a66
Allow referendums to begin out of order ( #4345 )
...
* Allow referendums to begin out of order
* Make `inject_referendum` infallible
* Merge remote-tracking branch 'origin/gav-verified-id' into gav-verified-id
# Conflicts:
# frame/identity/src/lib.rs
* Renames.
2019-12-12 00:27:13 +09:00
Marcio Diaz
58c1c7a10d
Improve is_member and is_runner. ( #4356 )
2019-12-11 13:15:27 +01:00
Marcio Diaz and Bastian Köcher
6b9c87ef1a
Fix token economics url. ( #4355 )
...
* Fix token economics url.
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
2019-12-11 13:13:58 +01:00
Benjamin Kampmann
df133d6be3
Fix folder names in primitives ( #4358 )
...
* sr-arithmetic -> arithmetic
* sr-sandbox -> sandbox
* primitives/sr-staking-primitives -> primitives/staking
* primitives/sr-version -> primitives/version
* primitives/block-builder/runtime-api -> primitives/block-builder
2019-12-11 11:36:29 +01:00
Jake Naviasky
ed50be1eb5
Including runners-up in check for defunct phragmen voter. ( #4349 )
2019-12-11 17:42:19 +09:00
joe petrowski
1ff41742bd
fix typos in identity pallet docs ( #4350 )
2019-12-10 23:31:27 +01:00
Benjamin Kampmann
f0cc89a4b0
Break appcrypto dep cycle ( #4347 )
...
* move application-crypto tests into seperate crate
* Fix crate name, update script and add docs
* pressing 'save' helps
* remove useless lines
* adding header
* split into actual modules
2019-12-10 22:12:57 +01:00
Benjamin Kampmann
8721d98dd6
break sp-api dependency cycle ( #4352 )
...
* move benches into tests, ignore non-passing doctests
* Rename sr-api folder
* Move test-primitives to primitives, use that for sp-api doctests
2019-12-10 20:18:01 +01:00
Weiliang Li
4f2cdb20c1
Rename: primitives/sr-io -> primitives/sp-io ( #4328 )
...
* primitives/sr-io -> primitives/io
* fix
* rename
* runtime-io -> sp-io
* git mv
* fix ci
* remove package name
* fix
* fix
* try minimizing diff
* try minimizing diff again
* try minimizing diff again
2019-12-10 16:08:35 +01:00
Tomasz Drwięga
1f84d6d41d
Fix warnings when compiling runtime. ( #4332 )
...
* Remove warnings when compiling runtime.
* Remove dispatch::Result imports.
* Add missing imports.
* Fix missing vecs. #4333
* Fix oom function.
* Remove superfluous import.
* More warnings.
2019-12-10 14:21:34 +01:00
Weiliang Li
6da9f59d72
Rename: primitives/sr-std -> primitives/sp-std ( #4327 )
...
* primitives/sr-std -> primitives/std
* fix
* fix conflict
* rstd -> sp-std
* git mv
* fix review
* fix merge
2019-12-10 08:26:27 +01:00
thiolliere
e5b6935c2a
Introduce prefixed storage with enumeration ( #4185 )
...
* Introduce storage_next allowing iteration. (without childtries)
* Implement prefixed storage
* impl cache in client_storage_cache (needs test)
* switch overlay change to btreemap
* Revert "impl cache in client_storage_cache"
This reverts commit c91a4848916eba87184b3dc4722cea81aec9339d.
the storage cache cannot be used this way
* Revert "Implement prefixed storage"
This reverts commit 4931088126a427082d7310ed7e83b8eea966bc20.
* Impl StoragePrefixedMap for all map storages
* remove comment
* Move all overlays to BTreeMap
* btreemap iteration improvment
* impl for child tries
* impl tests for childs
* fix
* remove cache comment
* Fix grumble
2019-12-09 20:55:11 +01:00
Marcio Diaz
d4c19c0652
Limit number of uncles that can be provided. ( #4298 )
...
* Limit number of uncles that can be provided.
* Check length of uncles vector on inherent.
* Set fatal error to true for too many uncles.
* Take max uncles in create_inherent.
2019-12-09 20:10:41 +01:00
Gavin Wood
697b480bac
More comprehensive identity system ( #4326 )
...
* Initial prototype
* Work on test harness.
* Minor removal
* Add some tests
* Fix tests
* More tests
* Final tests
* General documentation
* Function-level docs.
* Function-level docs.
* Identity fields.
* Fix dependency
* Docs
* Spelling nits
* Address grumbles.
2019-12-09 16:28:20 +01:00
Weiliang Li
04fcc71809
Rename folder: primitives/sr-primitives -> primitives/runtime ( #4280 )
...
* primitives/sr-primitives -> primitives/runtime
* update
2019-12-09 08:49:32 +01:00
thiolliere
b8ac094649
allow storage value build to put no value ( #4319 )
2019-12-07 15:30:57 +01:00
Gavin Wood
5e664ede13
Fix order of operation in membership ( #4306 )
2019-12-05 21:35:12 +01:00
Tomasz Drwięga
145086722d
Fix Contracts rpc output format. ( #4304 )
2019-12-05 21:04:19 +01:00
Gavin Wood
37ed154535
Allow members of groups to change their key ( #4300 )
2019-12-05 16:57:25 +01:00
Shawn Tabrizi
5e6f339a97
Change order of events emitted from transfer. ( #4301 )
2019-12-05 16:05:54 +01:00
Tomasz Drwięga
c42cdf185c
Use balance capped to u64 for transaction payment RPC. ( #4290 )
...
* Use balance capped to u64
* Add debug.
2019-12-05 13:01:40 +01:00
Yuanchao Sun
e2bf02f138
Minor fix toml files ( #4291 )
2019-12-05 13:00:45 +01:00
Spencer Judge
0a3f326e56
Expose some of session module's storage as public, as well as the set_keys transaction ( #4175 )
...
* Expose some of session's storage as public, as well as set_keys
Seemingly there's no reason not to do this, as anyone can always do
it the "hard way" by constructing storage keys or extrinsics.
* Use trait to expose `is_registered` function
* Missed removing a pub keyword
* Move trait to support, add docstrings
2019-12-05 10:42:42 +01:00
Bryant Eisenbach
c071276187
fix: Typo granpda -> grandpa ( #4286 )
2019-12-04 00:05:05 +01:00
Wei Tang and Niklas Adolfsson
d4785ea314
pallet-evm: weight calculation for call/create based on gas provided ( #4261 )
...
* pallet-evm: weight calculation for call/create based on gas provided
* Update frame/evm/src/lib.rs
Co-Authored-By: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2019-12-03 18:04:17 +01:00
Tomasz Drwięga
3b21f7fdc3
Rename OffchainWorker internal method. ( #4267 )
...
* Rename generate_extrinsics to offchain_worker
* Some doc improvements.
2019-12-03 18:03:27 +01:00
Gavin Wood
0f1a5f6514
Enumeratable dispatches using unhashed index in key. ( #4278 )
2019-12-03 00:49:27 +01:00
Gavin Wood
c1ee9aeec1
Another fix for elections-phragmen ( #4276 )
...
* Another fix for elections phragmen
CC @kianenigma
* Test for correct sorting.
2019-12-02 21:11:11 +01:00
Gav Wood
da6bb305f8
Whitespace fix from #4266 review.
2019-12-02 14:24:49 +01:00
Gavin Wood
47721b6b01
Fix phragmen elections. ( #4266 )
...
CC @kianenigma
2019-12-02 14:21:32 +01:00
thiolliere
22c00ff424
Add swap and decode_len to DoubleMap finishing #3749 ( #4264 )
...
* Add `swap` and `decode_len` to `DoubleMap`
* Add tests to `swap` and `decode_len` for `DoubleMap` (WIP)
* Address review comments
* Remove function that is not in scope
* fix test
* better naming
2019-12-02 13:01:29 +01:00
Benjamin Kampmann
927e13c13a
The crate rename ( #4223 )
...
* Adding script for rename, could be applicable for nodes on top of it, too
* add stderr and gitlab ci features
* apply script
* fix now minor details in expected stderr
* Update the Cargo.lock
* fix name: sc-transaction -> sc-tracing
* fix rename in script, too
2019-12-02 11:23:53 +01:00
Shawn Tabrizi
40f6d05a4c
Introduce VestingCurrency trait ( #4257 )
...
* Introduce `VestingCurrency` trait
* Return error if account already has vesting schedule
2019-12-01 20:52:00 +01:00
Gavin Wood and Shawn Tabrizi
fd1cec850e
Economic fixes for democracy module ( #4256 )
...
* Fix up `end_block` mess; add free preimage noting for imminents.
* Fixes
* Bump runtime
* Update frame/democracy/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Handle grumble
* Update frame/democracy/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
2019-12-01 10:13:09 +01:00
Stanislav Tkach
3e3ec05e56
Make weights compatible with u64 ( #4192 )
...
* Use Weight instead of u32 everywhere
* Revert Weight declaration
* Fix benches
2019-11-29 20:20:20 +01:00