Creating getLastBlock Object for blockchain
Blockchain.prototype.getLastBlock = function() { return this.chain[this.chain.length - 1]; }
Source: softhunt.net
Blockchain.prototype.getLastBlock = function() { return this.chain[this.chain.length - 1]; }