Preserve sent timestamp for incoming proposals
This commit is contained in:
parent
71e6fce6e6
commit
9d5b26f526
3 changed files with 42 additions and 4 deletions
|
|
@ -255,7 +255,9 @@ TxProposal.prototype.setSent = function(sentTxid) {
|
|||
this.sentTs = Date.now();
|
||||
};
|
||||
|
||||
|
||||
TxProposal.prototype.getSent = function(sentTxid) {
|
||||
return !!this.sentTxid;
|
||||
}
|
||||
|
||||
TxProposal.prototype._allSignatures = function() {
|
||||
var ret = {};
|
||||
|
|
|
|||
|
|
@ -405,9 +405,11 @@ Wallet.prototype._onTxProposal = function(senderId, data) {
|
|||
if (tx.isComplete()) {
|
||||
this._checkSentTx(m.ntxid, function(ret) {
|
||||
if (ret) {
|
||||
m.txp.setSent(m.ntxid);
|
||||
self.emit('txProposalsUpdated');
|
||||
self.store();
|
||||
if (!m.txp.getSent()) {
|
||||
m.txp.setSent(m.ntxid);
|
||||
self.emit('txProposalsUpdated');
|
||||
self.store();
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue