Remove debugging

This commit is contained in:
Garrett Mills 2021-04-10 22:17:30 -05:00
parent 3cb0a91d2a
commit eb0da4a28a
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -381,13 +381,10 @@ export class Blockchain extends Unit {
*/
public async writeback() {
if ( this.breakForExit ) return;
this.logging.info('Generating initial proof-of-elapsed-time. This will take a second...')
this.nextWaitTime = this.random(this.MIN_WAIT_TIME, this.MAX_WAIT_TIME)
this.lastBlock = this.getLastBlock()
this.nextProof = await this.generateProofOfWork(this.lastBlock, this.nextWaitTime)
console.log('writeback approved chain', this.approvedChain)
await Promise.all([
this.firebase.ref('block').set(this.approvedChain.map(x => x.toItem())),
this.firebase.ref('peers').set(this.peers)