[bisq-network/bisq] Fix republish trade stats (#4662)
chimp1984
notifications at github.com
Fri Oct 16 19:16:16 UTC 2020
At init trades we iterate all trades (closed and pending) and check if the trade statistics contain a trade stat from that trade. First we check for the new TradeStatistics3, if not found we lookup for the hash of TradeStatistics2 created from that trade. If also not found and if it is valid data we republish the TradeStatistics3.
Remove republishing at SellerProtocol as we don't know the capability of the peer at that moment and as we also want to republish for completed trades.
You can view, comment on, or merge this pull request online at:
https://github.com/bisq-network/bisq/pull/4662
-- Commit Summary --
* Handle Capabilities for encrypted messages (offer availibility request/response)
* Add file name to temp file at write to disk
* Fix min height for trade statistics table
* Republish trade statistics if not found in existing trade stats.
-- File Changes --
M common/src/main/java/bisq/common/persistence/PersistenceManager.java (2)
M core/src/main/java/bisq/core/trade/TradeManager.java (13)
M core/src/main/java/bisq/core/trade/protocol/SellerProtocol.java (26)
M core/src/main/java/bisq/core/trade/protocol/tasks/seller/SellerPublishesTradeStatistics.java (38)
M core/src/main/java/bisq/core/trade/statistics/TradeStatistics2.java (34)
M core/src/main/java/bisq/core/trade/statistics/TradeStatistics3.java (42)
M core/src/main/java/bisq/core/trade/statistics/TradeStatisticsManager.java (49)
M desktop/src/main/java/bisq/desktop/main/market/trades/TradesChartsView.java (2)
M p2p/src/main/java/bisq/network/p2p/P2PService.java (1)
M p2p/src/main/java/bisq/network/p2p/network/Connection.java (14)
-- Patch Links --
https://github.com/bisq-network/bisq/pull/4662.patch
https://github.com/bisq-network/bisq/pull/4662.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/4662
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201016/606104fa/attachment.html>
More information about the bisq-github
mailing list