1. 12 10月, 2018 6 次提交
    • V
      swarm/network/stream: generalise setting of next batch (#17818) · 6566a0a3
      Viktor Trón 提交于
      * swarm/network/stream: generalize SetNextBatch and add Server SessionIndex
      
      * swarm/network/stream: fix a typo in comment
      
      * swarm/network/stream: remove live argument from NewSwarmSyncerServer
      6566a0a3
    • L
      swarm/storage: Add accessCnt for GC (#17845) · dc3c3fb1
      lash 提交于
      dc3c3fb1
    • L
      cmd/swarm: Smoke test for Swarm Feed (#17892) · 862d6f2f
      lash 提交于
      862d6f2f
    • E
    • F
      p2p, p2p/discover: add signed ENR generation (#17753) · 6f607de5
      Felix Lange 提交于
      This PR adds enode.LocalNode and integrates it into the p2p
      subsystem. This new object is the keeper of the local node
      record. For now, a new version of the record is produced every
      time the client restarts. We'll make it smarter to avoid that in
      the future.
      
      There are a couple of other changes in this commit: discovery now
      waits for all of its goroutines at shutdown and the p2p server
      now closes the node database after discovery has shut down. This
      fixes a leveldb crash in tests. p2p server startup is faster
      because it doesn't need to wait for the external IP query
      anymore.
      6f607de5
    • F
      p2p/simulations: fix a deadlock and clean up adapters (#17891) · dcae0d34
      Felix Lange 提交于
      This fixes a rare deadlock with the inproc adapter:
      
      - A node is stopped, which acquires Network.lock.
      - The protocol code being simulated (swarm/network in my case)
        waits for its goroutines to shut down.
      - One of those goroutines calls into the simulation to add a peer,
        which waits for Network.lock.
      
      The fix for the deadlock is really simple, just release the lock
      before stopping the simulation node.
      
      Other changes in this PR clean up the exec adapter so it reports
      node startup errors better and remove the docker adapter because
      it just adds overhead.
      
      In the exec adapter, node information is now posted to a one-shot
      server. This avoids log parsing and allows reporting startup
      errors to the simulation host.
      
      A small change in package node was needed because simulation
      nodes use port zero. Node.{HTTP,WS}Endpoint now return the live
      endpoints after startup by checking the TCP listener.
      dcae0d34
  2. 10 10月, 2018 2 次提交
  3. 09 10月, 2018 8 次提交
  4. 08 10月, 2018 8 次提交
  5. 06 10月, 2018 4 次提交
  6. 05 10月, 2018 6 次提交
  7. 04 10月, 2018 6 次提交