diff --git a/framework/src/modules/chain/chain.js b/framework/src/modules/chain/chain.js index e97c224bc4e..77ca78908eb 100644 --- a/framework/src/modules/chain/chain.js +++ b/framework/src/modules/chain/chain.js @@ -487,6 +487,10 @@ module.exports = class Chain { block.transactions, ); } + this.logger.info( + { id: block.id, height: block.height }, + 'Deleted a block from the chain', + ); this.channel.publish('chain:blocks:change', block); }); @@ -498,6 +502,14 @@ module.exports = class Chain { block.transactions, ); } + this.logger.info( + { + id: block.id, + height: block.height, + numberOfTransactions: block.transactions.length, + }, + 'New block added to the chain', + ); this.channel.publish('chain:blocks:change', block); }); @@ -511,6 +523,10 @@ module.exports = class Chain { this.blocks.on(EVENT_NEW_BROADHASH, ({ broadhash, height }) => { this.channel.invoke('app:updateApplicationState', { broadhash, height }); + this.logger.debug( + { broadhash, height }, + 'Updating the application state', + ); }); this.transactionPool.on(EVENT_MULTISIGNATURE_SIGNATURE, signature => {