invitem: rename witness flag for consistency.

This commit is contained in:
Christopher Jeffrey 2017-01-23 05:33:53 -08:00
parent 30ab5c2a88
commit 3374bffd14
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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;
};
/**