aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
Commit message (Collapse)AuthorAgeFilesLines
* Swarm MRUs: Adaptive frequency / Predictable lookups / API simplification ↵Javier Peletier2018-09-284-82/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#17559) * swarm/storage/mru: Adaptive Frequency swarm/storage/mru/lookup: fixed getBaseTime Added NewEpoch constructor swarm/api/client: better error handling in GetResource() swarm/storage/mru: Renamed structures. Renamed ResourceMetadata to ResourceID. Renamed ResourceID.Name to ResourceID.Topic swarm/storage/mru: Added binarySerializer interface and test tools swarm/storage/mru/lookup: Changed base time to time and + marshallers swarm/storage/mru: Added ResourceID (former resourceMetadata) swarm/storage/mru: Added ResourceViewId and serialization tests swarm/storage/mru/lookup: fixed epoch unmarshaller. Added Epoch Equals swarm/storage/mru: Fixes as per review comments cmd/swarm: reworded resource create/update help text regarding topic swarm/storage/mru: Added UpdateLookup and serializer tests swarm/storage/mru: Added UpdateHeader, serializers and tests swarm/storage/mru: changed UpdateAddr / epoch to Base() swarm/storage/mru: Added resourceUpdate serializer and tests swarm/storage/mru: Added SignedResourceUpdate tests and serializers swarm/storage/mru/lookup: fixed GetFirstEpoch bug swarm/storage/mru: refactor, comments, cleanup Also added tests for Topic swarm/storage/mru: handler tests pass swarm/storage/mru: all resource package tests pass swarm/storage/mru: resource test pass after adding timestamp checking support swarm/storage/mru: Added JSON serializers to ResourceIDView structures swarm/storage/mru: Sever, client, API test pass swarm/storage/mru: server test pass swarm/storage/mru: Added topic length check swarm/storage/mru: removed some literals, improved "previous lookup" test case swarm/storage/mru: some fixes and comments as per review swarm/storage/mru: first working version without metadata chunk swarm/storage/mru: Various fixes as per review swarm/storage/mru: client test pass swarm/storage/mru: resource query strings and manifest-less queries swarm/storage/mru: simplify naming swarm/storage/mru: first autofreq working version swarm/storage/mru: renamed ToValues to AppendValues swarm/resource/mru: Added ToValues / FromValues for URL query strings swarm/storage/mru: Changed POST resource to work with query strings. No more JSON. swarm/storage/mru: removed resourceid swarm/storage/mru: Opened up structures swarm/storage/mru: Merged Request and SignedResourceUpdate swarm/storage/mru: removed initial data from CLI resource create swarm/storage/mru: Refactor Topic as a direct fixed-length array swarm/storage/mru/lookup: Comprehensive GetNextLevel tests swarm/storage/mru: Added comments Added length checks in Topic swarm/storage/mru: fixes in tests and some code comments swarm/storage/mru/lookup: new optimized lookup algorithm swarm/api: moved getResourceView to api out of server swarm/storage/mru: Lookup algorithm working swarm/storage/mru: comments and renamed NewLookupParams Deleted commented code swarm/storage/mru/lookup: renamed Epoch.LaterThan to After swarm/storage/mru/lookup: Comments and tidying naming swarm/storage/mru: fix lookup algorithm swarm/storage/mru: exposed lookup hint removed updateheader swarm/storage/mru/lookup: changed GetNextEpoch for initial values swarm/storage/mru: resource tests pass swarm/storage/mru: valueSerializer interface and tests swarm/storage/mru/lookup: Comments, improvements, fixes, more tests swarm/storage/mru: renamed UpdateLookup to ID, LookupParams to Query swarm/storage/mru: renamed query receiver var swarm/cmd: MRU CLI tests * cmd/swarm: remove rogue fmt * swarm/storage/mru: Add version / header for future use * swarm/storage/mru: Fixes/comments as per review cmd/swarm: remove rogue fmt swarm/storage/mru: Add version / header for future use- * swarm/storage/mru: fix linter errors * cmd/swarm: Speeded up TestCLIResourceUpdate
* cmd/swarm: fail on SWARM_ENV_MAX_STREAM_PEER_SERVERS parsing errorJanos Guljas2018-09-271-2/+4
|
* Merge branch 'master' into max-stream-peer-serversJanos Guljas2018-09-2710-40/+64
|\
| * Merge pull request #17755 from JekaMas/implement-home-directory-expansionViktor Trón2018-09-272-3/+13
| |\ | | | | | | cmd/swarm: use expandPath for swarm cli path parameters
| | * cmd/swarm: use expandPath for swarm cli path parametersEvgeny Danienko2018-09-252-3/+13
| | |
| * | [ImgBot] optimizes images (#17741)Alpay Yildirim2018-09-266-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *Total -- 171.97kb -> 127.26kb (26%) /swarm/api/testdata/test0/img/logo.png -- 17.71kb -> 4.02kb (77.29%) /cmd/clef/sign_flow.png -- 35.54kb -> 20.27kb (42.98%) /cmd/clef/docs/qubes/qrexec-example.png -- 18.66kb -> 15.79kb (15.4%) /cmd/clef/docs/qubes/clef_qubes_http.png -- 13.97kb -> 11.95kb (14.44%) /cmd/clef/docs/qubes/clef_qubes_qrexec.png -- 19.79kb -> 17.03kb (13.91%) /cmd/clef/docs/qubes/qubes_newaccount-2.png -- 41.75kb -> 36.38kb (12.86%) /cmd/clef/docs/qubes/qubes_newaccount-1.png -- 24.55kb -> 21.82kb (11.11%)
| * | Add Clef UI to README.md (#17763)Chi Kei Chan2018-09-261-0/+1
| | |
| * | cmd/clef: added more details to the clef tutorial (#17759)Paul Berg2018-09-261-37/+50
| | | | | | | | | | | | | | | | | | * Added more details to the clef tutorial * Fixed last issues with the comments on the clef tutorial
* | | Merge branch 'master' into max-stream-peer-serversJanos Guljas2018-09-2515-86/+155
|\| |
| * | cmd/clef, signer: security fixes (#17554)Martin Holst Swende2018-09-252-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * signer: remove local path disclosure from extapi * signer: show more data in cli ui * rpc: make http server forward UA and Origin via Context * signer, clef/core: ui changes + display UA and Origin * signer: cliui - indicate less trust in remote headers, see https://github.com/ethereum/go-ethereum/issues/17637 * signer: prevent possibility swap KV-entries in aes_gcm storage, fixes #17635 * signer: remove ecrecover from external API * signer,clef: default reject instead of warn + valideate new passwords. fixes #17632 and #17631 * signer: check calldata length even if no ABI signature is present * signer: fix failing testcase * clef: remove account import from external api * signer: allow space in passwords, improve error messsage * signer/storage: fix typos
| * | Polished clef tutorial (#17745)Paul Berg2018-09-251-3/+3
| | |
| * | all: new p2p node representation (#17643)Felix Lange2018-09-257-23/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Package p2p/enode provides a generalized representation of p2p nodes which can contain arbitrary information in key/value pairs. It is also the new home for the node database. The "v4" identity scheme is also moved here from p2p/enr to remove the dependency on Ethereum crypto from that package. Record signature handling is changed significantly. The identity scheme registry is removed and acceptable schemes must be passed to any method that needs identity. This means records must now be validated explicitly after decoding. The enode API is designed to make signature handling easy and safe: most APIs around the codebase work with enode.Node, which is a wrapper around a valid record. Going from enr.Record to enode.Node requires a valid signature. * p2p/discover: port to p2p/enode This ports the discovery code to the new node representation in p2p/enode. The wire protocol is unchanged, this can be considered a refactoring change. The Kademlia table can now deal with nodes using an arbitrary identity scheme. This requires a few incompatible API changes: - Table.Lookup is not available anymore. It used to take a public key as argument because v4 protocol requires one. Its replacement is LookupRandom. - Table.Resolve takes *enode.Node instead of NodeID. This is also for v4 protocol compatibility because nodes cannot be looked up by ID alone. - Types Node and NodeID are gone. Further commits in the series will be fixes all over the the codebase to deal with those removals. * p2p: port to p2p/enode and discovery changes This adapts package p2p to the changes in p2p/discover. All uses of discover.Node and discover.NodeID are replaced by their equivalents from p2p/enode. New API is added to retrieve the enode.Node instance of a peer. The behavior of Server.Self with discovery disabled is improved. It now tries much harder to report a working IP address, falling back to 127.0.0.1 if no suitable address can be determined through other means. These changes were needed for tests of other packages later in the series. * p2p/simulations, p2p/testing: port to p2p/enode No surprises here, mostly replacements of discover.Node, discover.NodeID with their new equivalents. The 'interesting' API changes are: - testing.ProtocolSession tracks complete nodes, not just their IDs. - adapters.NodeConfig has a new method to create a complete node. These changes were needed to make swarm tests work. Note that the NodeID change makes the code incompatible with old simulation snapshots. * whisper/whisperv5, whisper/whisperv6: port to p2p/enode This port was easy because whisper uses []byte for node IDs and URL strings in the API. * eth: port to p2p/enode Again, easy to port because eth uses strings for node IDs and doesn't care about node information in any way. * les: port to p2p/enode Apart from replacing discover.NodeID with enode.ID, most changes are in the server pool code. It now deals with complete nodes instead of (Pubkey, IP, Port) triples. The database format is unchanged for now, but we should probably change it to use the node database later. * node: port to p2p/enode This change simply replaces discover.Node and discover.NodeID with their new equivalents. * swarm/network: port to p2p/enode Swarm has its own node address representation, BzzAddr, containing both an overlay address (the hash of a secp256k1 public key) and an underlay address (enode:// URL). There are no changes to the BzzAddr format in this commit, but certain operations such as creating a BzzAddr from a node ID are now impossible because node IDs aren't public keys anymore. Most swarm-related changes in the series remove uses of NewAddrFromNodeID, replacing it with NewAddr which takes a complete node as argument. ToOverlayAddr is removed because we can just use the node ID directly.
| * | cmd/faucet: cache internal state, avoid sync-trashing lesPéter Szilágyi2018-09-211-45/+67
| | |
| * | all: protect self-mined block during reorg (#17656)gary rong2018-09-201-1/+1
| | |
| * | core/vm: add switches to select evm+ewasm interpreters (#17687)Guillaume Ballet2018-09-203-0/+23
| | | | | | | | | | | | | | | Interpreter initialization is left to the PRs implementing them. Options for external interpreters are passed after a colon in the `--vm.ewasm` and `--vm.evm` switches.
| * | cmd/evm: EVM prestate initialization (#17685)Kevin2018-09-201-9/+16
| | | | | | | | | | | | | | | | | | * Bugfix #17216: evm loads prestate file properly now * code gofmted
| * | all: fix various comment typos (#17591)HackyMiner2018-09-201-1/+1
| | | | | | | | | | | | | | | | | | * swarm: fixed comment typo * eth: fixed comment typo * cmd/puppeth: fixed comment typo
| * | cmd/geth: typo export -> import (#17703)Wenbiao Zheng2018-09-191-2/+2
| |/
* / cmd/swarm, swarm: add stream peer servers limitJanos Guljas2018-09-242-21/+38
|/
* cmd/puppeth: fix comment typo (#17690)chenyufeng2018-09-181-1/+1
| | | | | | | | | | | | | | | | | | * ethdb: unified code comment style. * puppeth: it is unnecessary to alloc pre-funded to 256 addresses * Revert "puppeth: it is unnecessary to alloc pre-funded to 256 addresses" This reverts commit 5e04fbccf0b8aca85030af1779bb7a949033d9d8. * puppeth: fix comment typo * Revert "ethdb: unified code comment style." This reverts commit a581efb3f06a96fc7aec0bfae03c7b6d5a0c1a77. * cmd/puppeth: fix comment typo
* cmd/puppeth: fix comment typo (#17684)chenyufeng2018-09-171-1/+1
| | | | | | | | | | | | | | | | * ethdb: unified code comment style. * puppeth: it is unnecessary to alloc pre-funded to 256 addresses * Revert "puppeth: it is unnecessary to alloc pre-funded to 256 addresses" This reverts commit 5e04fbccf0b8aca85030af1779bb7a949033d9d8. * puppeth: fix comment typo * Revert "ethdb: unified code comment style." This reverts commit a581efb3f06a96fc7aec0bfae03c7b6d5a0c1a77.
* all: simplify s[:] to s where s is a slice (#17673)Emil2018-09-151-1/+1
|
* Merge pull request #17652 from YaoZengzeng/file-permissionMartin Holst Swende2018-09-141-3/+3
|\ | | | | cmd/clef: fix incorrect file permissions for secrets.dat
| * cmd/clef: fix incorrect file permissions for secrets.datYaoZengzeng2018-09-121-3/+3
| | | | | | | | Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn>
* | swarm: Chunk refactor (#17659)Balint Gabor2018-09-133-13/+13
| | | | | | | | | | | | Co-authored-by: Janos Guljas <janos@resenje.org> Co-authored-by: Balint Gabor <balint.g@gmail.com> Co-authored-by: Anton Evangelatov <anton.evangelatov@gmail.com> Co-authored-by: Viktor Trón <viktor.tron@gmail.com>
* | Merge pull request #17651 from ethersphere/wet-run-bugViktor Trón2018-09-121-1/+0
|\ \ | |/ |/| cmd/swarm: password threw on upload manifest
| * cmd/swarm: password threw on upload manifestElad2018-09-121-1/+0
| |
* | cmd/utils: typos in {Miner, MinerLegacy}GasPriceFlag (#17588)TColl2018-09-101-2/+2
| |
* | cmd/swarm: added password to ACT (#17598)Elad2018-09-073-127/+97
|/
* cmd/swarm: added publisher key assertion to act tests (#17471)Elad2018-09-052-4/+64
|
* whisper: add light mode check to handshake (#16725)b00ris2018-09-053-0/+11
|
* cmd/swarm: added scaling test for ACT manifests (#17496)Elad2018-09-041-6/+37
|
* cmd/ethkey: fix the README to match updated commands (#17332)Evangelos Pappas2018-09-041-3/+15
|
* cmd/faucet: remove trailing newline in password (#17558)dipingxian22018-09-041-1/+2
| | | Fixes #17557
* cmd/swarm: disable ACT tests on windows (#17536)Anton Evangelatov2018-08-291-0/+3
|
* cmd, core, eth, miner, params: configurable gas floor and ceilPéter Szilágyi2018-08-295-15/+32
|
* consensus, miner: stale block mining support (#17506)gary rong2018-08-283-2/+11
| | | | | | | | | | * consensus, miner: stale block supporting * consensus, miner: refactor seal signature * cmd, consensus, eth: add miner noverify flag * cmd, consensus, miner: polish
* all: remove the duplicate 'the' in annotations (#17509)Wenbiao Zheng2018-08-271-1/+1
|
* cmd, eth: clean up miner startup API, drop noop config fieldPéter Szilágyi2018-08-232-20/+6
|
* cmd, eth: apply default miner recommit setting (#17479)gary rong2018-08-221-1/+1
|
* cmd, core, miner: add --txpool.locals and priority miningPéter Szilágyi2018-08-223-0/+16
|
* cmd, eth, miner: make recommit configurable (#17444)gary rong2018-08-223-7/+17
| | | | | | | | | | | | * cmd, eth, miner: make recommit configurable * cmd, eth, les, miner: polish a bit * miner: filter duplicate sealing work * cmd: remove uncessary conversion * miner: avoid microptimization in favor of cleaner code
* cmd/puppeth: accept ssh identity in the server string (#17407)Nilesh Trivedi2018-08-202-26/+34
| | | | | | * cmd/puppeth: Accept identityfile in the server string with fallback to id_rsa * cmd/puppeth: code polishes + fix heath check double ports
* cmd/swarm: added swarm bootnodes (#17414)Elad2018-08-203-38/+98
|
* cmd/puppeth: fix nil panic on disconnected stats gatheringPéter Szilágyi2018-08-161-2/+10
|
* cmd/swarm, swarm: added access control functionality (#17404)Elad2018-08-157-34/+929
| | | | | Co-authored-by: Janos Guljas <janos@resenje.org> Co-authored-by: Anton Evangelatov <anton.evangelatov@gmail.com> Co-authored-by: Balint Gabor <balint.g@gmail.com>
* cmd: polish miner flags, deprecate olds, add upgrade pathPéter Szilágyi2018-08-155-60/+102
|
* Merge pull request #17347 from karalabe/miner-notifyPéter Szilágyi2018-08-133-5/+13
|\ | | | | cmd, consensus/ethash, eth: miner push notifications
| * cmd, consensus/ethash, eth: miner push notificationsPéter Szilágyi2018-08-103-5/+13
| |
* | Manifest cli fix and upload defaultpath only once (#17375)Janoš Guljaš2018-08-105-128/+787
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd/swarm: fix manifest subcommands and add tests * cmd/swarm: manifest update: update default entry for non-encrypted uploads * swarm/api: upload defaultpath file only once * swarm/api/client: improve UploadDirectory default path handling * cmd/swarm: support absolute and relative default path values * cmd/swarm: fix a typo in test * cmd/swarm: check encrypted uploads in manifest update tests
* | cmd/swarm: solve rare cases of using the same random port in tests (#17352)Janoš Guljaš2018-08-092-19/+131
| |
* | cmd/swarm: disable TestCLISwarmFs fuse test on darwin (#17340)Janoš Guljaš2018-08-091-6/+6
| |
* | cmd/swarm: remove shadow err (#17360)Anton Evangelatov2018-08-091-2/+3
|/
* swarm: Added lightnode flag (#17291)Attila Gazso2018-08-072-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | * swarm: Added lightnode flag Added --lightnode command line parameter Added LightNode to Handshake message * swarm/config: Fixed variable naming * cmd/swarm: Changed BoolTFlag to BoolFlag for SwarmLightNodeEnabled * swarm/network: Changed logging * swarm/network: Changed protocol version testing * swarm/network: Renamed DefaultNetworkID variable to TestProtocolNetworkID * swarm/network: Bumped protocol version * swarm/network: Changed LightNode handhsake test to table driven * swarm/network: Changed back TestProtocolVersion to 5 for now * swarm/network: Moved the test configuration inside the test function scope
* cmd/swarm, swarm: various test fixes (#17299)Janoš Guljaš2018-08-062-1/+6
| | | | | | | | | | | | * swarm/network/simulation: increase the sleep duration for TestRun * cmd/swarm, swarm: fix failing tests on mac * cmd/swarm: update TestCLISwarmFs skip comment * swarm/network/simulation: adjust disconnections on simulation close * swarm/network/simulation: call cleanups after net shutdown
* Merge pull request #17311 from karalabe/puppeth-graceful-stopPéter Szilágyi2018-08-037-17/+17
|\ | | | | cmd/puppeth: graceful shutdown on redeploys
| * cmd/puppeth: graceful shutdown on redeploysPéter Szilágyi2018-08-037-17/+17
| |
* | consensus/ethash: move remote agent logic to ethash internal (#15853)gary rong2018-08-031-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | * consensus/ethash: start remote ggoroutine to handle remote mining * consensus/ethash: expose remote miner api * consensus/ethash: expose submitHashrate api * miner, ethash: push empty block to sealer without waiting execution * consensus, internal: add getHashrate API for ethash * consensus: add three method for consensus interface * miner: expose consensus engine running status to miner * eth, miner: specify etherbase when miner created * miner: commit new work when consensus engine is started * consensus, miner: fix some logics * all: delete useless interfaces * consensus: polish a bit
* Revert "cmd/evm: change error msg output to stderr (#17118)"Péter Szilágyi2018-08-025-23/+22
| | | | This reverts commit fb9f7261ec51e38eedb454594fc19f00de1a6834.
* rpc: make HTTP RPC timeouts configurable, raise defaults (#17240)Ryan Schneider2018-07-311-1/+1
| | | | | | | | | | | | | | | | * rpc: Make HTTP server timeout values configurable * rpc: Remove flags for setting HTTP Timeouts, configuring via .toml is sufficient. * rpc: Replace separate constants with a single default struct. * rpc: Update HTTP Server Read and Write Timeouts to 30s. * rpc: Remove redundant NewDefaultHTTPTimeouts function. * rpc: document HTTPTimeouts. * rpc: sanitize timeout values for library use
* cmd/evm: change error msg output to stderr (#17118)Chen Quan2018-07-315-22/+23
| | | | | | * cmd/evm: change error msg output to stderr * cmd/evm: fix some linter error
* Merge pull request #17281 from karalabe/puppeth-cachewarn-fixPéter Szilágyi2018-07-301-1/+1
|\ | | | | cmd/puppeth: force tiny memory for geth attach in id lookup
| * cmd/puppeth: force tiny memory for geth attach in id lookupPéter Szilágyi2018-07-301-1/+1
| |
* | cmd/puppeth: split banned ethstats addresses over columnsPéter Szilágyi2018-07-302-11/+17
|/
* build: rename swarm deb package to ethereum-swarm; change swarm deb version ↵Anton Evangelatov2018-07-307-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | from 1.8.x to 0.3.x (#16988) * build: add support for different package and binary names * build: bump up copyright date * build: change default PackageName to empty string * build, internal, swarm: enhance build/release process * build: hack ethereum-swarm as a "depends" in deb package * build/ci: remove redundant variables * build, cmd, mobile, params, swarm: remove VERSION file; rename Version to VersionMeta; * internal: remove VERSION() method which reads VERSION file * build: fix VersionFilePath to Version * Makefile: remove clean_go_build_cache.sh until it works * Makefile: revert removal of clean_go_build_cache.sh
* core: report progress on log chain exports (#17066)Raghav Sood2018-07-261-1/+2
| | | | | | * core/blockchain: export progress * core: polish up chain export progress report a bit
* cmd: prevent accidental invalid commands (#17248)a e r t h2018-07-262-2/+4
| | | | | | * cmd: stop parsing bootnodes if one is invalid * cmd/geth: require valid command as argument (or no arg)
* cmd/utils: fix comment typo (#17249)Sarlor2018-07-261-1/+1
| | | cmd: Comment error
* Merge pull request #17231 from ethersphere/developViktor Trón2018-07-242-0/+263
|\ | | | | swarm: client-side MRU signatures ; BMT fixes ; network simulation tests
| * swarm/storage/mru: Client-side MRU signatures (#784)Javier Peletier2018-07-232-0/+236
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * cmd/swarm: add implicit subcommand help (fix #786) (#788)Javier Peletier2018-07-231-0/+27
| | | | | | | | | | | | * cmd/swarm: add implicit subcommand help (fix #786) * cmd/swarm: moved implicit help to a recursive func
* | cmd/geth: clean up call to SelfDerive (#16970)Wenbiao Zheng2018-07-241-3/+3
|/
* cmd/geth: fix golint issue (#17176)Roc Yu2018-07-161-3/+3
|
* cmd/swarm: change version of swarm binary (#17174)Anton Evangelatov2018-07-141-1/+1
|
* swarm: integrate OpenTracing; propagate ctx to internal APIs (#17169)Anton Evangelatov2018-07-132-2/+6
| | | | | | * swarm: propagate ctx, enable opentracing * swarm/tracing: log error when tracing is misconfigured
* cmd, dashboard, log: log collection and exploration (#17097)Kurkó Mihály2018-07-113-4/+9
| | | | | | | | | | | | * cmd, dashboard, internal, log, node: logging feature * cmd, dashboard, internal, log: requested changes * dashboard, vendor: gofmt, govendor, use vendored file watcher * dashboard, log: gofmt -s -w, goimports * dashboard, log: gosimple
* cmd: typo fixed, isntance -> instance (#17149)Wenbiao Zheng2018-07-091-1/+1
|
* swarm: ctx propagation; bmt fixes; pss generic notification framework (#17150)Anton Evangelatov2018-07-094-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd/swarm: minor cli flag text adjustments * swarm/api/http: sticky footer for swarm landing page using flex * swarm/api/http: sticky footer for error pages and fix for multiple choices * cmd/swarm, swarm/storage, swarm: fix mingw on windows test issues * cmd/swarm: update description of swarm cmd * swarm: added network ID test * cmd/swarm: support for smoke tests on the production swarm cluster * cmd/swarm/swarm-smoke: simplify cluster logic as per suggestion * swarm: propagate ctx to internal apis (#754) * swarm/metrics: collect disk measurements * swarm/bmt: fix io.Writer interface * Write now tolerates arbitrary variable buffers * added variable buffer tests * Write loop and finalise optimisation * refactor / rename * add tests for empty input * swarm/pss: (UPDATE) Generic notifications package (#744) swarm/pss: Generic package for creating pss notification svcs * swarm: Adding context to more functions * swarm/api: change colour of landing page in templates * swarm/api: change landing page to react to enter keypress
* cmd/geth: fix usage formatting (#17136)Wenbiao Zheng2018-07-091-1/+2
|
* cmd/geth: fixed comment typo (#17140)LeoLiao2018-07-091-1/+1
|
* cmd/p2psim: add exit error output and exit code (#17116)Chen Quan2018-07-031-1/+4
|
* cmd/geth: export metrics to InfluxDB (#16979)Anton Evangelatov2018-07-023-5/+87
| | | | | | | | * cmd/geth: add flags for metrics export * cmd/geth: update usage fields for metrics flags * metrics/influxdb: update reporter logger to adhere to geth logging convention
* Merge pull request #17041 from ethersphere/swarm-network-rewrite-mergeViktor Trón2018-06-2216-305/+1561
|\ | | | | Swarm POC3 - happy solstice
| * swarm: network rewrite mergeethersphere2018-06-2216-305/+1561
| |
* | cmd/geth: remove the tail "," from genesis config (#17028)nobody2018-06-211-1/+1
|/ | | remove the tail "," from genesis config, which will cause genesis config parse error .
* cmd: remove faucet/puppeth dead code (#16991)Wenbiao Zheng2018-06-152-66/+0
| | | | | | * cmd/faucet: authGitHub is not used anymore * cmd/puppeth: remove not used code
* cmd/utils: fix NetworkId default when -dev is set (#16833)Jeremy Schlatter2018-06-141-0/+3
| | | | | | | | | Prior to this change, when geth was started with `geth -dev -rpc`, it would report a network id of `1` in response to the `net_version` RPC request. But the actual network id it used to verify transactions was `1337`. This change causes geth instead respond with `1337` to the `net_version` RPC when geth is started with `geth -dev -rpc`.
* crypto: replace ToECDSAPub with error-checking func UnmarshalPubkey (#16932)Felix Lange2018-06-121-9/+4
| | | | | | ToECDSAPub was unsafe because it returned a non-nil key with nil X, Y in case of invalid input. This change replaces ToECDSAPub with UnmarshalPubkey across the codebase.
* cmd/ethkey: add command to change key passphrase (#16516)Steven Roose2018-06-086-19/+100
| | | | | | | This change introduces ethkey changepassphrase <keyfile> to change the passphrase of a key file.
* cmd/puppeth: fixed a typo in a wizard input query (#16910)Bruno Škvorc2018-06-061-2/+2
|
* params: fix golint warnings (#16853)kiel barry2018-06-057-9/+9
| | | params: fix golint warnings
* cmd/abigen: support for reading solc output from stdin (#16683)Antonio Salazar Cardozo2018-06-051-6/+26
| | | | | | | | | | | | | | | Allow the --abi flag to be given - to indicate that it should read the ABI information from standard input. It expects to read the solc output with the --combined-json flag providing bin, abi, userdoc, devdoc, and metadata, and works very similarly to the internal invocation of solc, except it allows external invocation of solc. This facilitates integration with more complex solc invocations, such as invocations that require path remapping or --allow-paths tweaks. Simple usage example: solc --combined-json bin,abi,userdoc,devdoc,metadata *.sol | abigen --abi -
* cmd/geth: cap cache allowancerjl4934564422018-06-041-0/+20
|
* all: get rid of error when creating memory database (#16716)gary rong2018-05-091-3/+2
| | | | | | | | * all: get rid of error when create mdb * core: clean up variables definition * all: inline mdb definition
* cmd: various golint fixes (#16700)kiel barry2018-05-095-24/+28
| | | | | | | | * cmd: various golint fixes * cmd: update to pr change request * cmd: update to pr change request
* core/rawdb: separate raw database access to own package (#16666)Péter Szilágyi2018-05-072-7/+6
|
* whisper/mailserver: pass init error to the caller (#16671)Ivan Daniluk2018-05-041-1/+3
| | | | | | | | * whisper/mailserver: pass init error to the caller * whisper/mailserver: add returns to fmt.Errorf * whisper/mailserver: check err in mailserver init test
* cmd/clef: documentation about setup (#16568)Martin Holst Swende2018-05-029-1/+251
| | | clef: documentation about setup
* Merge pull request #16569 from holiman/evm_blocknumPéter Szilágyi2018-05-021-7/+10
|\ | | | | cmd/evm: use block number from genesis
| * evm/main: use blocknumber from genesisMartin Holst Swende2018-05-021-7/+10
| |
* | cmd/utils: point users to --syncmode under DEPRECATED (#16572)Martin Klepsch2018-04-271-2/+2
|/ | | Indicate that --light and --fast options are replaced by --syncmode
* cmd/geth, mobile: add memsize to pprof server (#16532)Felix Lange2018-04-231-0/+2
| | | | | | | | * cmd/geth, mobile: add memsize to pprof server This is a temporary change, to be reverted before the next release. * cmd/geth: fix variable name
* Revert "cmd/puppeth: fix node deploys for updated dockerfile user"Péter Szilágyi2018-04-231-4/+4
|
* cmd/geth: update the copyright year in the geth command usage (#16537)Vie2018-04-232-2/+2
|
* all: fix various typos (#16533)Wuxiang2018-04-195-7/+7
| | | | | | | | * fix typo * fix typo * fix typo
* rpc: clean up IPC handler (#16524)Felix Lange2018-04-181-3/+3
| | | | This avoids logging accept errors on shutdown and removes a bit of duplication. It also fixes some goimports lint warnings.
* cmd/utils: fix help template issue for subcommands (#16351)Zhenguo Niu2018-04-181-1/+1
|
* build: enable goimports and varcheck linters (#16446)thomasmodeneis2018-04-181-4/+0
|
* cmd/clef, signer: initial poc of the standalone signer (#16154)Martin Holst Swende2018-04-169-0/+2229
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * signer: introduce external signer command * cmd/signer, rpc: Implement new signer. Add info about remote user to Context * signer: refactored request/response, made use of urfave.cli * cmd/signer: Use common flags * cmd/signer: methods to validate calldata against abi * cmd/signer: work on abi parser * signer: add mutex around UI * cmd/signer: add json 4byte directory, remove passwords from api * cmd/signer: minor changes * cmd/signer: Use ErrRequestDenied, enable lightkdf * cmd/signer: implement tests * cmd/signer: made possible for UI to modify tx parameters * cmd/signer: refactors, removed channels in ui comms, added UI-api via stdin/out * cmd/signer: Made lowercase json-definitions, added UI-signer test functionality * cmd/signer: update documentation * cmd/signer: fix bugs, improve abi detection, abi argument display * cmd/signer: minor change in json format * cmd/signer: rework json communication * cmd/signer: implement mixcase addresses in API, fix json id bug * cmd/signer: rename fromaccount, update pythonpoc with new json encoding format * cmd/signer: make use of new abi interface * signer: documentation * signer/main: remove redundant option * signer: implement audit logging * signer: create package 'signer', minor changes * common: add 0x-prefix to mixcaseaddress in json marshalling + validation * signer, rules, storage: implement rules + ephemeral storage for signer rules * signer: implement OnApprovedTx, change signing response (API BREAKAGE) * signer: refactoring + documentation * signer/rules: implement dispatching to next handler * signer: docs * signer/rules: hide json-conversion from users, ensure context is cleaned * signer: docs * signer: implement validation rules, change signature of call_info * signer: fix log flaw with string pointer * signer: implement custom 4byte databsae that saves submitted signatures * signer/storage: implement aes-gcm-backed credential storage * accounts: implement json unmarshalling of url * signer: fix listresponse, fix gas->uint64 * node: make http/ipc start methods public * signer: add ipc capability+review concerns * accounts: correct docstring * signer: address review concerns * rpc: go fmt -s * signer: review concerns+ baptize Clef * signer,node: move Start-functions to separate file * signer: formatting
* common: delete StringToAddress, StringToHash (#16436)Felix Lange2018-04-101-2/+2
| | | | | | | | | | * common: delete StringToAddress, StringToHash These functions are confusing because they don't parse hex, but use the bytes of the string. This change removes them, replacing all uses of StringToAddress(s) by BytesToAddress([]byte(s)). * eth/filters: remove incorrect use of common.BytesToAddress
* cmd/puppeth: fix node deploys for updated dockerfile userPéter Szilágyi2018-04-101-4/+4
|
* cmd/evm: print vm output when debug flag is on (#16326)dm42018-04-061-3/+2
|
* cmd/geth: update template for 'geth bug' command (#16350)Zhenguo Niu2018-04-061-10/+14
|
* cmd/geth: remove relOracle variable (#16434)Nguyen Sy Thanh Son2018-04-041-3/+0
|
* whisper: switch all remaining components from v5 to v6Guillaume Ballet2018-03-262-2/+2
|\
| * whisper: some components are still using v5, switch to v6Guillaume Ballet2018-03-222-2/+2
| |
* | cmd/puppeth: add constraints to network name (#16336)Zhenguo Niu2018-03-261-1/+6
| | | | | | | | | | | | | | | | * cmd/puppeth: add constraints to network name * cmd/puppeth: update usage of network arg * cmd/puppeth: avoid package dependency on utils
* | cmd: export preimages in RLP, support GZIP, uniform with block exportPéter Szilágyi2018-03-263-119/+154
| |
* | cmd: implement preimage dump and import cmdsrjl4934564422018-03-262-0/+115
|/
* cmd/utils: fix maxpeers vs lightpeers logic (#16125)Felföldi Zsolt2018-03-091-0/+3
|
* cmd/puppeth: allow any vhost in walletVlad Bokov2018-03-091-1/+1
|
* cmd, ethdb, vendor: integrate leveldb iostats (#16277)Kurkó Mihály2018-03-081-0/+13
| | | | | | | | | | | | * cmd, dashboard, ethdb, vendor: send iostats to dashboard * ethdb: change names * ethdb: handle parsing errors * ethdb: handle iostats syntax error * ethdb: r -> w
* cmd, dashboard: use webpack dev server, remove custom assets (#16263)Kurkó Mihály2018-03-082-7/+0
| | | | | | * cmd, dashboard: remove custom assets, webpack dev server * dashboard: yarn commands, small fixes
* whisper: final refactoring (#16259)gluk2562018-03-071-31/+52
| | | | whisper: final refactoring
* cmd/evm, core/vm, internal/ethapi: don't disable call gas meteringPéter Szilágyi2018-03-052-8/+2
|
* utils: fix #16138 by checking if vhosts flag is set (#16141)Martin Holst Swende2018-03-051-3/+4
| | | | | | | | * utils: fix #16138 by checking if vhosts flag is set * utils,node: fix defaults for rpcvhosts * node,utils: address review concerns
* whisper: refactoring go-routinesVlad2018-03-051-24/+32
|
* whisper: minor refactoringVlad2018-03-041-8/+4
|
* Merge pull request #16231 from gluk256/303-readergluk2562018-03-031-0/+37
|\ | | | | whisper: filereader mode introduced to wnode
| * whisper: filereader mode introduced to wnodeVlad2018-03-021-0/+37
| |
* | Merge pull request #16228 from karalabe/faucet-background-skipPéter Szilágyi2018-03-021-3/+16
|\ \ | | | | | | cmd/faucet: update state in background, skip when busy
| * | cmd/faucet: update state in background, skip when busyPéter Szilágyi2018-03-021-3/+16
| |/
* / cmd/swarm: fix some typos in manifest cmd (#16227)Zhenguo Niu2018-03-021-3/+3
|/ | | Replace "atleast" with "at least" in the manifest error message.
* whisper: topics replaced by bloom filtersVlad2018-03-011-7/+33
|
* whisper: serious security issue fixed (#16219)gluk2562018-03-011-7/+10
| | | | | | | The diagnostic tool was saving the unencrypted version of the messages, which is an obvious security flaw. As of this commit: * encrypted messages saved instead of plain text. * all messages are stored, even that created by the user of wnode.
* puppeth: fix Parity Chain Spec parameter GasLimitBoundDivision (#16188)Saulius Grigaitis2018-02-271-14/+14
|
* Merge pull request #16198 from gluk256/266-wnodeGuillaume Ballet2018-02-271-14/+12
|\ | | | | whisper: refactor wnode to systematically store messages if a directory is provided
| * whipser: comments updatedVlad2018-02-271-3/+5
| |
| * whisper: wnode updated - all messages are saved if savedir param is givenVlad2018-02-261-14/+10
| |
* | cmd/geth: fix broken links to JavaScript-Console wiki in cmd line help (#16183)Domino Valdano2018-02-261-3/+3
|/ | | | | | * Fixed broken link to JavaScript-Console wiki in cmd line help * cmd/geth: Added missing r in 'JavaScript'
* swarm: initial instrumentation (#15969)Anton Evangelatov2018-02-231-1/+7
| | | | | | | | | | | | | | | | | | * swarm: initial instrumentation with go-metrics * swarm: initialise metrics collection and add ResettingTimer to HTTP requests * swarm: update metrics flags names. remove redundant Timer. * swarm: rename method for periodically updating gauges * swarm: finalise metrics after feedback * swarm/network: always init kad metrics containers * swarm/network: off-by-one index in metrics containers * swarm, metrics: resolved conflicts
* core, vm, common: define constantinople fork + shift (#16045)Martin Holst Swende2018-02-231-0/+1
| | | | | | | | | | | | * core, vm, common: define constantinople fork, start implementation of shift instructions * vm: more testcases * vm: add tests for intpool erroneous intpool handling * core, vm, common: fix constantinople review concerns * vm: add string<->op definitions for new opcodes
* swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2018-02-2326-139/+198
|\
| * cmd/faucet: resolve twitter user from final redirectPéter Szilágyi2018-02-221-2/+7
| |
| * cmd/puppeth: Don't allow hyphen in network name. Fixes #16155Nilesh Trivedi2018-02-221-3/+4
| |
| * cmd, console: support all termination signalsPéter Szilágyi2018-02-212-3/+5
| |
| * whisper: only use the node id as a p2p id, not for sending messages (#16102)Guillaume Ballet2018-02-151-2/+2
| | | | | | | | | | | | | | | | | | This is in preparation for the switch to libp2p: the ID generated will be from a private key created with the help of libp2p's crypto library, while Whisper will still use Go's default crypto libraries for encrypting its messages. This change removes a conflict. It shouldn't have any impact as the person receiving emails is the user, not the node.
| * Merge pull request #16098 from holiman/fix_importPéter Szilágyi2018-02-151-0/+3
| |\ | | | | | | main: add gc flags to import-command
| | * main: add gc flags to import-commandMartin Holst Swende2018-02-151-0/+3
| | |
| * | all: update license information (#16089)Felix Lange2018-02-147-11/+43
| |/
| * cmd/puppeth: unify discv4 and discv5 portsPéter Szilágyi2018-02-129-101/+78
| |
| * rpc: dns rebind protection (#15962)Martin Holst Swende2018-02-123-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd,node,rpc: add allowedHosts to prevent dns rebinding attacks * p2p,node: Fix bug with dumpconfig introduced in r54aeb8e4c0bb9f0e7a6c67258af67df3b266af3d * rpc: add wildcard support for rpcallowedhosts + go fmt * cmd/geth, cmd/utils, node, rpc: ignore direct ip(v4/6) addresses in rpc virtual hostnames check * http, rpc, utils: make vhosts into map, address review concerns * node: change log messages to use geth standard (not sprintf) * rpc: fix spelling
| * p2p, p2p/discover: misc connectivity improvements (#16069)Felix Lange2018-02-121-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * p2p: add DialRatio for configuration of inbound vs. dialed connections * p2p: add connection flags to PeerInfo * p2p/netutil: add SameNet, DistinctNetSet * p2p/discover: improve revalidation and seeding This changes node revalidation to be periodic instead of on-demand. This should prevent issues where dead nodes get stuck in closer buckets because no other node will ever come along to replace them. Every 5 seconds (on average), the last node in a random bucket is checked and moved to the front of the bucket if it is still responding. If revalidation fails, the last node is replaced by an entry of the 'replacement list' containing recently-seen nodes. Most close buckets are removed because it's very unlikely we'll ever encounter a node that would fall into any of those buckets. Table seeding is also improved: we now require a few minutes of table membership before considering a node as a potential seed node. This should make it less likely to store short-lived nodes as potential seeds. * p2p/discover: fix nits in UDP transport We would skip sending neighbors replies if there were fewer than maxNeighbors results and CheckRelayIP returned an error for the last one. While here, also resolve a TODO about pong reply tokens.
| * whisper: get wnode to work with v6 (#16051)Guillaume Ballet2018-02-101-16/+41
| | | | | | | | | | | | | | | | | | | | The bulk of the issue was to adapt to the new requirement that a v6 filter has to either contain a symmertric key or an asymmetric one. This commits revert one of the fixes that I made to remove a linter warning: unexporting NewSentMessage. This is not really a problem as I have a cleanup in the pipe that will solve this issue.
* | swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2018-02-2229-293/+855
|\|
| * core, trie: intermediate mempool between trie and database (#15857)Péter Szilágyi2018-02-066-20/+70
| | | | | | This commit reduces database I/O by not writing every state trie to disk.
| * les: limit LES peer count and improve peer configuration logic (#16010)Felföldi Zsolt2018-02-051-3/+23
| | | | | | | | | | | | * les: limit number of LES connections * eth, cmd/utils: light vs max peer configuration logic
| * utils: fix #16006 by not lowering OS ulimitMartin Holst Swende2018-02-021-3/+5
| |
| * whisper: remove linter warnings (#15972)Guillaume Ballet2018-01-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * whisper: fixes warnings from the code linter * whisper: more non-API-breaking changes The remaining lint errors are because of auto-generated files and one is because an exported function has a non- exported return type. Changing this would break the API, and will be part of another commit for easier reversal. * whisper: un-export NewSentMessage to please the linter This is an API change, which is why it's in its own commit. This change was initiated after the linter complained that the returned type wasn't exported. I chose to un-export the function instead of exporting the type, because that type is an implementation detail that I would like to change in the near future to make the code more readable and with an increased coverage. * whisper: update gencodec output after upgrading it to new lint standards
| * cmd, params: update discovery v5 bootnodes (#15954)Felföldi Zsolt2018-01-251-1/+1
| |
| * Merge pull request #15832 from karalabe/abigen-eventsPéter Szilágyi2018-01-241-17/+0
| |\ | | | | | | accounts/abi/bind: support event filtering in abigen
| | * accounts/abi/bind: support event filtering in abigenPéter Szilágyi2018-01-241-17/+0
| | |
| * | p2p, p2p/discover, p2p/discv5: implement UDP port sharing (#15200)Felföldi Zsolt2018-01-223-13/+23
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit affects p2p/discv5 "topic discovery" by running it on the same UDP port where the old discovery works. This is realized by giving an "unhandled" packet channel to the old v4 discovery packet handler where all invalid packets are sent. These packets are then processed by v5. v5 packets are always invalid when interpreted by v4 and vice versa. This is ensured by adding one to the first byte of the packet hash in v5 packets. DiscoveryV5Bootnodes is also changed to point to new bootnodes that are implementing the changed packet format with modified hash. Existing and new v5 bootnodes are both running on different ports ATM.
| * cmd/ethkey: fix formatting, review nits (#15807)Felix Lange2018-01-166-92/+226
| | | | | | | | | | | | | | | | This commit: - Adds a --msgfile option to read the message to sign from a file instead of command line argument. - Adds a unit test for signing subcommands. - Removes some weird whitespace in the code.
| * dashboard: deep state update, version in footer (#15837)Kurkó Mihály2018-01-152-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dashboard: footer, deep state update * dashboard: resolve asset path * dashboard: remove bundle.js * dashboard: prevent state update on every reconnection * dashboard: fix linter issue * dashboard, cmd: minor UI fix, include commit hash * remove geth binary * dashboard: gitCommit renamed to commit * dashboard: move the geth version to the right, make commit optional * dashboard: commit limited to 7 characters * dashboard: limit commit length on client side * dashboard: run go generate
| * cmd/geth: user friendly light miner errorPéter Szilágyi2018-01-121-1/+4
| |
| * common/fdlimit: Move fdlimit files to separate package (#15850)Ricardo Domingos2018-01-125-218/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * common/fdlimit: Move fdlimit files to separate package When go-ethereum is used as a library the calling program need to set the FD limit. This commit extract fdlimit files to a separate package so it can be used outside of go-ethereum. * common/fdlimit: Remove FdLimit from functions signature * common/fdlimit: Rename fdlimit functions
| * all: update generated code (#15808)Felix Lange2018-01-082-15/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * core/types, core/vm, eth, tests: regenerate gencodec files * Makefile: update devtools target Install protoc-gen-go and print reminders about npm, solc and protoc. Also switch to github.com/kevinburke/go-bindata because it's more maintained. * contracts/ens: update contracts and regenerate with solidity v0.4.19 The newer upstream version of the FIFSRegistrar contract doesn't set the resolver anymore. The resolver is now deployed separately. * contracts/release: regenerate with solidity v0.4.19 * contracts/chequebook: fix fallback and regenerate with solidity v0.4.19 The contract didn't have a fallback function, payments would be rejected when compiled with newer solidity. References to 'mortal' and 'owned' use the local file system so we can compile without network access. * p2p/discv5: regenerate with recent stringer * cmd/faucet: regenerate * dashboard: regenerate * eth/tracers: regenerate * internal/jsre/deps: regenerate * dashboard: avoid sed -i because it's not portable * accounts/usbwallet/internal/trezor: fix go generate warnings
| * cmd/utils: handle git commit a bit safer for user specified strings (#15790)Evangelos Pappas2018-01-041-1/+1
| | | | | | | | | | | | * cmd/utils/flags.go: Applying a String len guard for the gitCommit param of the NewApp() * cmd/utils: remove redundant clause in if condition
| * all: switch gas limits from big.Int to uint64Péter Szilágyi2018-01-033-22/+22
| |
| * various: remove redundant parentheses (#15793)Furkan KAMACI2018-01-031-1/+1
| |
| * cmd/geth: remove trailing newline in license command (#15782)Péter Szilágyi2018-01-021-2/+1
| |
| * cmd/puppeth: fix faucet 502 error due to non-exposed HTTP portPéter Szilágyi2017-12-211-0/+2
| |
| * Merge pull request #15729 from karalabe/faucet-fix-twitterPéter Szilágyi2017-12-211-6/+1
| |\ | | | | | | cmd/faucet: fix removal of Twitter zlib compression
| | * cmd/faucet: fix removal of Twitter zlib compressionPéter Szilágyi2017-12-211-6/+1
| | |
| * | cmd/utils: add check on fd hard limit, skip test if below target (#15684)lash2017-12-214-1/+37
| |/ | | | | | | | | | | | | | | | | | | * cmd/utils: Add check on hard limit, skip test if below target * cmd/utils: Cross platform compatible fd limit test * cmd/utils: Remove syscall.Rlimit in test * cmd/utils: comment fd utility method
| * cmd, core, eth/tracers: support fancier js tracing (#15516)Péter Szilágyi2017-12-211-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cmd, core, eth/tracers: support fancier js tracing * eth, internal/web3ext: rework trace API, concurrency, chain tracing * eth/tracers: add three more JavaScript tracers * eth/tracers, vendor: swap ottovm to duktape for tracing * core, eth, internal: finalize call tracer and needed extras * eth, tests: prestate tracer, call test suite, rewinding * vendor: fix windows builds for tracer js engine * vendor: temporary duktape fix * eth/tracers: fix up 4byte and evmdis tracer * vendor: pull in latest duktape with my upstream fixes * eth: fix some review comments * eth: rename rewind to reexec to make it more obvious * core/vm: terminate tracing using defers
| * cmd/ethkey: new command line tool for keys (#15438)Steven Roose2017-12-216-0/+533
| | | | | | | | | | | | | | | | | | | | ethkey is a new tool that serves as a command line interface to the basic key management functionalities of geth. It currently supports: - generating keyfiles - inspecting keyfiles (print public and private key) - signing messages - verifying signed messages
| * cmd/geth: add support for geth --rinkeby attachSorin Neacsu2017-12-161-2/+6
| |
* | cmd/swarm: return error early in buildConfig functionJanos Guljas2017-12-201-0/+3
| |
* | cmd/swarm: add validation for EnsAPIs configuration parameterJanos Guljas2017-12-192-0/+130
| |
* | cmd/swarm, swarm: disable ENS API by defaultJanos Guljas2017-12-181-18/+5
| | | | | | | | | | | | Specifying ENS API CLI flag, env variable or configuration field is required for ENS resolving. Backward compatibility is preserved with --ens-api="" CLI flag value.
* | cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2017-12-144-6/+7
|\| | | | | | | Fix a conflict in cmd/swarm envVarsOverride function.
| * all: use gometalinter.v2, fix new gosimple issues (#15650)Zach2017-12-134-6/+7
| |
* | swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2017-12-1334-788/+2855
|\| | | | | | | | | | | | | | | | | | | | | | | Merge with changes that implement config file PR #15548. Field *EnsApi string* in swarm/api.Config is replaced with *EnsAPIs []string*. A new field *EnsDisabled bool* is added to swarm/api.Config for easy way to disable ENS resolving with config file. Signature of function swarm.NewSwarm is changed and simplified.
| * cmd/swarm: add config file (#15548)holisticode2017-12-124-90/+879
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a TOML configuration option to swarm. It reuses the TOML configuration structure used in geth with swarm customized items. The commit: * Adds a "dumpconfig" command to the swarm executable which allows printing the (default) configuration to stdout, which then can be redirected to a file in order to customize it. * Adds a "--config <file>" option to the swarm executable which will allow to load a configuration file in TOML format from the specified location in order to initialize the Swarm node The override priorities are like follows: environment variables override command line arguments override config file override default config.
| * cmd/utils, eth: init etherbase from within eth (#15528)Péter Szilágyi2017-12-101-9/+6
| |
| * cmd/geth: add support for geth attach --testnet (#15597)Sorin Neacsu2017-12-051-2/+10
| |
| * buld: enable goconst linter (#15566)Zach2017-11-301-3/+5
| |
| * cmd/geth: fix geth attach --datadir=... (#15517)Maximilian Meister2017-11-281-1/+6
| |
| * cmd/utils: bootstrap nodes in config file were not respectedMaximilian Meister2017-11-261-0/+2
| | | | | | | | Signed-off-by: Maximilian Meister <mmeister@suse.de>
| * cmd/utils: disallow --lightserv in light mode (#15514)Paul Litvak2017-11-241-4/+32
| | | | | | | | | | | | | | | | * Disallow --lightserv in light mode * Reformatted * cmd/utils: reduce nesting levels a bit
| * cmd, consensus, eth: split ethash related config to it own (#15520)gary rong2017-11-241-15/+19
| | | | | | | | | | | | | | | | | | | | * cmd, consensus, eth: split ethash related config to it own * eth, consensus: minor polish * eth, consenus, console: compress pow testing config field to single one * consensus, eth: document pow mode
| * cmd/puppeth: fix typo in comment (#15539)Zoe Nolan2017-11-241-2/+2
| | | | | | | | | | | | * cmd: fix typo in comment * cmd/puppeth: tiny comment fixup
| * cmd/puppeth: fix typos and review suggestionsPéter Szilágyi2017-11-2313-25/+19
| |
| * cmd/puppeth: fix unconvert lintersPéter Szilágyi2017-11-212-2/+2
| |
| * cmd/puppeth: switch over to upstream alltools docker imagePéter Szilágyi2017-11-211-1/+1
| |
| * cmd/faucet, cmd/puppeth: drop GitHub support at official requestPéter Szilágyi2017-11-215-68/+8
| |
| * cmd/puppeth: simplifications and pre-built docker imagesPéter Szilágyi2017-11-2113-164/+115
| |
| * cmd/puppeth: store genesis locally to persist restartsPéter Szilágyi2017-11-219-49/+64
| |
| * cmd/puppeth: skip genesis custom extra-dataPéter Szilágyi2017-11-212-12/+1
| |
| * cmd/puppeth: fix dashboard iframes, extend with new servicesPéter Szilágyi2017-11-215-51/+441
| |
| * cmd/faucet: protocol relative websockets, noauth modePéter Szilágyi2017-11-215-44/+87
| |
| * cmd/puppeth: add support for deploying web walletsPéter Szilágyi2017-11-215-1/+366
| |
| * cmd/puppeth: etherchain light block explorer for PoW netsPéter Szilágyi2017-11-218-11/+565
| |
| * cmd/puppeth: mount ethash dir from the host to cache DAGsPéter Szilágyi2017-11-212-13/+33
| |
| * cmd/puppeth: support deploying services with forced rebuildsPéter Szilágyi2017-11-2110-17/+52
| |
| * cmd/puppeth: concurrent server dials and health checksPéter Szilágyi2017-11-213-93/+142
| |
| * cmd/puppeth: reorganize stats reports to make it readablePéter Szilágyi2017-11-2113-136/+205
| |
| * cmd/geth: make geth account new faster with many keys (#15529)Martin Holst Swende2017-11-211-4/+17
| |
* | swarm: deprecate --ens-addr CLI flag with a warning messageJanos Guljas2017-12-051-6/+10
| |
* | swarm: check if "--ens-api ''" is specified in order to disable ENSJanos Guljas2017-12-051-0/+4
| |
* | swarm: add comment for parseFlagEnsAPI and fix a mistake in comment in codeJanos Guljas2017-12-051-1/+3
| |
* | swarm: multiple --ens-api flagsJanos Guljas2017-12-042-20/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow multiple --ens-api flags to be specified with value format [tld:][contract-addr@]url. Backward compatibility with only one --ens-api flag and --ens-addr flag is preserved and conflict cases are handled: - multiple --ens-api with --ens-addr returns an error - single --ens-api with contract address and --ens-addr with different contract address returns an error Previously implemented --ens-endpoint is removed. Its functionality is replaced with multiple --ens-api flags.
* | swarm: add CLI --ens-endpoint flag (#14386)Janos Guljas2017-12-012-54/+190
|/ | | | | Implement a CLI flag that can be repeated to allow multiple ENS resolvers for different TLDs.
* cmd, dashboard: dashboard using React, Material-UI, Recharts (#15393)Kurkó Mihály2017-11-154-7/+74
| | | | | | | | | | | | * cmd, dashboard: dashboard using React, Material-UI, Recharts * cmd, dashboard, metrics: initial proof of concept dashboard * dashboard: delete blobs * dashboard: gofmt -s -w . * dashboard: minor text and code polishes
* puppeth: handle encrypted ssh keys (closes #15442) (#15443)Bo2017-11-132-2/+13
| | | | | | * cmd/puppeth: handle encrypted ssh keys * cmd/puppeth: fix unconvert linter error
* build: enable unconvert linter (#15456)ferhat elmas2017-11-114-6/+4
| | | | | | | | | * 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-2/+2
|
* cmd/rlpdump: allow hex input to have leading '0x'Jim McDonald2017-10-271-1/+1
|
* cmd, consensus, core, miner: instatx clique for --dev (#15323)Péter Szilágyi2017-10-245-24/+50
| | | | | | | | * cmd, consensus, core, miner: instatx clique for --dev * cmd, consensus, clique: support configurable --dev block times * cmd, core: allow --dev to use persistent storage too
* cmd/evm: print stateroot in evm utility (#15341)Martin Holst Swende2017-10-201-1/+7
|
* cmd/faucet: dynamic funding progress and visual feedbackPéter Szilágyi2017-10-173-7/+83
|
* cmd/faucet: proper error handling all overPéter Szilágyi2017-10-173-36/+135
|
* cmd/faucet: support twitter, google+ and facebook auth tooPéter Szilágyi2017-10-163-67/+215
|
* Merge pull request #15269 from karalabe/puppeth-dumb-ip-filteringPéter Szilágyi2017-10-122-11/+33
|\ | | | | cmd/puppeth: use dumb textual IP filtering
| * cmd/puppeth: use dumb textual IP filteringPéter Szilágyi2017-10-102-11/+33
| |
* | cmd, eth: separate out FakePeer for future reusePéter Szilágyi2017-10-102-152/+32
| |
* | cmd: Added support for copying data to another DB instanceNick Johnson2017-10-102-1/+196
|/
* cmd/puppeth: support managing fork block in the chain configPéter Szilágyi2017-10-044-11/+77
|
* cmd/puppeth, params: enable Byzantium on all networksPéter Szilágyi2017-10-021-0/+1
|
* cmd/geth: fix --password typoayeowch2017-09-271-1/+1
|
* p2p: add network simulation framework (#14982)Lewis Marshall2017-09-251-0/+414
| | | | | | This commit introduces a network simulation framework which can be used to run simulated networks of devp2p nodes. The intention is to use this for testing protocols, performing benchmarks and visualising emergent network behaviour.
* core/vm: standard vm traces (#15035)cdetrio2017-09-221-1/+1
|
* cmd/puppeth: reserve "yournode" as a non-allowed ethstats userPéter Szilágyi2017-09-121-1/+1
|
* core, eth/downloader: commit block data using batches (#15115)Felix Lange2017-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ethdb: add Putter interface and Has method * ethdb: improve docs and add IdealBatchSize * ethdb: remove memory batch lock Batches are not safe for concurrent use. * core: use ethdb.Putter for Write* functions This covers the easy cases. * core/state: simplify StateSync * trie: optimize local node check * ethdb: add ValueSize to Batch * core: optimize HasHeader check This avoids one random database read get the block number. For many uses of HasHeader, the expectation is that it's actually there. Using Has avoids a load + decode of the value. * core: write fast sync block data in batches Collect writes into batches up to the ideal size instead of issuing many small, concurrent writes. * eth/downloader: commit larger state batches Collect nodes into a batch up to the ideal size instead of committing whenever a node is received. * core: optimize HasBlock check This avoids a random database read to get the number. * core: use numberCache in HasHeader numberCache has higher capacity, increasing the odds of finding the header without a database lookup. * core: write imported block data using a batch Restore batch writes of state and add blocks, tx entries, receipts to the same batch. The change also simplifies the miner. This commit also removes posting of logs when a forked block is imported. * core: fix DB write error handling * ethdb: use RLock for Has * core: fix HasBlock comment
* eth: use maxpeers from p2p layer instead of extra configPéter Szilágyi2017-09-061-4/+0
|
* cmd/puppeth: switch node containers to main onesPéter Szilágyi2017-09-051-4/+4
|
* cmd/evm: adds ability to run individual state test file (#14998)Martin Holst Swende2017-09-052-0/+120
| | | | | | | | * cmd/evm: adds ability to run individual state test file * cmd/evm: Fix statetest runner to be more json friendly * cmd/evm, tests: minor polishes, dump state on fail
* cmd/geth: fix --nousb typo (#15040)Oli Bye2017-08-251-1/+1
|
* cmd/evm, core/vm, internal/ethapi: Show error when exiting (#14985)Martin Holst Swende2017-08-232-6/+10
| | | | | | * cmd/evm, core/vm, internal/ethapi: Add 'err' to tracer interface CaptureEnd * cmd/evm: fix nullpointer when there is no error
* core, light: send chain events using event.Feed (#14865)Miya Chen2017-08-181-2/+1
|
* cmd/puppeth: support blacklisting malicious IPs on ethstatsPéter Szilágyi2017-08-183-7/+60
|
* cmd/evm: add --receiver, support code from stdin (#14873)Martin Holst Swende2017-08-152-27/+39
|
* Merge pull request #14885 from karalabe/trezor-boomPéter Szilágyi2017-08-141-6/+12
|\ | | | | accounts, console, internal: support trezor hardware wallet
| * accounts: refactor API for generalized USB walletsPéter Szilágyi2017-08-091-1/+3
| |
| * accounts, console, internal: support trezor hardware walletPéter Szilágyi2017-08-091-6/+10
| |
* | cmd/geth, cmd/swarm: sort commands and flags by name (#3462)Maximilian Meister2017-08-112-0/+4
|/
* cmd: fix megacheck warnings (#14912)Egon Elbre2017-08-074-19/+16
| | | | | | * cmd: fix megacheck warnings * cmd: revert time.Until changes, keep readFloat
* cmd/puppeth: remove wrapping loop in single readsPéter Szilágyi2017-08-041-18/+14
|