Added code for when a block is added and transactions are inside