1. 23 7月, 2018 8 次提交
    • J
      swarm/storage/mru: Client-side MRU signatures (#784) · 427316a7
      Javier Peletier 提交于
      * swarm/storage/mru: Add embedded publickey and remove ENS dep
      
      This commit breaks swarm, swarm/api...
      but tests in swarm/storage/mru pass
      
      * swarm: Refactor swarm, swarm/api to mru changes, make tests pass
      
      * swarm/storage/mru: Remove self from recv, remove test ens vldtr
      
      * swarm/storage/mru: Remove redundant test, expose ResourceHash mthd
      
      * swarm/storage/mru: Make HeaderGetter mandatory + godoc fixes
      
      * swarm/storage: Remove validator prefix for metadata chunk
      
      * swarm/storage/mru: Use Address instead of PublicKey
      
      * swarm/storage/mru: Change index from name to metadata chunk addr
      
      * swarm/storage/mru: Refactor swarm/api/... to MRU index changes
      
      * swarm/storage/mru: Refactor cleanup
      
      * swarm/storage/mru: Rebase cleanup
      
      * swarm: Use constructor for GenericSigner MRU in swarm.go
      
      * swarm/storage: Change to BMTHash for MRU hashing
      
      * swarm/storage: Reduce loglevel on chunk validator logs
      
      * swarm/storage/mru: Delint
      
      * swarm: MRU Rebase cleanup
      
      * swarm/storage/mru: client-side mru signatures
      
      Rebase to PR #668 and fix all conflicts
      
      * swarm/storage/mru:  refactor and documentation
      
      * swarm/resource/mru: error-checking  tests for parseUpdate/newUpdateChunk
      
      * swarm/storage/mru: Added resourcemetadata tests
      
      * swarm/storage/mru: Added tests  for UpdateRequest
      
      * swarm/storage/mru: more test coverage for UpdateRequest and comments
      
      * swarm/storage/mru: Avoid fake chunks in parseUpdate()
      
      * swarm/storage/mru: Documented resource.go extensively
      
      moved some functions where they make most sense
      
      * swarm/storage/mru: increase test coverage for UpdateRequest and
      
      variable name changes throughout to increase consistency
      
      * swarm/storage/mru: moved default timestamp to NewCreateRequest-
      
      * swarm/storage/mru: lookup refactor
      
      * swarm/storage/mru: added comments and renamed raw flag to rawmru
      
      * swarm/storage/mru: fix receiver typo
      
      * swarm/storage/mru: refactored update chunk new/create
      
      * swarm/storage/mru:  refactored signature digest to avoid malleability
      
      * swarm/storage/mru: optimize update data serialization
      
      * swarm/storage/mru: refactor and cleanup
      
      * swarm/storage/mru: add timestamp struct and serialization
      
      * swarm/storage/mru: fix lint error and mark some old code for deletion
      
      * swarm/storage/mru: remove unnecessary variable
      
      * swarm/storage/mru: Added more comments throughout
      
      * swarm/storage/mru: Refactored metadata chunk layout + extensive error...
      
      * swarm/storage/mru: refactor cli parser
      Changed resource info output to JSON
      
      * swarm/storage/mru: refactor serialization for extensibility
      
      refactored error messages to NewErrorf
      
      * swarm/storage/mru: Moved Signature to resource_sign.
      Check Sign errors in server tests
      
      * swarm/storage/mru: Remove isSafeName() checks
      
      * swarm/storage/mru: scrubbed off all references to "block" for time
      
      * swarm/storage/mru: removed superfluous isSynced() call.
      
      * swarm/storage/mru: remove isMultihash() and ToSafeName functions
      
      * swarm/storage/mru: various fixes and comments
      
      * swarm/storage/mru: decoupled cli for independent create/update
      * Made resource name optional
      * Removed unused LookupPrevious
      
      * swarm/storage/mru: Decoupled resource create / update & refactor
      
      * swarm/storage/mru: Fixed some comments as per issues raised in PR #743
      
      * swarm/storage/mru: Cosmetic changes as per #743 comments
      
      * swarm/storage/mru: refct request encoder/decoder > marshal/unmarshal
      
      * swarm/storage/mru: Cosmetic changes as per review in #748
      
      * swarm/storage/mru: removed timestamp proof placeholder
      
      * swarm/storage/mru: cosmetic/doc/fixes changes as per comments in #704
      
      * swarm/storage/mru: removed unnecessary check in Handler.update
      
      * swarm/storage/mru: Implemented Marshaler/Unmarshaler iface in Request
      
      * swarm/storage/mru: Fixed linter error
      
      * swarm/storage/mru: removed redundant address in signature digest
      
      * swarm/storage/mru: fixed bug: LookupLatestVersionInPeriod not working
      
      * swarm/storage/mru: Unfold Request creation API for create or update+create
      set common time source for mru package
      
      * swarm/api/http: fix HandleGetResource error variable shadowed
      when requesting a resource that does not exist
      
      * swarm/storage/mru: Add simple check to detect duplicate updates
      
      * swarm/storage/mru: moved Multihash() to the right place.
      
      * cmd/swarm: remove unneeded clientaccountmanager.go
      
      * swarm/storage/mru: Changed some comments as per reviews in #784
      
      * swarm/storage/mru: Made SignedResourceUpdate.GetDigest() public
      
      * swarm/storage/mru: cosmetic changes as per comments in #784
      
      * cmd/swarm: Inverted --multihash flag default
      
      * swarm/storage/mru: removed Verify from SignedResourceUpdate.fromChunk
      
      * swarm/storage/mru: Moved validation code out of serializer
      Cosmetic / comment changes
      
      * swarm/storage/mru: Added unit tests for UpdateLookup
      
      * swarm/storage/mru: Increased coverage of metadata serialization
      
      * swarm/storage/mru: Increased test coverage of updateHeader serializers
      
      * swarm/storage/mru: Add resourceUpdate serializer test
      427316a7
    • E
      swarm/api/http: http package refactoring 1/5 and 2/5 · 0647c4de
      Elad 提交于
      0647c4de
    • J
      cmd/swarm: add implicit subcommand help (fix #786) (#788) · 7ddc2c9e
      Javier Peletier 提交于
      * cmd/swarm: add implicit subcommand help (fix #786)
      
      * cmd/swarm: moved implicit help to a recursive func
      7ddc2c9e
    • J
      swarm: network simulation for swarm tests (#769) · dcaaa3c8
      Janoš Guljaš 提交于
      * cmd/swarm: minor cli flag text adjustments
      
      * cmd/swarm, swarm/storage, swarm: fix  mingw on windows test issues
      
      * cmd/swarm: support for smoke tests on the production swarm cluster
      
      * cmd/swarm/swarm-smoke: simplify cluster logic as per suggestion
      
      * changed colour of landing page
      
      * landing page reacts to enter keypress
      
      * swarm/api/http: sticky footer for swarm landing page using flex
      
      * swarm/api/http: sticky footer for error pages and fix for multiple choices
      
      * swarm: propagate ctx to internal apis (#754)
      
      * swarm/simnet: add basic node/service functions
      
      * swarm/netsim: add buckets for global state and kademlia health check
      
      * swarm/netsim: Use sync.Map as bucket and provide cleanup function for...
      
      * swarm, swarm/netsim: adjust SwarmNetworkTest
      
      * swarm/netsim: fix tests
      
      * swarm: added visualization option to sim net redesign
      
      * swarm/netsim: support multiple services per node
      
      * swarm/netsim: remove redundant return statement
      
      * swarm/netsim: add comments
      
      * swarm: shutdown HTTP in Simulation.Close
      
      * swarm: sim HTTP server timeout
      
      * swarm/netsim: add more simulation methods and peer events examples
      
      * swarm/netsim: add WaitKademlia example
      
      * swarm/netsim: fix comments
      
      * swarm/netsim: terminate peer events goroutines on simulation done
      
      * swarm, swarm/netsim: naming updates
      
      * swarm/netsim: return not healthy kademlias on WaitTillHealthy
      
      * swarm: fix WaitTillHealthy call in testSwarmNetwork
      
      * swarm/netsim: allow bucket to have any type for a key
      
      * swarm: Added snapshots to new netsim
      
      * swarm/netsim: add more tests for bucket
      
      * swarm/netsim: move http related things into separate files
      
      * swarm/netsim: add AddNodeWithService option
      
      * swarm/netsim: add more tests and Start* methods
      
      * swarm/netsim: add peer events and kademlia tests
      
      * swarm/netsim: fix some tests flakiness
      
      * swarm/netsim: improve random nodes selection, fix TestStartStop* tests
      
      * swarm/netsim: remove time measurement from TestClose to avoid flakiness
      
      * swarm/netsim: builder pattern for netsim HTTP server (#773)
      
      * swarm/netsim: add connect related tests
      
      * swarm/netsim: add comment for TestPeerEvents
      
      * swarm: rename netsim package to network/simulation
      dcaaa3c8
    • L
      swarm/fuse: Hotfix missing parantheses in statement · f5b128a5
      lash 提交于
      f5b128a5
    • V
      swarm/bmt: async section writer interface to BMT (#778) · fd982d3f
      Viktor Trón 提交于
      - AsyncHasher implements AsyncWriter interface
       - add extra level for zerohashes in pool to lookup empty data hash
       - remove unused segment, hash and depth fields from Tree
       - Hash pkg function -> syncHash moved to test
       - add asyncHash helper func to tests using shuffle
       - add TestAsyncCorrectness to tests
       - add BenchmarkBMTAsync to tests
       - refactor benchmarks using subbenchmarks
       - improved comments
       - preinitialise base hashers on the nodes
      fd982d3f
    • E
      eth/tracers: fix noop tracer (#17220) · 526abe27
      emile 提交于
      526abe27
    • C
      rpc: fix missing parentheses in doc (#17224) · 8997efe3
      cong 提交于
      8997efe3
  2. 19 7月, 2018 1 次提交
  3. 18 7月, 2018 3 次提交
  4. 16 7月, 2018 4 次提交
  5. 15 7月, 2018 1 次提交
  6. 14 7月, 2018 1 次提交
  7. 13 7月, 2018 2 次提交
  8. 12 7月, 2018 3 次提交
  9. 11 7月, 2018 1 次提交
  10. 09 7月, 2018 7 次提交
  11. 05 7月, 2018 2 次提交
  12. 04 7月, 2018 3 次提交
  13. 03 7月, 2018 4 次提交
    • P
      Merge pull request #17111 from karalabe/trie-memleak · 67a78571
      Péter Szilágyi 提交于
      trie: fix a temporary memory leak in the memcache
      67a78571
    • F
      p2p/discover: move bond logic from table to transport (#17048) · c73b654f
      Felix Lange 提交于
      * p2p/discover: move bond logic from table to transport
      
      This commit moves node endpoint verification (bonding) from the table to
      the UDP transport implementation. Previously, adding a node to the table
      entailed pinging the node if needed. With this change, the ping-back
      logic is embedded in the packet handler at a lower level.
      
      It is easy to verify that the basic protocol is unchanged: we still
      require a valid pong reply from the node before findnode is accepted.
      
      The node database tracked the time of last ping sent to the node and
      time of last valid pong received from the node. Node endpoints are
      considered verified when a valid pong is received and the time of last
      pong was called 'bond time'. The time of last ping sent was unused. In
      this commit, the last ping database entry is repurposed to mean last
      ping _received_. This entry is now used to track whether the node needs
      to be pinged back.
      
      The other big change is how nodes are added to the table. We used to add
      nodes in Table.bond, which ran when a remote node pinged us or when we
      encountered the node in a neighbors reply. The transport now adds to the
      table directly after the endpoint is verified through ping. To ensure
      that the Table can't be filled just by pinging the node repeatedly, we
      retain the isInitDone check. During init, only nodes from neighbors
      replies are added.
      
      * p2p/discover: reduce findnode failure counter on success
      
      * p2p/discover: remove unused parameter of loadSeedNodes
      
      * p2p/discover: improve ping-back check and comments
      
      * p2p/discover: add neighbors reply nodes always, not just during init
      c73b654f
    • C
      9da128db
    • G
      core/vm: reuse bigint pools across transactions (#17070) · 4e5d1f1c
      Guillaume Ballet 提交于
      * core/vm: A pool for int pools
      
      * core/vm: fix rebase issue
      
      * core/vm: push leftover stack items after execution, not before
      4e5d1f1c