good morning!!!!

Skip to content
Snippets Groups Projects
  1. Apr 12, 2017
  2. Apr 06, 2017
    • Lewis Marshall's avatar
      swarm/api: refactor and improve HTTP API (#3773) · 71fdaa42
      Lewis Marshall authored
      This PR deprecates the file related RPC calls in favour of an improved HTTP API.
      
      The main aim is to expose a simple to use API which can be consumed by thin
      clients (e.g. curl and HTML forms) without the need for complex logic (e.g.
      manipulating prefix trie manifests).
      71fdaa42
    • Louis Holbrook's avatar
      cmd/swarm: allow uploading from stdin (#3744) · 0ec1104b
      Louis Holbrook authored
      - intended to be a swarm alternative to termbin.com
      - added --stdin flag to swarm executable. if set, swarm will
        read data from stdin and postRaw it.
      0ec1104b
  3. Apr 04, 2017
    • Lewis Marshall's avatar
      cmd/swarm, swarm/api/client: add HTTP API client and 'swarm ls' command (#3742) · b319f027
      Lewis Marshall authored
      This adds a swarm ls command which lists files and directories stored in a
      manifest. Rather than listing all files, it uses "directory prefixes" in case there are a
      lot of files in a manifest but you just want to traverse it.
      
      This also includes some refactoring to the tests and the introduction of a
      swarm/api/client package to make things easier to test.
      b319f027
  4. Mar 31, 2017
    • Felix Lange's avatar
      swarm/api: improve FUSE build constraints, logging and APIs (#3818) · 105b37f1
      Felix Lange authored
      * swarm/api: fix build/tests on unsupported platforms
      
      Skip FUSE tests if FUSE is unavailable and change build constraints so
      the 'lesser' platforms aren't mentioned explicitly. The test are
      compiled on all platforms to prevent regressions in _fallback.go
      
      Also gofmt -w -s because why not.
      
      * internal/web3ext: fix swarmfs wrappers
      
      Remove inputFormatter specifications so users get an error
      when passing the wrong number of arguments.
      
      * swarm/api: improve FUSE-related logging and APIs
      
      The API now returns JSON objects instead of strings.
      Log messages for invalid arguments are removed.
      105b37f1
  5. Mar 23, 2017
  6. Mar 22, 2017
    • Felix Lange's avatar
      all: import "context" instead of "golang.org/x/net/context" · c213fd1f
      Felix Lange authored
      There is no need to depend on the old context package now that the
      minimum Go version is 1.7. The move to "context" eliminates our weird
      vendoring setup. Some vendored code still uses golang.org/x/net/context
      and it is now vendored in the normal way.
      
      This change triggered new vet checks around context.WithTimeout which
      didn't fire with golang.org/x/net/context.
      c213fd1f
  7. Mar 18, 2017
  8. Mar 16, 2017
  9. Feb 28, 2017
    • Péter Szilágyi's avatar
      errs: kill it with fire · 7e3762fd
      Péter Szilágyi authored
      7e3762fd
    • Felix Lange's avatar
      all: unify big.Int zero checks, use common/math in more places (#3716) · 5f782627
      Felix Lange authored
      * common/math: optimize PaddedBigBytes, use it more
      
      name              old time/op    new time/op    delta
      PaddedBigBytes-8    71.1ns ± 5%    46.1ns ± 1%  -35.15%  (p=0.000 n=20+19)
      
      name              old alloc/op   new alloc/op   delta
      PaddedBigBytes-8     48.0B ± 0%     32.0B ± 0%  -33.33%  (p=0.000 n=20+20)
      
      * all: unify big.Int zero checks
      
      Various checks were in use. This commit replaces them all with Int.Sign,
      which is cheaper and less code.
      
      eg templates:
      
          func before(x *big.Int) bool { return x.BitLen() == 0 }
          func after(x *big.Int) bool  { return x.Sign() == 0 }
      
          func before(x *big.Int) bool { return x.BitLen() > 0 }
          func after(x *big.Int) bool  { return x.Sign() != 0 }
      
          func before(x *big.Int) int { return x.Cmp(common.Big0) }
          func after(x *big.Int) int  { return x.Sign() }
      
      * common/math, crypto/secp256k1: make ReadBits public in package math
      5f782627
  10. Feb 27, 2017
  11. Feb 23, 2017
  12. Feb 17, 2017
  13. Feb 13, 2017
    • Viktor Trón's avatar
      swarm/network: fix chunk integrity checks (#3665) · e23e8692
      Viktor Trón authored
      * swarm/network: integrity on incoming known chunks
      * swarm/network: fix integrity check for incoming chunks
      * swarm/storage: imrpoved integrity checking on chunks
      * dbstore panics on corrupt chunk entry an prompts user to run cleandb
      * memstore adds logging for garbage collection
      * dbstore refactor item delete. correct partial deletes in Get
      * cmd/swarm: added cleandb subcommand
      e23e8692
  14. Feb 08, 2017
  15. Jan 30, 2017
  16. Jan 27, 2017
    • Louis Holbrook's avatar
      cmd/swarm, swarm/api: bzzr improve + networkid prio · 7669c5b5
      Louis Holbrook authored
      fixes #3444
      fixes #3494
      networkid override
      
      Added comments to explain why test against 0 appears twice
      
      * Command line overrides saved config, saved config overrides system default
      
      ---
      
      fixes #3476
      bzzr get with path
      
      Finally a hopefully clean commit for this PR
      Added check for empty path to avoid SIGSEGV in path parser and resolver
      Added requested tests for empty path and non-existing manifest.
      However signature for StartHTTPServer had changed.
      Now it's hacked as so:
      
      	StartHttpServer(api.API, &Server{Addr: "127.0.0.1:8504", CorsString: ""})
      
      * Parse url before resolve when path and ENS is supplied, example
      * swarm/api/http proxy server test for retrieval of subpath through get
      * Removed nil entry assignment on subtrie leaf in recursive key retrieval
      * Cleaned up path-or-no-path condition in proxy server get handler
      * swarm: processed with gofmt refers to lash/go-ethereum@90daa7a
      * swarm: Added public access method Parse alias to parse
      * swarm: processed with gofmt References nolash/go-ethereum@2ec3fd7
      * Rename parse to Parse, removed alias
      7669c5b5
  17. Jan 17, 2017
  18. Jan 09, 2017
  19. Jan 06, 2017
  20. Jan 05, 2017
  21. Dec 21, 2016
  22. Dec 13, 2016
  23. Dec 01, 2016
  24. Nov 28, 2016
    • Viktor Trón's avatar
      cmd/bzzd: swarm daemon fixes (#3359) · e949a2ed
      Viktor Trón authored
      * cmd/bzzd: add missing p2p/discovery flags
      * cmd/bzzd: fix two bugs crashing bzzd if bootnodes flag given
      * cmd/bzzd: make no swap default, renamed flag bzznoswap->bzzswap
      * internal/web3ext: correct methods for bzz IPC module
      * cmd/bzzd: ethapi param not mandatory. Warning if no blockchain
      * cmd/bzzd: correct default IPC modules in help string
      * cmd/utils: fix help description for networkId - add Ropsten
      * cmd/bzz, swarm/api, swarm/network: add swarm networkId flag
      * cmd/bzzd: change nosync flag to sync and BootTFlag
      e949a2ed
  25. Nov 25, 2016
  26. Nov 22, 2016
  27. Nov 10, 2016
  28. Nov 09, 2016
  29. Nov 01, 2016
Loading