diff --git a/lib/net/peer.js b/lib/net/peer.js index 6406283a4..da771229e 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -1226,7 +1226,7 @@ class Peer extends EventEmitter { /** * Calculate peer block inv type (filtered, - * compact, witness, or non-witness). + * compact or full block) * @returns {Number} */ @@ -1243,15 +1243,6 @@ class Peer extends EventEmitter { return invTypes.BLOCK; } - /** - * Calculate peer tx inv type (witness or non-witness). - * @returns {Number} - */ - - txType() { - return invTypes.TX; - } - /** * Send `getdata` to peer. * @param {InvItem[]} items @@ -1294,7 +1285,7 @@ class Peer extends EventEmitter { */ getTX(hashes) { - this.getItems(this.txType(), hashes); + this.getItems(invTypes.TX, hashes); } /**