aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
Commit message (Collapse)AuthorAgeFilesLines
* build: enable unconvert linter (#15456)ferhat elmas2017-11-111-3/+3
| | | | | | | | | * build: enable unconvert linter - fixes #15453 - update code base for failing cases * cmd/puppeth: replace syscall.Stdin with os.Stdin.Fd() for unconvert linter
* all: gofmt -w -s (#15419)ferhat elmas2017-11-081-19/+19
|
* core, swarm: typo fixesferhat elmas2017-10-302-2/+2
|
* swarm/api: fixed 404 handling on missing default entry (#15139)holisticode2017-10-066-39/+311
|
* swarm/api/http: add error pages (#14967)holisticode2017-09-096-20/+662
|
* swarm: fix megacheck warningsEgon Elbre2017-08-144-13/+12
|
* swarm/api: make api.NewManifest synchronous (#14880)Lewis Marshall2017-07-311-1/+1
| | | | | Previously, NewManifest was asynchronous so subsequent code which tried to use the returned manifest could error as the manifest was not yet persisted.
* swarm/api/http: redirect root manifest requests to include trailing slash ↵Lewis Marshall2017-07-252-0/+68
| | | | (#14806)
* cmd/swarm: Support using Mainnet for resolving ENS namesLewis Marshall2017-06-261-6/+3
| | | | Signed-off-by: Lewis Marshall <lewis@lmars.net>
* accounts/keystore, crypto: enforce 256 bit keys on importPéter Szilágyi2017-05-231-1/+4
|
* swarm/api: Fix adding paths which exist as manifests (#14482)Lewis Marshall2017-05-222-2/+35
| | | Signed-off-by: Lewis Marshall <lewis@lmars.net>
* cmd/swarm: Add --httpaddr flag (#14475)Lewis Marshall2017-05-223-9/+12
| | | | | Fixes #14474. Signed-off-by: Lewis Marshall <lewis@lmars.net>
* swarm/api: fix error reporting in api.Resolve (#14464)Lewis Marshall2017-05-133-21/+148
| | | | | | | Previously, resolve errors were being swallowed and the returned error was a generic "not a content hash" which isn't helpful. This updates the Resolve function to fail fast rather than only returning an error at the end, and also adds test coverage.
* all: update license informationFelix Lange2017-04-145-19/+19
|
* swarm/api: better name resolver handling (#3754)holisticode2017-04-132-13/+43
| | | Fixes #3608
* swarm/api: FUSE read-write support (#13872)Zahoor Mohamed2017-04-129-595/+195
| | | | | | | | - Moved fuse related code in a new package, swarm/fuse - Added write support - Create new files - Delete existing files - Append to files (with limitations) - More test coverage
* swarm/api: refactor and improve HTTP API (#3773)Lewis Marshall2017-04-0716-578/+1686
| | | | | | | 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).
* cmd/swarm: allow uploading from stdin (#3744)Louis Holbrook2017-04-061-1/+25
| | | | | | - 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.
* cmd/swarm, swarm/api/client: add HTTP API client and 'swarm ls' command (#3742)Lewis Marshall2017-04-054-62/+435
| | | | | | | | 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.
* swarm/api: improve FUSE build constraints, logging and APIs (#3818)Felix Lange2017-03-315-144/+105
| | | | | | | | | | | | | | | | | | | | * 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.
* swarm/api: support mounting manifests via FUSE (#3690)Zahoor Mohamed2017-03-235-0/+623
|
* rpc: add support for extended headers in CORS requests (#3783)Micah Zoltu2017-03-161-0/+1
| | | | Fixes #3762. Details about parameter: https://github.com/rs/cors/blob/a62a804a8a009876ca59105f7899938a1349f4b3/cors.go#L50-L54
* eth, les, swarm: fix go vet issues sufraced by log15Péter Szilágyi2017-02-231-1/+1
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-236-70/+60
|
* swarm: remove superfluous line break in log statementsPéter Szilágyi2017-02-231-8/+4
|
* swarm/api/http: fix go vet issue on Go 1.8Péter Szilágyi2017-02-171-0/+3
|
* swarm/api/http: add missing copyright headerPéter Szilágyi2017-01-301-0/+16
|
* cmd/swarm, swarm/api: bzzr improve + networkid prionolash2017-01-275-13/+168
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* cmd,eth,les,internal: remove natspec supportBas van Kervel2017-01-171-3/+1
|
* all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-094-20/+30
| | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* swarm/api/http: add support for CORS headers (#3388)Maran2017-01-051-3/+23
|
* swarm/http: check error returned by reader.Size (#3470)Aron Fischer2016-12-221-1/+13
|
* swarm/api: check for zero length manifest error (#3468)Aron Fischer2016-12-221-0/+5
|
* swarm/api: Update ENS root address for Ropsten & prod (#3391)Nick Johnson2016-12-022-5/+4
|
* cmd/bzzd: swarm daemon fixes (#3359)Viktor Trón2016-11-282-4/+7
| | | | | | | | | | | | * 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
* common/httpclient, les: removed httpclientJeffrey Wilcke2016-11-251-6/+4
|
* swarm/api/http: reject requests without content-lengthFelix Lange2016-11-111-1/+5
|
* swarm/api: add bzz prefix to swarm directoryFelix Lange2016-11-112-12/+7
|
* core, core/vm: added gas price variance tableJeffrey Wilcke2016-10-151-1/+1
| | | | | | | | | | | | | This implements 1b & 1c of EIP150 by adding a new GasTable which must be returned from the RuleSet config method. This table is used to determine the gas prices for the current epoch. Please note that when the CreateBySuicide gas price is set it is assumed that we're in the new epoch phase. In addition this PR will serve as temporary basis while refactorisation in being done in the EVM64 PR, which will substentially overhaul the gas price code.
* swarm: plan bee for content storage and distribution on web3ΞTHΞЯSPHΞЯΞ2016-08-3117-0/+2057
This change imports the Swarm protocol codebase. Compared to the 'swarm' branch, a few mostly cosmetic changes had to be made: * The various redundant log message prefixes are gone. * All files now have LGPLv3 license headers. * Minor code changes were needed to please go vet and make the tests pass on Windows. * Further changes were required to adapt to the go-ethereum develop branch and its new Go APIs. Some code has not (yet) been brought over: * swarm/cmd/bzzhash: will reappear as cmd/bzzhash later * swarm/cmd/bzzup.sh: will be reimplemented in cmd/bzzup * swarm/cmd/makegenesis: will reappear somehow * swarm/examples/album: will move to a separate repository * swarm/examples/filemanager: ditto * swarm/examples/files: will not be merged * swarm/test/*: will not be merged * swarm/services/swear: will reappear as contracts/swear when needed