mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 19:26:09 -04:00
seller publishes trade statistics without checking peer capabilities
This commit is contained in:
parent
37af7e5338
commit
ca125dbc48
2 changed files with 10 additions and 18 deletions
|
@ -564,6 +564,7 @@ public class P2PService implements SetupListener, MessageListener, ConnectionLis
|
|||
return keyRing;
|
||||
}
|
||||
|
||||
// TODO: this is unreliable and unused, because peer sometimes reports no TRADE_STATISTICS_3 capability, causing valid trades to be unpublished
|
||||
public Optional<Capabilities> findPeersCapabilities(NodeAddress peer) {
|
||||
return networkNode.getConfirmedConnections().stream()
|
||||
.filter(e -> e.getPeersNodeAddressOptional().isPresent())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue