Cater for Babe & Aura combo authors (#1305)

* Cater for Babe & Aura combo authors

* Re-add BabeWeight (until metadata updated)

* BabeWeight to registry

* Remove abrs definitions

* Bump metadata static
This commit is contained in:
Jaco Greeff
2019-08-16 14:07:23 +02:00
committed by GitHub
parent 41c8222469
commit 8922bbf328
12 changed files with 119 additions and 88 deletions
@@ -32,7 +32,7 @@ export default class HeaderExtended extends _Header {
if (pitem) {
const [engine, data] = pitem.asPreRuntime;
if (engine.isAbrs || engine.isBabe || engine.isAura) {
if (engine.isBabe || engine.isAura) {
this._author = engine.extractAuthor(data, sessionValidators);
}
} else {
@@ -45,13 +45,6 @@ export default class HeaderExtended extends _Header {
if (engine.isAura) {
this._author = engine.extractAuthor(data, sessionValidators);
}
} else {
const [sitem] = header.digest.logsWith('SealV0');
// extract author from the seal (pre substrate 1.0, backwards compat)
if (sitem) {
this._author = sessionValidators[sitem.asSealV0[0].modn(sessionValidators.length)];
}
}
}
}