invitem: rename witness flag for consistency.
This commit is contained in:
parent
30ab5c2a88
commit
3374bffd14
@ -52,12 +52,12 @@ InvItem.types = {
|
|||||||
InvItem.typesByVal = util.revMap(InvItem.types);
|
InvItem.typesByVal = util.revMap(InvItem.types);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Witness mask for inv types.
|
* Witness bit for inv types.
|
||||||
* @const {Number}
|
* @const {Number}
|
||||||
* @default
|
* @default
|
||||||
*/
|
*/
|
||||||
|
|
||||||
InvItem.WITNESS_MASK = 1 << 30;
|
InvItem.WITNESS_FLAG = 1 << 30;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write inv item to buffer writer.
|
* Write inv item to buffer writer.
|
||||||
@ -171,7 +171,7 @@ InvItem.prototype.isTX = function isTX() {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
InvItem.prototype.hasWitness = function hasWitness() {
|
InvItem.prototype.hasWitness = function hasWitness() {
|
||||||
return (this.type & InvItem.WITNESS_MASK) !== 0;
|
return (this.type & InvItem.WITNESS_FLAG) !== 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user