From b5268465dbce454a7824ad35d11551d65ed05f18 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sun, 15 Jun 2014 01:39:59 +1000 Subject: [PATCH] Transaction: remove TxIn/TxOut clone --- src/transaction.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/transaction.js b/src/transaction.js index f780df9..b55c345 100644 --- a/src/transaction.js +++ b/src/transaction.js @@ -332,27 +332,9 @@ function TransactionIn(data) { this.sequence = data.sequence == undefined ? DEFAULT_SEQUENCE : data.sequence } -TransactionIn.prototype.clone = function () { - return new TransactionIn({ - outpoint: { - hash: this.outpoint.hash, - index: this.outpoint.index - }, - script: this.script, - sequence: this.sequence - }) -} - function TransactionOut(data) { this.script = data.script this.value = data.value } -TransactionOut.prototype.clone = function() { - return new TransactionOut({ - script: this.script, - value: this.value - }) -} - module.exports = Transaction