block: fix isBlock.
This commit is contained in:
parent
695509b1b3
commit
86fdf33f8a
@ -932,7 +932,7 @@ Block.prototype.getWitnessSizes = function getWitnessSizes() {
|
|||||||
|
|
||||||
Block.isBlock = function isBlock(obj) {
|
Block.isBlock = function isBlock(obj) {
|
||||||
return obj
|
return obj
|
||||||
&& obj.merkleRoot !== undefined
|
&& typeof obj.merkleRoot === 'string'
|
||||||
&& typeof obj.getClaimed === 'function';
|
&& typeof obj.getClaimed === 'function';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user