fix set sent
This commit is contained in:
parent
5dc27c2ef4
commit
17431e29c5
2 changed files with 11 additions and 4 deletions
|
|
@ -29,6 +29,11 @@ TxProposal.prototype.toObj = function() {
|
||||||
return o;
|
return o;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
TxProposal.prototype.setSent = function() {
|
||||||
|
this.sentTs = Date.now();;
|
||||||
|
};
|
||||||
|
|
||||||
TxProposal.fromObj = function(o) {
|
TxProposal.fromObj = function(o) {
|
||||||
var t = new TxProposal(o);
|
var t = new TxProposal(o);
|
||||||
var b = new Builder.fromObj(o.builderObj);
|
var b = new Builder.fromObj(o.builderObj);
|
||||||
|
|
@ -36,10 +41,6 @@ TxProposal.fromObj = function(o) {
|
||||||
return t;
|
return t;
|
||||||
};
|
};
|
||||||
|
|
||||||
TxProposal.setSent = function() {
|
|
||||||
this.sentTs = Date.now();;
|
|
||||||
};
|
|
||||||
|
|
||||||
TxProposal.getSentTs = function() {
|
TxProposal.getSentTs = function() {
|
||||||
return this.sentTs;
|
return this.sentTs;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -348,8 +348,14 @@ Wallet.prototype.sendTx = function(ntxid) {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.blockchain.sendRawTransaction(txHex, function(txid) {
|
this.blockchain.sendRawTransaction(txHex, function(txid) {
|
||||||
self.log('BITCOND txid:',txid); //TODO
|
self.log('BITCOND txid:',txid); //TODO
|
||||||
|
|
||||||
|
console.log('[Wallet.js.351]'); //TODO
|
||||||
if (txid) {
|
if (txid) {
|
||||||
|
console.log('[Wallet.js.354]',self); //TODO
|
||||||
self.txProposals.setSent(ntxid);
|
self.txProposals.setSent(ntxid);
|
||||||
|
|
||||||
|
console.log('[Wallet.js.353]', self.txProposals); //TODO
|
||||||
|
|
||||||
self.sendTxProposals();
|
self.sendTxProposals();
|
||||||
self.store();
|
self.store();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue