chore: log less
@@ -73,14 +73,12 @@ export default class Listener extends EventEmitter {
if (missingHeader) {
this.headers.push(missingHeader)
this.last = missingHeader.number.toNumber()
- Listener.debug(`#${this.last}`)
}
}
}
this.headers.push(header)
this.last = header.number.toNumber()
- Listener.debug(`#${this.last}`)
}
async concludeRange() {
@@ -92,6 +90,13 @@ export default class Listener extends EventEmitter {
const anchor: Header = reversedRange.shift() as Header
+ Listener.debug(
+ 'concluding... anchor',
+ anchor.number.toNumber(),
+ 'range',
+ ...reversedRange.map(h => h.number.toNumber())
+ )
+
let anchorFinalized = false
while (!anchorFinalized) {
const head: BlockHash | void = await this.kusama.rpc.chain
