comments.

This commit is contained in:
Christopher Jeffrey 2016-04-17 03:30:27 -07:00
parent c8ba1aaa51
commit e96e09493d
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 8 additions and 1 deletions

View File

@ -54,6 +54,7 @@ function CompactBlock(data) {
bcoin.abstractblock.call(this, data);
this.type = 'compactblock';
this.coinbaseHeight = -1;
if (this.version >= 2) {

View File

@ -151,6 +151,12 @@ Witness.prototype.isScripthashInput = function isScripthashInput() {
return Script.isScripthashInput(this.items, true);
};
/**
* "Guess" whether the witness is an unknown/non-standard type.
* This method is not 100% reliable.
* @returns {Boolean}
*/
Witness.prototype.isUnknownInput = function isUnknownInput() {
return Script.isUnknownInput(this.items, true);
};
@ -2369,7 +2375,7 @@ Script.getInputType = function getInputType(code, isWitness) {
};
/**
* "Guess" whether the input script is a scripthash input.
* "Guess" whether the input script is an unknown/non-standard type.
* This method is not 100% reliable.
* @returns {Boolean}
*/