diff --git a/lib/wallet/wallet.js b/lib/wallet/wallet.js index f5920c22..af9e5c60 100644 --- a/lib/wallet/wallet.js +++ b/lib/wallet/wallet.js @@ -1770,8 +1770,10 @@ class Wallet extends EventEmitter { mtx.outputs.push(output); - if (await this.txdb.isDoubleOpen(mtx)) + if (await this.txdb.isDoubleOpen(mtx)) { + mtx.outputs.pop(); throw new Error(`Already sent an open for: ${name}.`); + } return mtx; }