Merge PR #944 from 'nodech/fix-partial-open'

This commit is contained in:
Nodari Chkuaselidze 2025-08-22 11:04:45 +04:00
commit 698e252ebc
No known key found for this signature in database
GPG key ID: B018A7BB437D1F05

View file

@ -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;
}