identity: Don't let subs be re-registered (#6667)

* Fixes and tests

* Don't set subs be re-registered.

Also allow subs to de-register themselves and collect the deposit.

Also allow individual registering and removal of subs.

* Make it build

* Update frame/identity/src/lib.rs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* Tests

* Add benchmarks

* Add some reasonable weights

* Docs

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
This commit is contained in:
Gavin Wood
2020-07-17 11:11:03 +02:00
committed by GitHub
parent fe9c01fc68
commit cad18b0fae
24 changed files with 305 additions and 29 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ impl_outer_event! {
}
}
impl_outer_origin! {
pub enum Origin for Test where system = frame_system { }
pub enum Origin for Test where system = frame_system { }
}
impl_outer_dispatch! {
pub enum Call for Test where origin: Origin {