Unconfirmed txs clearing
RCasatta opened this issue · 3 comments
RCasatta commented
Is possible that the folllowing line:
opentimestamps-server/otsserver/stamper.py
Line 272 in b0bdfe6
Isn't considering the case where someone else is doing the transaction for the calendar but the digest is older than the most recent?
In that case we should probably remove only all the older than the current unconfirmed_tx (because the external tx is not conflicting with the calendar one)
petertodd commented
Good point! I think you're right.
Maybe replace that with:
self.unconfirmed_txs = self.unconfirmed_txs[i+1:]
where i
is the index of the unconfirmed tx found?
RCasatta commented
Done, since I am looping self.unconfirmed_txs
in reverse order I used [0:i]