block: fix isBlock.

This commit is contained in:
Christopher Jeffrey 2017-01-27 18:10:28 -08:00
parent 695509b1b3
commit 86fdf33f8a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -932,7 +932,7 @@ Block.prototype.getWitnessSizes = function getWitnessSizes() {
Block.isBlock = function isBlock(obj) {
return obj
&& obj.merkleRoot !== undefined
&& typeof obj.merkleRoot === 'string'
&& typeof obj.getClaimed === 'function';
};