comments.
This commit is contained in:
parent
c8ba1aaa51
commit
e96e09493d
@ -54,6 +54,7 @@ function CompactBlock(data) {
|
||||
|
||||
bcoin.abstractblock.call(this, data);
|
||||
|
||||
this.type = 'compactblock';
|
||||
this.coinbaseHeight = -1;
|
||||
|
||||
if (this.version >= 2) {
|
||||
|
||||
@ -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}
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user