Check fail when sending incomplete tx
This commit is contained in:
parent
64afc4b914
commit
63fb94c2be
3 changed files with 17 additions and 3 deletions
|
|
@ -798,7 +798,6 @@ Wallet.prototype.sendTx = function(ntxid, cb) {
|
|||
if (txp.merchant) {
|
||||
return this.sendPaymentTx(ntxid, cb);
|
||||
}
|
||||
|
||||
var tx = txp.builder.build();
|
||||
if (!tx.isComplete())
|
||||
throw new Error('Tx is not complete. Can not broadcast');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue