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;