Check fail when sending incomplete tx

This commit is contained in:
Ivan Socolsky 2014-08-27 09:47:45 -03:00
commit 63fb94c2be
3 changed files with 17 additions and 3 deletions

View file

@ -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');