bisq/core
HenrikJannsen 3f4a069202
Add reset method to trade protocol.
Add map for maintaining pending protocols by offerID.

Fixes a bug when the same taker got an early failure in a take offer attempt before the maker removes the offer and the taker did not persist the failed trade, thus the protection to not be permitted to take the same offer after a failure does not prevent another take offer attempt of the same taker. In such a case the maker has the old pending protocol listening for the trade messages and both the old and new protocol instance process those messages. In case the model data has changes (e.g. diff. inputs) this can cause a failed trade.
We do not remove the message listeners on failures to tolerate minor failures which can be recovered by resend routines.
There could be more solid fixes for that issue but this approach seems to carry less risks.
2022-12-26 14:07:14 -05:00
..
.tx Update translations for v1.9.0 2022-04-28 13:12:59 +02:00
src Add reset method to trade protocol. 2022-12-26 14:07:14 -05:00
update_translations.sh Add Polish translation 2021-12-01 15:13:57 +01:00