[bisq-network/bisq] SeedNodes report duplicate TradeStatistics2 (same OfferId different Hash) (#3468)

chimp1984 notifications at github.com
Fri Oct 25 15:51:20 UTC 2019


Do you get those differences from the rust project or from pure java code (production code)?

TradeStatisics are published by both traders and as tradeDate is set locally at each user it differs and need to be ignored. 

```@JsonExclude
    private final long tradeDate;
```

Hash takes the json (date should be excluded):
```
this.hash = Hash.getSha256Ripemd160hash(Utilities.objectToJson(this).getBytes(Charsets.UTF_8));
```
If the tradeDate is in the json the JsonExclude does not work anymore. Migh be related with the recent changes of the json library.

-- 
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/issues/3468#issuecomment-546408761
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191025/ca802352/attachment.html>


More information about the bisq-github mailing list