Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
vekexasia committed Aug 7, 2018
2 parents 6f40e28 + d94cb0c commit 92f90ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/blocks/chain.ts
Expand Up @@ -253,11 +253,11 @@ export class BlocksModuleChain implements IBlocksModuleChain {
this.logger.debug('Block applied correctly with ' + block.transactions.length + ' transactions');
}

await this.bus.message('newBlock', block, broadcast);

await this.roundsModule.tick(block, dbTX);

this.blocksModule.lastBlock = this.BlocksModel.classFromPOJO(block);

await this.bus.message('newBlock', block, broadcast);
}).catch((err) => {
// Allow cleanup as processing finished even if rollback.
this.isProcessing = false;
Expand Down

0 comments on commit 92f90ea

Please sign in to comment.