diff --git a/lib/primitives/invitem.js b/lib/primitives/invitem.js index ea31f083..9966b19f 100644 --- a/lib/primitives/invitem.js +++ b/lib/primitives/invitem.js @@ -52,12 +52,12 @@ InvItem.types = { InvItem.typesByVal = util.revMap(InvItem.types); /** - * Witness mask for inv types. + * Witness bit for inv types. * @const {Number} * @default */ -InvItem.WITNESS_MASK = 1 << 30; +InvItem.WITNESS_FLAG = 1 << 30; /** * Write inv item to buffer writer. @@ -171,7 +171,7 @@ InvItem.prototype.isTX = function isTX() { */ InvItem.prototype.hasWitness = function hasWitness() { - return (this.type & InvItem.WITNESS_MASK) !== 0; + return (this.type & InvItem.WITNESS_FLAG) !== 0; }; /**