From 396ba5ee5ff0fa620a05256cf9947b5adf60cacb Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 26 Jul 2017 20:59:34 -0700 Subject: [PATCH] mtx: minor. --- lib/primitives/mtx.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/primitives/mtx.js b/lib/primitives/mtx.js index 2351f246..e1716953 100644 --- a/lib/primitives/mtx.js +++ b/lib/primitives/mtx.js @@ -1703,10 +1703,8 @@ CoinSelector.prototype.getFee = function getFee(size) { */ CoinSelector.prototype.fund = function fund() { - let coin; - while (this.index < this.coins.length) { - coin = this.coins[this.index++]; + let coin = this.coins[this.index++]; if (!this.isSpendable(coin)) continue;