I want to get blocks on my node with bitcore.
For example, I'm using peermanager.js and I get transactions:
var handleTx = function(info) {
var tx = info.message.tx.getStandardizedObject();
console.log('** TX Received **');
console.log(tx);
};
and it's printing transactions.
However, when I use this part:
var handleBlock = function(info) {
console.log('** Block Received **');
console.log(info.message);
};
It doesn't log anything to the console.