1. 30 1月, 2019 3 次提交
  2. 29 1月, 2019 1 次提交
    • A
      cmd/utils: allow for multiple influxdb tags (#18520) · 21acf0bc
      Anton Evangelatov 提交于
      This PR is replacing the metrics.influxdb.host.tag cmd-line flag with metrics.influxdb.tags - a comma-separated key/value tags, that are passed to the InfluxDB reporter, so that we can index measurements with multiple tags, and not just one host tag.
      
      This will be useful for Swarm, where we want to index measurements not just with the host tag, but also with bzzkey and git commit version (for long-running deployments).
      21acf0bc
  3. 28 1月, 2019 1 次提交
  4. 26 1月, 2019 1 次提交
  5. 25 1月, 2019 3 次提交
  6. 24 1月, 2019 4 次提交
  7. 21 1月, 2019 1 次提交
  8. 19 1月, 2019 1 次提交
  9. 17 1月, 2019 4 次提交
    • F
      19bfcbf9
    • F
      swarm/network: fix data race in stream.(*Peer).handleOfferedHashesMsg() (#18468) · 4f8ec445
      Ferenc Szabo 提交于
      * swarm/network: fix data race in stream.(*Peer).handleOfferedHashesMsg()
      
      handleOfferedHashesMsg() contained a data race:
      - read => in a goroutine, call to c.batchDone()
      - write => in the main thread, write to c.sessionAt
      
      c.batchDone() contained a call to c.AddInterval(). Client was a value
      receiver for AddInterval. So on c.AddInterval() call the whole client
      struct got copied (read) while one of its field was modified in
      handleOfferedHashesMsg() (write).
      
      fixes ethersphere/go-ethereum#1086
      
      * swarm/network: simplify some trivial statements
      4f8ec445
    • E
      81e26d5a
    • V
      swarm/network: rewrite of peer suggestion engine, fix skipped tests (#18404) · bcb25941
      Viktor Trón 提交于
      * swarm/network: fix skipped tests related to suggestPeer
      
      * swarm/network: rename depth to radius
      
      * swarm/network: uncomment assertHealth and improve comments
      
      * swarm/network: remove commented code
      
      * swarm/network: kademlia suggestPeer algo correction
      
      * swarm/network: kademlia suggest peer
      
       * simplify suggest Peer code
       * improve peer suggestion algo
       * add comments
       * kademlia testing improvements
         * assertHealth -> checkHealth (test helper)
         * testSuggestPeer -> checkSuggestPeer (test helper)
         * remove testSuggestPeerBug and TestKademliaCase
      
      * swarm/network: kademlia suggestPeer cleanup, improved comments
      
      * swarm/network: minor comment, discovery test default arg
      bcb25941
  10. 16 1月, 2019 5 次提交
  11. 15 1月, 2019 1 次提交
  12. 12 1月, 2019 1 次提交
  13. 11 1月, 2019 2 次提交
    • H
      Stream subscriptions (#18355) · 88168ff5
      holisticode 提交于
      * swarm/network: eachBin now starts at kaddepth for nn
      
      * swarm/network: fix Kademlia.EachBin
      
      * swarm/network: fix kademlia.EachBin
      
      * swarm/network: correct EachBin implementation according to requirements
      
      * swarm/network: less addresses simplified tests
      
      * swarm: calc kad depth outside loop in EachBin test
      
      * swarm/network: removed printResults
      
      * swarm/network: cleanup imports
      
      * swarm/network: remove kademlia.EachBin; fix RequestSubscriptions and add unit test
      
      * swarm/network/stream: address PR comments
      
      * swarm/network/stream: package-wide subscriptionFunc
      
      * swarm/network/stream: refactor to kad.EachConn
      88168ff5
    • F
      p2p/simulations: eliminate concept of pivot (#18426) · 2eb838ed
      Ferenc Szabo 提交于
      2eb838ed
  14. 10 1月, 2019 2 次提交
  15. 09 1月, 2019 1 次提交
    • J
      swarm: Fix T.Fatal inside a goroutine in tests (#18409) · d70c4faf
      Janoš Guljaš 提交于
      * swarm/storage: fix T.Fatal inside a goroutine
      
      * swarm/network/simulation: fix T.Fatal inside a goroutine
      
      * swarm/network/stream: fix T.Fatal inside a goroutine
      
      * swarm/network/simulation: consistent failures in TestPeerEventsTimeout
      
      * swarm/network/simulation: rename sendRunSignal to triggerSimulationRun
      d70c4faf
  16. 08 1月, 2019 1 次提交
    • H
      swarm, p2p/protocols: Stream accounting (#18337) · ae857e74
      holisticode 提交于
      * swarm: completed 1st phase of swap accounting
      
      * swarm, p2p/protocols: added stream pricing
      
      * swarm/network/stream: gofmt simplify stream.go
      
      * swarm: fixed review comments
      
      * swarm: used snapshots for swap tests
      
      * swarm: custom retrieve for swap (less cascaded requests at any one time)
      
      * swarm: addressed PR comments
      
      * swarm: log output formatting
      
      * swarm: removed parallelism in swap tests
      
      * swarm: swap tests simplification
      
      * swarm: removed swap_test.go
      
      * swarm/network/stream: added prefix space for comments
      
      * swarm/network/stream: unit test for prices
      
      * swarm/network/stream: don't hardcode price
      
      * swarm/network/stream: fixed invalid price check
      ae857e74
  17. 07 1月, 2019 2 次提交
  18. 06 1月, 2019 1 次提交
    • F
      A few minor code inspection fixes (#18393) · fe03b76f
      Ferenc Szabo 提交于
      * swarm/network: fix code inspection problems
      
      - typos
      - redundant import alias
      
      * p2p/simulations: fix code inspection problems
      
      - typos
      - unused function parameters
      - redundant import alias
      - code style issue: snake case
      
      * swarm/network: fix unused method parameters inspections
      fe03b76f
  19. 04 1月, 2019 1 次提交
  20. 03 1月, 2019 2 次提交
  21. 24 12月, 2018 1 次提交
  22. 22 12月, 2018 1 次提交
    • L
      swarm/network: Revised depth and health for Kademlia (#18354) · 5e4fd8e7
      lash 提交于
      * swarm/network: Revised depth calculation with tests
      
      * swarm/network: WIP remove redundant "full" function
      
      * swarm/network: WIP peerpot refactor
      
      * swarm/network: Make test methods submethod of peerpot and embed kad
      
      * swarm/network: Remove commented out code
      
      * swarm/network: Rename health test functions
      
      * swarm/network: Too many n's
      
      * swarm/network: Change hive Healthy func to accept addresses
      
      * swarm/network: Add Healthy proxy method for api in hive
      
      * swarm/network: Skip failing test out of scope for PR
      
      * swarm/network: Skip all tests dependent on SuggestPeers
      
      * swarm/network: Remove commented code and useless kad Pof member
      
      * swarm/network: Remove more unused code, add counter on depth test errors
      
      * swarm/network: WIP Create Healthy assertion tests
      
      * swarm/network: Roll back health related methods receiver change
      
      * swarm/network: Hardwire network minproxbinsize in swarm sim
      
      * swarm/network: Rework Health test to strict
      
      Pending add test for saturation
      And add test for as many as possible up to saturation
      
      * swarm/network: Skip discovery tests (dependent on SuggestPeer)
      
      * swarm/network: Remove useless minProxBinSize in stream
      
      * swarm/network: Remove unnecessary testing.T param to assert health
      
      * swarm/network: Implement t.Helper() in checkHealth
      
      * swarm/network: Rename check back to assert now that we have helper magic
      
      * swarm/network: Revert WaitTillHealthy change (deferred to nxt PR)
      
      * swarm/network: Kademlia tests GotNN => ConnectNN
      
      * swarm/network: Renames and comments
      
      * swarm/network: Add comments
      5e4fd8e7