Phragmen solution should submit for current era and be checked… (#5583)

* submit solution for current era

* add test

* address comment

* fix tests
This commit is contained in:
thiolliere
2020-04-14 16:04:25 +02:00
committed by GitHub
parent 1e1b0e2767
commit 57659b8cf4
4 changed files with 47 additions and 39 deletions
+1 -1
View File
@@ -2327,7 +2327,7 @@ impl<T: Trait> Module<T> {
);
// check current era.
if let Some(current_era) = Self::active_era().map(|e| e.index) {
if let Some(current_era) = Self::current_era() {
ensure!(
current_era == era,
Error::<T>::PhragmenEarlySubmission,