[bisq-network/bisq] Add inventory monitor module (#4680)

chimp1984 notifications at github.com
Wed Oct 21 18:28:42 UTC 2020


This adds a new module containing the new inventory monitor project. 
It is running since a few weeks under http://46.101.179.224/ and some of the seeds have updated to that branch already.
It is the implementation of https://github.com/bisq-network/projects/issues/45 
@jmacxx is working on a webapp which should finally replace the simple http server used atm.
It will still need fine tuning of the deviation alert/warning thresholds but it is already pretty useful and helps to detect seed node issues.
Most of the code is only relevant to the monitor project and seed nodes, so it carries very low risk for normal users.  
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/4680

-- Commit Summary --

  * Extract method for filling seed nodes from property file
  * Make config nullable and extract methods where config is used and apply default value in case config is not set.
  * Add inventory module
  * Move inventory package to core as we want to include other domain data as well like DAO state
  * Add signature to request to limit the feature to requests from trusted nodes (monitor)
  * Add readableFileSize
  * Add readSeedNodePropertyFile method
  * Add sparkjava dependency
  * Remove signature from GetInventoryRequest (as monitor is public it does not make sense to limit requests).
  * Add shadow plugin
  * Make RequestInfo public
  * Add InventoryItem enum
  * Add nodes from mike
  * Shut down connection after response received
  * Add network node shutdown
  * Add more warn/alert checks
  * Add triggers for maxConnections and numConnections
  * Fix error handling
  * Add peakNumConnections
  * Add numAllConnectionsLostEvents

-- File Changes --

    M build.gradle (16)
    M common/src/main/java/bisq/common/util/Profiler.java (8)
    M common/src/main/java/bisq/common/util/Utilities.java (9)
    A core/src/main/java/bisq/core/network/p2p/inventory/DeviationSeverity.java (24)
    A core/src/main/java/bisq/core/network/p2p/inventory/GetInventoryRequestHandler.java (186)
    R core/src/main/java/bisq/core/network/p2p/inventory/GetInventoryRequestManager.java (9)
    R core/src/main/java/bisq/core/network/p2p/inventory/GetInventoryRequester.java (48)
    A core/src/main/java/bisq/core/network/p2p/inventory/InventoryItem.java (97)
    R core/src/main/java/bisq/core/network/p2p/inventory/messages/GetInventoryRequest.java (2)
    R core/src/main/java/bisq/core/network/p2p/inventory/messages/GetInventoryResponse.java (34)
    M core/src/main/java/bisq/core/network/p2p/seed/DefaultSeedNodeRepository.java (49)
    M core/src/main/java/bisq/core/proto/network/CoreNetworkProtoResolver.java (4)
    M core/src/main/resources/btc_regtest.seednodes (20)
    A inventory/src/main/java/bisq/inventory/InventoryMonitor.java (195)
    A inventory/src/main/java/bisq/inventory/InventoryMonitorMain.java (127)
    A inventory/src/main/java/bisq/inventory/InventoryUtil.java (177)
    A inventory/src/main/java/bisq/inventory/InventoryWebServer.java (434)
    A inventory/src/main/java/bisq/inventory/RequestInfo.java (44)
    A inventory/src/main/resources/inv_btc_mainnet.seednodes (19)
    A inventory/src/main/resources/logback.xml (16)
    M p2p/src/main/java/bisq/network/p2p/P2PService.java (13)
    D p2p/src/main/java/bisq/network/p2p/inventory/GetInventoryRequestHandler.java (81)
    M p2p/src/main/java/bisq/network/p2p/network/Connection.java (31)
    M p2p/src/main/java/bisq/network/p2p/network/ConnectionListener.java (1)
    M p2p/src/main/java/bisq/network/p2p/network/Statistic.java (13)
    M p2p/src/main/java/bisq/network/p2p/peers/PeerManager.java (21)
    M proto/src/main/proto/pb.proto (2)
    M seednode/src/main/java/bisq/seednode/SeedNode.java (11)
    M seednode/src/main/java/bisq/seednode/SeedNodeMain.java (9)
    M settings.gradle (1)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/4680.patch
https://github.com/bisq-network/bisq/pull/4680.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/4680
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201021/8b603ee6/attachment-0001.html>


More information about the bisq-github mailing list