fix wallet

This commit is contained in:
Matias Alejo Garcia 2014-04-19 11:23:16 -03:00
parent 04d7d5abf0
commit ea7f747e83
1 changed files with 2 additions and 2 deletions

View File

@ -441,12 +441,12 @@ Wallet.prototype.createTxSync = function(toAddress, amountSatStr, utxos, opts) {
b.sign( priv.getAll(pkr.addressIndex, pkr.changeAddressIndex) );
}
var me = {};
if (priv) me[priv.id] = Date.now();
if (priv) me[priv.getId()] = Date.now();
this.txProposals.add({
signedBy: priv && b.signaturesAdded ? me : {},
seenBy: priv ? me : {},
creator: priv.id,
creator: priv.getId(),
createdTs: Date.now(),
builder: b,
});