Fix semantics of ExistenceRequirement::KeepAlive. (#3796)

* Fix semantics of ExistenceRequirement::KeepAlive.

* Bump runtime version
This commit is contained in:
Gavin Wood authored and GitHub committed 2019-10-11 13:59:26 +02:00
1 parent 4dbc9265ee
commit eba7df9a7b
4 files changed
+49 -3

No files matched your search

+3
View File
@@ -156,6 +156,9 @@ impl<Imbalance: Drop> OnUnbalanced<Imbalance> for () {
#[derive(Copy, Clone, Eq, PartialEq)]
pub enum ExistenceRequirement {
/// Operation must not result in the account going out of existence.
///
/// Note this implies that if the account never existed in the first place, then the operation
/// may legitimately leave the account unchanged and still non-existent.
KeepAlive,
/// Operation may result in account going out of existence.
AllowDeath,