Adjust waiting noms extraction (#3432)

This commit is contained in:
Jaco Greeff 2020-08-17 13:03:45 +02:00 committed by GitHub
parent 6538c8b8b6
commit cdf052724f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,7 +40,7 @@ function extractState (stashId: string, slashes: Option<SlashingSpans>[], nomine
// waiting if validator is inactive or we have not submitted long enough ago
const nomsWaiting = exposures
.map((exposure, index) =>
exposure.total.unwrap().isZero() || (nomsInactive.includes(nominees[index]) && activeEra.sub(submittedIn).lten(2))
exposure.total.unwrap().isZero() || (nomsInactive.includes(nominees[index]) && submittedIn.eq(activeEra))
? nominees[index]
: null
)