Remove InherentsPool and introduce non-propagateable transactions. (#2695)

* Remove InherentsPool.

* Introduce transactions that are not propagated over the network.

* Bump spec version.

* Use separate flag for propagation.

* Fix tests.
This commit is contained in:
Tomasz Drwięga
2019-05-29 16:06:49 +02:00
committed by Gavin Wood
parent 8d378cb293
commit 25b9c12c20
22 changed files with 250 additions and 171 deletions
+4 -1
View File
@@ -358,6 +358,7 @@ where
requires,
provides,
longevity: TransactionLongevity::max_value(),
propagate: true,
}
},
(None, None) => UnsignedValidator::validate_unsigned(&xt.deconstruct().0),
@@ -432,6 +433,7 @@ mod tests {
requires: vec![],
provides: vec![],
longevity: std::u64::MAX,
propagate: false,
},
_ => TransactionValidity::Invalid(0),
}
@@ -569,7 +571,8 @@ mod tests {
priority: 0,
requires: vec![],
provides: vec![],
longevity: 18446744073709551615
longevity: 18446744073709551615,
propagate: false,
};
let mut t = new_test_ext();