diff --git a/lib/bcoin/block.js b/lib/bcoin/block.js index e4f9fd2f..8fd6999f 100644 --- a/lib/bcoin/block.js +++ b/lib/bcoin/block.js @@ -81,7 +81,7 @@ Block.prototype.render = function render() { return bcoin.protocol.framer.block(this, this.subtype); }; -Block.prototype.size = function render() { +Block.prototype.size = function size() { return this._size || this.render().length; };