aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
Commit message (Collapse)AuthorAgeFilesLines
* cmd/clef: fix colored output on Windows (#19889)Frank Szendzielarz2019-07-251-1/+9
| | | | | | | | * Fixes #19861 - coloured output * cmd/clef: minor formatting nit * cmd/clef: bleah, stupid github editor
* Merge pull request #19875 from karalabe/dev-4gb-cachePéter Szilágyi2019-07-231-1/+1
|\ | | | | cmd/geth: skip 4GB memory bump for devnet
| * cmd/geth: skip 4GB memory bump for devnetPéter Szilágyi2019-07-231-1/+1
| |
* | cmd/faucet: add grace period to faucet timeout (#18105)wbt2019-07-231-1/+4
|/ | | | | | * Add 5 minute grace period to faucet timeout * cmd/faucet: make grace period dynamic based on original wait time
* cmd, contracts, eth, p2p, signer, whisper: fixed ineffectual assignments ↵Christian Muehlhaeuser2019-07-222-5/+5
| | | | | (#19869) Fixed assigning values to variables we don't end up using.
* all: update author list and licensesPéter Szilágyi2019-07-227-5/+37
|
* cmd/geth, core/rawdb: add missing error checks (#19871)Christian Muehlhaeuser2019-07-221-0/+3
| | | | | | | | * Added missing error checks Add error handling where we assign err a value, but don't check for it being nil. * core/rawdb: tiny style nit
* cmd, crypto, eth, internals: fix Typos (#19868)Kitten King2019-07-222-2/+2
|
* all: replace fmt.Print* calls with t.Log* in tests (#19670)大彬2019-07-171-3/+2
|
* eth: add debug_accountRange (#17438)jwasinger2019-07-131-2/+2
| | | | This adds the debug_accountRange method which returns all accounts in the state for a given block and transaction index.
* cmd, eth: fix dump config issue (#19825)gary rong2019-07-111-3/+3
| | | | | | * eth: fix error when dump config with nil checkpoint * cmd/utils: ignore default datadir if it's already set.
* cmd, eth, les: make les flags conform to dotted stylePéter Szilágyi2019-07-103-38/+61
|
* cmd: encapsulate les relative cli optionsrjl4934564422019-07-102-33/+43
|
* cmd, eth, les: fix up ultra light config integrationPéter Szilágyi2019-07-104-51/+28
|
* cmd/puppeth: integrate blockscout (#18261)gary rong2019-07-094-124/+109
| | | | | | | | | | | | | | | | | | * cmd/puppeth: integrate blockscout * cmd/puppeth: expose debug namespace for blockscout * cmd/puppeth: fix dbdir * cmd/puppeth: run explorer in archive mode * cmd/puppeth: ensure node is synced * cmd/puppeth: fix explorer docker alignment + drop unneeded exec * cmd/puppeth: polish up config saving and reloading * cmd/puppeth: check both web and p2p port for explorer service
* cmd/abigen: refactor command line interface (#19797)gary rong2019-07-082-94/+167
| | | | | | * cmd, common: refactor abigen command line interface * cmd/abigen: address comment
* accounts/abi/bind: link dependent libs in deploy (#19718)Guillaume Ballet2019-07-081-1/+6
| | | | | | | | | | | | | | | | | | | | | * accounts, abigen: link dependent libs in deploy * abigen: add java generation * bind: Fix unit tests * abigen: add unit test * Fix CI * Post-rebase fixes * Fix rebase issue * accounts/abi: Gary's review feedback * accounts/abi: More Gary feedback * accounts/abi: minor fixes
* cmd/geth: wrong memory size sanitizing on OpenBSD (#19793)Guillaume Ballet2019-07-051-5/+10
|
* accounts, cmd, contracts, les: integrate clef for transaction signing (#19783)gary rong2019-07-043-111/+34
| | | | | | * accounts, cmd, contracts, les: integrate clef for transaction signing * accounts, cmd/checkpoint-admin, signer/core: minor fixups
* accounts/abi: enable struct golang binding generation (#18491)gary rong2019-07-031-0/+2
| | | | | | | | | | | | | | | | * accounts/abi, cmd/abigen: support tuple accounts/abi/bind, cmd/abigen: add objc back accounts/abi/bind: use byte[24] as function indicator accounts/abi/bind: resolve struct slice or array accounts/abi/bind: remove sort logic accounts: fix issues in abi * accounts/abi: address comment
* cmd, eth, les, param: drop --override.constantinoplePéter Szilágyi2019-07-023-9/+0
|
* cmd/clef, signer: refresh tutorial, fix noticed issues (#19774)Péter Szilágyi2019-07-028-437/+575
| | | | | | | | * cmd/clef, signer: refresh tutorial, fix noticed issues * cmd/clef, signer: support removing stored keys (delpw + rules) * cmd/clef: polishes + Geth integration in the tutorial
* accounts/abi/bind: Accept function ptr parameter (#19755)Guillaume Ballet2019-07-021-1/+3
| | | | | | | | | | | | * accounts/abi/bind: Accept function ptr parameter They are translated as [24]byte * Add Java template version * accounts/abi/bind: fix merge issue * Fix CI
* all: on-chain oracle checkpoint syncing (#19543)gary rong2019-06-286-16/+722
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * all: implement simple checkpoint syncing cmd, les, node: remove callback mechanism cmd, node: remove callback definition les: simplify the registrar les: expose checkpoint rpc services in the light client les, light: don't store untrusted receipt cmd, contracts, les: discard stale checkpoint cmd, contracts/registrar: loose restriction of registeration cmd, contracts: add replay-protection all: off-chain multi-signature contract params: deploy checkpoint contract for rinkeby cmd/registrar: add raw signing mode for registrar cmd/registrar, contracts/registrar, les: fixed messages * cmd/registrar, contracts/registrar: fix lints * accounts/abi/bind, les: address comments * cmd, contracts, les, light, params: minor checkpoint sync cleanups * cmd, eth, les, light: move checkpoint config to config file * cmd, eth, les, params: address comments * eth, les, params: address comments * cmd: polish up the checkpoint admin CLI * cmd, contracts, params: deploy new version contract * cmd/checkpoint-admin: add another flag for clef mode signing * cmd, contracts, les: rename and regen checkpoint oracle with abigen
* mobile: fix mobile interface (#19180)gary rong2019-06-271-2/+0
| | | | | | | | | | | | * mobile: fix mobile interface * mobile, accounts: generate correct java binding * accounts: fix java type binding * mobile: support integer slice * accounts/abi/bind, cmd/abigen: implement java binding tests
* cmd/evm: evm input minor fixes (#19740)Martin Holst Swende2019-06-251-19/+25
| | | | | | * cmd/evm: evm input minor fixes, handle prefix, validate length, fixes #18041 * cmd/evm: remove whitespace
* core/state, cmd/geth: streaming json output for dump command (#15475)Martin Holst Swende2019-06-244-5/+36
| | | | | | | | | | | | * core/state, cmd/geth: streaming json output dump cmd + optional code+storage * dump: add option to continue even if preimages are missing * core, evm: lint nits * cmd: use local flags for dump, omit empty code/storage * core/state: fix state dump test
* cmd, graphql, node: graphql flag polishes, les integrationPéter Szilágyi2019-06-203-45/+67
|
* p2p/enode: improve IPv6 support, add ENR text representation (#19663)Felix Lange2019-06-074-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | * p2p/enr: add entries for for IPv4/IPv6 separation This adds entry types for "ip6", "udp6", "tcp6" keys. The IP type stays around because removing it would break a lot of code and force everyone to care about the distinction. * p2p/enode: track IPv4 and IPv6 address separately LocalNode predicts the local node's UDP endpoint and updates the record. This change makes it predict IPv4 and IPv6 endpoints separately since they can now be in the record at the same time. * p2p/enode: implement base64 text format * all: switch to enode.Parse(...) This allows passing base64-encoded node records to all the places that previously accepted enode:// URLs. The URL format is still supported. * cmd/bootnode, p2p: log node URL instead of ENR ...and return the base64 record in NodeInfo.
* cmd/devp2p: add devp2p debug tool (#19657)Felix Lange2019-06-073-0/+432
| | | | | | | | | | | | | | | | | * p2p/discover: export Ping and RequestENR These two are useful for checking the status of a node. * cmd/devp2p: add devp2p debug tool This is a new tool for debugging p2p issues. It supports a few basic tasks for now, but many more things can and will be added in the near future. devp2p enrdump -- prints ENRs readably devp2p discv4 ping -- checks if a node is up devp2p discv4 requestenr -- gets a node's record devp2p discv4 resolve -- finds a node through the DHT
* cmd/clef: enable smartcard hub (#19649)Guillaume Ballet2019-06-051-1/+3
| | | | | | * cmd/clef: Enable smartcard hub * clef: don't error is pcsc is not installed
* cmd: Add retesteth command (to support execution and generation of tests via ↵ledgerwatch2019-06-053-0/+1038
| | | | | | | | | | | | | | | | | | retesteth) (#19631) * Add retesteth command * Remove label and insert full version * mineBlock - break the inner loop when the block is full * Fixes for touched non-reward accounts, gas limit issues * Not fail when SendTx has transaction with incorrect RLP * Fix linter (unnecessary conversion) * retesteth: add usage string to flag
* cmd/utils: close quote (#19665)Martin Holst Swende2019-06-051-1/+1
|
* accounts/scwallet: don't error when pcsc socket is missing (#19662)Guillaume Ballet2019-06-041-1/+1
| | | | | | | | * scwallet: don't error when pcsc socket is missing * review feedback * more review feedback
* swarm: code cleanup, move to ethersphere/swarm (#19661)Rafael Matias2019-06-0441-12276/+0
|
* core/signer, clef: improve ui-test flow, fix errors in uint handling (#19584)Martin Holst Swende2019-06-031-5/+30
| | | | | | | | * core/signer, clef: improve ui-test flow, fix errors in uint handling for eip-712 * core/signer: add fuzzer testcases + crashfixes * signer: address review concerns, check sign in integer parsing
* accounts/scwallet: flag to specify path to smartcard daemon (#19439)Guillaume Ballet2019-05-313-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | * accounts/scwallet: Add a switch to enable smartcard support * accounts: change the meaning of the switch * disable card support in windows until tested * only activate account if pcscd socket file is present * the switch is now the path to the socket file * accounts/scwallet: holiman's review feedback * accounts/scwallet: send the path to go-pcsclite * accounts/scwallet: add default, per platform path * accounts/scwallet: fix error log warning * accounts/scwallet: update pcsc lib to latest * accounts/scwallet: use default path from pcsclite * scwallet: forgot to change switch name * cmd: minor style cleanups (error handling first, then happy path)
* les, les/flowcontrol: implement LES/3 (#19329)Felföldi Zsolt2019-05-311-4/+4
| | | les, les/flowcontrol: implement LES/3
* cmd/abigen: allow using `abigen --pkg` flag with standard input (#19207)Vitaly Bogdanov2019-05-281-8/+3
|
* cmd/geth, core/rawdb: seamless freezer consistency, friendly removedbPéter Szilágyi2019-05-164-275/+52
|
* core, cmd, vendor: fixes and database inspection tool (#15)gary rong2019-05-166-15/+299
| | | | | | | | | | | | | | | | | | | | | | * core, eth: some fixes for freezer * vendor, core/rawdb, cmd/geth: add db inspector * core, cmd/utils: check ancient store path forceily * cmd/geth, common, core/rawdb: a few fixes * cmd/geth: support windows file rename and fix rename error * core: support ancient plugin * core, cmd: streaming file copy * cmd, consensus, core, tests: keep genesis in leveldb * core: write txlookup during ancient init * core: bump database version
* cmd, core, eth, les, node: chain freezer on top of db reworkPéter Szilágyi2019-05-164-3/+15
|
* Merge pull request #19563 from karalabe/faucet-remove-g+-mentionPéter Szilágyi2019-05-132-16/+54
|\ | | | | cmd/faucet: remove Google+ mention from web assets too
| * cmd/faucet: remove Google+ mention from web assets tooPéter Szilágyi2019-05-132-16/+54
| |
* | core, eth, trie: bloom filter for trie node dedup during fast sync (#19489)Péter Szilágyi2019-05-131-4/+10
|/ | | | | | | | | | | | * core, eth, trie: bloom filter for trie node dedup during fast sync * eth/downloader, trie: address review comments * core, ethdb, trie: restart fast-sync bloom construction now and again * eth/downloader: initialize fast sync bloom on startup * eth: reenable eth/62 until we properly remove it
* cmd/swarm: skip export test on windows builds (#19555)Elad2019-05-131-1/+5
|
* swarm: instrument setNextBatchElad2019-05-101-1/+1
| | | | swarm/storage/localstore: add gc metrics, disable flaky test
* swarm/storage: improve instrumentationAnton Evangelatov2019-05-101-4/+1
| | | | | | | | | | swarm/storage/localstore: fix broken metric (#1373) p2p/protocols: count different messages (#1374) cmd/swarm: disable snapshot create test due to constant flakes (#1376) swarm/network: remove redundant goroutine (#1377)
* swarm-smoke: add syncDelay flagAnton Evangelatov2019-05-103-12/+19
| | | | | | swarm/network: add want delay timer to syncing (#1367) swarm/network: synchronise peer.close() (#1369)
* swarm: push tags integration - request flowElad2019-05-103-3/+5
| | | | | | swarm/api: integrate tags to count chunks being split and stored swarm/api/http: integrate tags in middleware for HTTP `POST` calls and assert chunks being calculated and counted correctly swarm: remove deprecated and unused code, add swarm hash to DoneSplit signature, remove calls to the api client from the http package
* cmd/swarm-smoke: check if chunks are at most prox hostAnton Evangelatov2019-05-101-3/+100
| | | | swarm/network: measure how many chunks a node delivers (#1358)
* swarm/storage/localstore: fix export db.Put signatureAnton Evangelatov2019-05-106-121/+184
| | | | | | | | cmd/swarm/swarm-smoke: improve smoke tests (#1337) swarm/network: remove dead code (#1339) swarm/network: remove FetchStore and SyncChunkStore in favor of NetStore (#1342)
* cmd/swarm, swarm: LocalStore storage integrationJanoš Guljaš2019-05-106-18/+1668
|
* cmd/faucet: sunset Google+ authenticationPéter Szilágyi2019-05-081-36/+6
|
* cmd/faucet: embed git commit hash and date into the versionPéter Szilágyi2019-05-081-1/+6
|
* cmd, internal/build, docker: advertise commit date in unstable build ↵C. Brown2019-05-0810-13/+21
| | | | | | | | | | | | | | versions (#19522) * add-date-to unstable * fields-insteadof-split * internal/build: support building with missing git * docker: add git history back to support commit date in version * internal/build: use PR commits hashes for PR builds
* accounts, cmd, internal, signer: add note about backing up the keystore (#19432)Kurkó Mihály2019-05-072-3/+19
| | | | | | | | | | | | * accounts: add note about backing up the keystore * cmd, accounts: move the printout to accountCreate * internal, signer: add info when new account is created via rpc * cmd, internal, signer: split logs * cmd/geth: make account new output a bit more verbose
* Merge pull request #19497 from karalabe/peers-50Péter Szilágyi2019-04-251-2/+2
|\ | | | | cmd/utils, node: switch over default peer count to 50
| * cmd/utils, node: switch over default peer count to 50Péter Szilágyi2019-04-251-2/+2
| |
* | Merge pull request #19438 from karalabe/ledger-new-derivation-pathPéter Szilágyi2019-04-251-3/+5
|\ \ | |/ |/| accounts: switch Ledger derivation path to canonical one
| * accounts: switch Ledger derivation path to canonical onePéter Szilágyi2019-04-101-3/+5
| |
* | miner: polish miner configuration (#19480)gary rong2019-04-231-38/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | * cmd, eth, miner: disable advance sealing if user require * cmd, console, miner, les, eth: wrap the miner config * eth: remove todo * cmd, miner: revert noadvance flag The reason for this is: if the transaction execution is even longer than block time, then this kind of transactions is DoS attack.
* | Merge pull request #18168 from karalabe/trie-better-cache-size-estimationPéter Szilágyi2019-04-182-1/+15
|\ \ | | | | | | trie: approximate the wasted cache metaspace closer
| * | cmd: special case default cache allowance (4GB mainnet, 128MB ligh)Péter Szilágyi2019-04-122-1/+15
| | |
* | | eth, les, light: enforce CHT checkpoints on fast-sync tooPéter Szilágyi2019-04-171-1/+1
|/ /
* | cmd/clef, signer: make fourbyte its own package, break dep cycle (#19450)Péter Szilágyi2019-04-123-285/+4
| | | | | | | | | | | | * cmd/clef, signer: make fourbytes its own package, break dep cycle * signer/fourbyte: pull in a sanitized 4byte database
* | cmd/swarm: fix resource leaks in tests (#19443)Ferenc Szabo2019-04-113-49/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/api: fix file descriptor leak in NewTestSwarmServer Swarm storage (localstore) was not closed. That resulted a "too many open files" error if `TestClientUploadDownloadRawEncrypted` was run with `-count 1000`. * cmd/swarm: speed up StartNewNodes() by parallelization Reduce cluster startup time from 13s to 7s. * swarm/api: disable flaky TestClientUploadDownloadRawEncrypted with -race * swarm/storage: disable flaky TestLDBStoreCollectGarbage (-race) With race detection turned on the disabled cases often fail with: "ldbstore_test.go:535: expected surplus chunk 150 to be missing, but got no error" * cmd/swarm: fix process leak in TestACT and TestSwarmUp Each test run we start 3 nodes, but we did not terminate them. So those 3 nodes continued eating up 1.2GB (3.4GB with -race) after test completion. 6b6c4d1c2754f8dd70172ab58d7ee33cf9058c7d changed how we start clusters to speed up tests. The changeset merged together test cases and introduced a global cluster. But "forgot" about termination. Let's get rid of "global cluster" so we have a clear owner of termination (some time sacrifice), while leaving subtests to use the same cluster.
* | cmd/clef: bundle 4byte db into clef, (#19112)Martin Holst Swende2019-04-114-22/+296
| | | | | | | | | | | | | | | | * clef: bundle 4byte db into clef, fix #19048 * clef: add go-generate directive, remove internal abidb parser tool * cmd/clef: extend go generate to format asset file
* | clef: update warning-text (#19442)Martin Holst Swende2019-04-101-4/+7
|/ | | | | | * clef: update warning-text * Update cmd/clef/main.go
* eth, les, geth: implement cli-configurable global gas cap for RPC calls (#19401)Martin Holst Swende2019-04-083-3/+12
| | | | | | | | * eth, les, geth: implement cli-configurable global gas cap for RPC calls * graphql, ethapi: place gas cap in DoCall * ethapi: reformat log message
* cmd: nuke geth bug, nobody is using it anywayPéter Szilágyi2019-04-053-160/+0
|
* cmd/geth, internal, node, vendor: nuke geth monitorPéter Szilágyi2019-04-052-353/+0
|
* accounts, cmd, internal: disable unlock account on open HTTP (#17037)gary rong2019-04-044-12/+38
| | | | | | | | | | * cmd, accounts, internal, node, rpc, signer: insecure unlock protect * all: strict unlock API by rpc * cmd/geth: check before printing warning log * accounts, cmd/geth, internal: tiny polishes
* all: simplify timestamps to uint64 (#19372)Martin Holst Swende2019-04-033-3/+3
| | | | | | | | | | | | | | * all: simplify timestamps to uint64 * tests: update definitions * clef, faucet, mobile: leftover uint64 fixups * ethash: fix tests * graphql: update schema for timestamp * ethash: remove unused variable
* Merge pull request #19328 from karalabe/preloadPéter Szilágyi2019-04-023-4/+12
|\ | | | | core: prefetch next block state concurrently
| * cmd, core, eth: support disabling the concurrent state prefetcherPéter Szilágyi2019-04-013-4/+12
| |
* | cmd/flags: fix typo in --exitwhensynced flag (#19364)William Setzer2019-04-021-1/+1
|/ | | Corrected error for ExitWhenSyncedFlag, clarifying that the program exits after syncing completes.
* core: split out detailed trie access metrics from insertion time (#19316)Péter Szilágyi2019-03-253-13/+10
| | | | | | * core: split out detailed trie access metrics from insertion time * cmd, core, metrics: support expensive optional metrics
* cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter (#19309)lash2019-03-222-3/+10
| | | | | | | | | | | | | | | | * cmd/swarm, p2p, swarm: Enable ENR in binary/execadapter * cmd/p2p/swarm: Remove comments + config.Enode nomarshal * p2p/simulations: Remove superfluous error check * p2p/simulation: Move init enode comment * swarm/api: Check error in config test * swarm, p2p/simulations, cmd/swarm: Use nodekey in binary record sign * cmd/swarm: Make nodekey available for swarm api config
* swarm/network: measure time of messages in priority queue (#19250)Anton Evangelatov2019-03-212-20/+22
|
* contracts, swarm: implement EIP-1577 (#19285)Elad2019-03-201-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * contracts/ens: update public resolver solidity code * contracts/ens: update public resolver, update go bindings * update build * fix ens.sol * contracts/ens: change contract interface * contracts/ens: implement public resolver changes * contracts/ens: added ENSRegistry contract * contracts/ens: reinstate old contract code * contracts/ens: update README.md * contracts/ens: added test coverage for fallback contract * contracts/ens: added support for fallback contract * contracts/ens: removed unused contract code * contracts/ens: add todo and decode multicodec stub * add encode * vendor: add ipfs cid libraries * contracts/ens: cid sanity tests * contracts/ens: more cid sanity checks * contracts/ens: wip integration * wip * Revert "vendor: add ipfs cid libraries" This reverts commit 29d9b6b294ded903a1065d96c8149119713cfd12. * contracts/ens: removed multiformats dependencies * contracts/ens: added decode tests * contracts/ens: added eip spec test, minor changes to exiting tests * contracts/ens: moved cid decoding to own file * contracts/ens: added unit test to encode hash to content hash * contracts/ens: removed unused code * contracts/ens: fix ens tests to use cid decode and encode * contracts/ens: adjust swarm multicodecs after pr merge * contracts/ens: fix linter error * constracts/ens: address PR comments * cmd, contracts: make peoples lives easier * contracts/ens: fix linter error * contracts/ens: address PR comments
* Modified Abigen to Support Vyper (#19120)Kushagra Sharma2019-03-181-9/+27
|
* cmd/swarm/swarm-smoke: do not fail if a node does not respond to rpc (#19280)Anton Evangelatov2019-03-161-4/+12
|
* cmd/swarm: dont connect to bootnodes in tests (#19270)Elad2019-03-152-5/+22
| | | | | | * cmd/swarm: dont connect to bootnodes in tests * cmd/utils: check for empty string when parsing enode
* cmd, core, eth, trie: get rid of trie cache generations (#19262)Péter Szilágyi2019-03-144-16/+0
| | | | | | * cmd, core, eth, trie: get rid of trie cache generations * core, trie: get rid of remainder of cache gen boilerplate
* asm: remove unused parameter for function Lex (#18058)Corey Lin2019-03-141-1/+1
|
* swarm: tracing improvements (#19249)Anton Evangelatov2019-03-111-17/+7
|
* cmd/swarm/swarm-smoke: better logs when debug mode triggers (#19237)Anton Evangelatov2019-03-081-4/+24
| | | | | | * cmd/swarm/swarm-smoke: better logs for debug functionality; * cmd/swarm/swarm-smoke: fixup
* cmd/swarm: do not ignore cache size=0 (#19231)Elad2019-03-071-2/+2
|
* signer: change the stdio jsonrpc to use legacy namespace conventions (#19047)Martin Holst Swende2019-03-074-141/+209
| | | | | | | | | | | This PR will will break existing UIs, since it changes all calls like ApproveSignTransaction to be on the form ui_approveSignTransaction. This is to make it possible for the UI to reuse the json-rpc library from go-ethereum, which uses this convention. Also, this PR removes some unused structs, after import/export were removed from the external api (so no longer needs internal methods for approval) One more breaking change is introduced, removing passwords from the ApproveSignTxResponse and the likes. This makes the manual interface more like the rulebased interface, and integrates nicely with the credential storage. Thus, the way it worked before, it would be tempting for the UI to implement 'remember password' functionality. The way it is now, it will be easy instead to tell clef to store passwords and use them. If a pw is not found in the credential store, the user is prompted to provide the password.
* all: clean up and proerly abstract database accessPéter Szilágyi2019-03-065-28/+23
|
* cmd/swarm/swarm-smoke: sliding window test should not time out (#19152)Elad2019-03-062-30/+45
|
* swarm: enable p2p/discovery and disable dynamic dialling (#19189)Anton Evangelatov2019-03-011-2/+2
|
* swarm/network: WIP consider all nodes for healthy iteration (#19155)lash2019-02-283-7/+10
| | | | | | | | | | | | | | | | | | | | | | * swarm/network: WIP consider all nodes for healthy iteration * swarm/network/simulation: extend TestWaitTillHealthy to really check kads are healthy * cmd/swarm/swarm-snapshot: fixed bugs in snapshot creation binary * swarm/network/simulation: addressed PR comments * swarm/network/simulation: defer sim.Clsoe() * swarm/network/simulation: fixed wrong sim.Close() * swarm/network/simulation: addressed PR comments * cmd/swarm/swarm-snapshot: reducing default to 8 nodes, more to 4 * cmd/swarm/swarm-snapshot: extended timeout to 3 mins, or 256 nodes snapshot times out * swarm/network/simulation: More PR comments
* les, les/flowcontrol: improved request serving and flow control (#18230)Felföldi Zsolt2019-02-263-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | This change - implements concurrent LES request serving even for a single peer. - replaces the request cost estimation method with a cost table based on benchmarks which gives much more consistent results. Until now the allowed number of light peers was just a guess which probably contributed a lot to the fluctuating quality of available service. Everything related to request cost is implemented in a single object, the 'cost tracker'. It uses a fixed cost table with a global 'correction factor'. Benchmark code is included and can be run at any time to adapt costs to low-level implementation changes. - reimplements flowcontrol.ClientManager in a cleaner and more efficient way, with added capabilities: There is now control over bandwidth, which allows using the flow control parameters for client prioritization. Target utilization over 100 percent is now supported to model concurrent request processing. Total serving bandwidth is reduced during block processing to prevent database contention. - implements an RPC API for the LES servers allowing server operators to assign priority bandwidth to certain clients and change prioritized status even while the client is connected. The new API is meant for cases where server operators charge for LES using an off-protocol mechanism. - adds a unit test for the new client manager. - adds an end-to-end test using the network simulator that tests bandwidth control functions through the new API.
* cmd,swarm: enforce camel case variable names (#19060)Matthew Halpern2019-02-245-78/+78
|
* swarm: mock store listings (#19157)Janoš Guljaš2019-02-235-40/+412
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/storage/mock: implement listings methods for mem and rpc stores * swarm/storage/mock/rpc: add comments and newTestStore helper function * swarm/storage/mock/mem: add missing comments * swarm/storage/mock: add comments to new types and constants * swarm/storage/mock/db: implement listings for mock/db global store * swarm/storage/mock/test: add comments for MockStoreListings * swarm/storage/mock/explorer: initial implementation * cmd/swarm/global-store: add chunk explorer * cmd/swarm/global-store: add chunk explorer tests * swarm/storage/mock/explorer: add tests * swarm/storage/mock/explorer: add swagger api definition * swarm/storage/mock/explorer: not-zero test values for invalid addr and key * swarm/storage/mock/explorer: test wildcard cors origin * swarm/storage/mock/db: renames based on Fabio's suggestions * swarm/storage/mock/explorer: add more comments to testHandler function * cmd/swarm/global-store: terminate subprocess with Kill in tests
* cmd/swarm/global-store: use kill instead interrupt in tests (#19142)Janoš Guljaš2019-02-211-2/+2
|
* eth, node: use APPDATA env to support cygwin/msys correctly (#17786)HackyMiner2019-02-191-1/+6
| | | | | | | | | This changes default location of the data directory to use the LOCALAPPDATA environment variable, resolving issues with remote home directories an improving compatibility with Cygwin. Fixes #2239 Fixes #2237 Fixes #16437
* cmd/swarm/swarm-smoke: Trigger chunk debug on timeout (#19101)holisticode2019-02-182-10/+86
| | | | | | | | | | | | | | | | | | * cmd/swarm/swarm-smoke: first version trigger has-chunks on timeout * cmd/swarm/swarm-smoke: finalize trigger to chunk debug * cmd/swarm/swarm-smoke: fixed httpEndpoint for trigger * cmd/swarm/swarm-smoke: port * cmd/swarm/swarm-smoke: ws not rpc * cmd/swarm/swarm-smoke: added debug output * cmd/swarm/swarm-smoke: addressed PR comments * cmd/swarm/swarm-smoke: renamed track-timeout and track-chunks
* cmd: prefer nil slices over zero-length slices (#19077)Matthew Halpern2019-02-158-12/+12
|
* clef: documentation generator + docs (#19020)Martin Holst Swende2019-02-147-13/+396
| | | | | | | | * clef: implement documentation generation + remove unused struct * clef: formatting + spelling * clef: updates to doc
* clef: bidirectional communication with UI (#19018)Martin Holst Swende2019-02-133-18/+46
| | | | | | | | | | * clef: initial implementation of bidirectional RPC communication for the UI * signer: fix tests to pass + formatting * clef: fix unused import + formatting * signer: gosimple nitpicks
* clef: external signing fixes + signing data (#19003)Martin Holst Swende2019-02-123-3/+93
| | | | | | | | | | | | | | | | | | | | | | * signer/clef: make use of json-rpc notification * signer: tidy up output of OnApprovedTx * accounts/external, signer: implement remote signing of text, make accounts_sign take hexdata * clef: added basic testscript * signer, external, api: add clique signing test to debug rpc, fix clique signing in clef * signer: fix clique interoperability between geth and clef * clef: rename networkid switch to chainid * clef: enable chainid flag * clef, signer: minor changes from review * clef: more tests for signer
* common/fdlimit: cap on MacOS file limits, fixes #18994 (#19035)Martin Holst Swende2019-02-121-2/+3
| | | | | | | | | | | | | | | | * common/fdlimit: cap on MacOS file limits, fixes #18994 * common/fdlimit: fix Maximum-check to respect OPEN_MAX * common/fdlimit: return error if OPEN_MAX is exceeded in Raise() * common/fdlimit: goimports * common/fdlimit: check value after setting fdlimit * common/fdlimit: make comment a bit more descriptive * cmd/utils: make fdlimit happy path a bit cleaner
* swarm: Debug API and HasChunks() API endpoint (#18980)holisticode2019-02-071-1/+1
|
* cmd/swarm/global-store: global store cmd (#19014)Janoš Guljaš2019-02-077-3/+475
|
* Merge pull request #18991 from karalabe/archive-write-cachePéter Szilágyi2019-02-071-2/+2
|\ | | | | cmd/utils, eth: relinquish GC cache to read cache in archive mode
| * cmd/utils, eth: relinquish GC cache to read cache in archive modePéter Szilágyi2019-02-071-2/+2
| |
* | cmd/swarm/swarm-smoke: refactor generateEndpoints (#19006)Anton Evangelatov2019-02-076-191/+214
| |
* | cmd/swarm: hashes command (#19008)holisticode2019-02-072-0/+61
|/
* cmd, node, p2p/simulations: fix node account manager leak (#19004)Janoš Guljaš2019-02-075-6/+23
| | | | | | | | | | | | | | | | | | * node: close AccountsManager in new Close method * p2p/simulations, p2p/simulations/adapters: handle node close on shutdown * node: move node ephemeralKeystore cleanup to stop method * node: call Stop in Node.Close method * cmd/geth: close node.Node created with makeFullNode in cli commands * node: close Node instances in tests * cmd/geth, node: minor code style fixes * cmd, console, miner, mobile: proper node Close() termination
* cmd/puppeth: handle pre-set Petersburg number, save changed fork rulesPéter Szilágyi2019-02-061-3/+7
|
* signer, clef: implement EIP191/712 (#17789)Paul Berg2019-02-064-17/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Named functions and defined a basic EIP191 content type list * Written basic content type functions * Added ecRecover method in the clef api * Updated the extapi changelog and addded indications in the README * Changed the version of the external API * Added tests for 0x45 * Implementing UnmarshalJSON() for TypedData * Working on TypedData * Solved the auditlog issue * Changed method to signTypedData * Changed mimes and implemented the 'encodeType' function for EIP-712 * Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible * Drafted recursive encodeData * Ran goimports and gofmt * Drafted first version of EIP-712, including tests * Temporarily switched to using common.Address in tests * Drafted text/validator and and rewritten []byte as hexutil.Bytes * Solved stringified address encoding issue * Changed the property type required by signData from bytes to interface{} * Fixed bugs in 'data/typed' signs * Brought legal warning back after temporarily disabling it for development * Added example RPC calls for account_signData and account_signTypedData * Named functions and defined a basic EIP191 content type list * Written basic content type functions * Added ecRecover method in the clef api * Updated the extapi changelog and addded indications in the README * Added tests for 0x45 * Implementing UnmarshalJSON() for TypedData * Working on TypedData * Solved the auditlog issue * Changed method to signTypedData * Changed mimes and implemented the 'encodeType' function for EIP-712 * Polished docstrings, ran goimports and swapped fmt.Errorf with errors.New where possible * Drafted recursive encodeData * Ran goimports and gofmt * Drafted first version of EIP-712, including tests * Temporarily switched to using common.Address in tests * Drafted text/validator and and rewritten []byte as hexutil.Bytes * Solved stringified address encoding issue * Changed the property type required by signData from bytes to interface{} * Fixed bugs in 'data/typed' signs * Brought legal warning back after temporarily disabling it for development * Added example RPC calls for account_signData and account_signTypedData * Polished and fixed PR * Polished and fixed PR * Solved malformed data panics and also wrote tests * Solved malformed data panics and also wrote tests * Added alphabetical sorting to type dependencies * Added alphabetical sorting to type dependencies * Added pretty print to data/typed UI * Added pretty print to data/typed UI * signer: more tests for typed data * signer: more tests for typed data * Fixed TestMalformedData4 errors and renamed IsValid to Validate * Fixed TestMalformedData4 errors and renamed IsValid to Validate * Fixed more new failing tests and deanonymised some functions * Fixed more new failing tests and deanonymised some functions * Added types to EIP712 output in cliui * Added types to EIP712 output in cliui * Fixed regexp issues * Fixed regexp issues * Added pseudo-failing test * Added pseudo-failing test * Fixed false positive test * Fixed false positive test * Added PrettyPrint method * Added PrettyPrint method * signer: refactor formatting and UI * signer: make ui use new message format for signing * Fixed breaking changes * Fixed rules_test failing test * Added extra regexp for reference types * signer: more hard types * Fixed failing test, formatted files * signer: use golang/x keccak * Fixed goimports error * clef, signer: address some review concerns * Implemented latest recommendations * Fixed comments and uintint256 issue * accounts, signer: fix mimetypes, add interface to sign data with passphrase * signer, accounts: remove duplicated code, pass hash preimages to signing * signer: prevent panic in type assertions, make cliui print rawdata as quotable-safe * signer: linter fixes, remove deprecated crypto dependency * accounts: fix goimport
* accounts, eth, clique, signer: support for external signer API (#18079)Martin Holst Swende2019-02-054-22/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | * accounts, eth, clique: implement external backend + move sighash calc to backend * signer: implement account_Version on external API * accounts/external: enable ipc, add copyright * accounts, internal, signer: formatting * node: go fmt * flags: disallow --dev in combo with --externalsigner * accounts: remove clique-specific signing method, replace with more generic * accounts, consensus: formatting + fix error in tests * signer/core: remove (test-) import cycle * clique: remove unused import * accounts: remove CliqueHash and avoid dependency on package crypto * consensus/clique: unduplicate header encoding
* cmd, core, params: add support for GoerliPéter Szilágyi2019-02-043-2/+23
|
* cmd/swarm/swarm-smoke: remove wrong metrics (#18970)Anton Evangelatov2019-01-304-24/+4
|
* cmd/swarm/swarm-smoke: sliding window test (#18967)Elad2019-01-306-298/+416
|
* cmd,eth: 16400 Add an option to stop geth once in sync. WIP for light mode ↵lhendre2019-01-303-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#17321) * cmd, eth: Added in the flag to step geth once sync based on input * cmd, eth: 16400 Add an option to stop geth once in sync. * cmd: 16400 Add an option to stop geth once in sync. WIP * cmd/geth/main, les/fletcher: added in light mode support * cmd/geth/main, les/fletcher: Cleaned Comments and code for light mode * cmd: 16400 Fixed formatting issue and cleaned code * cmd, eth, les: 16400 Fixed formatting issues * cmd, eth, les: Performed gofmt to update formatting * cmd, eth, les: Fixed bugs resulting formatting * cmd/geth, eth/, les: switched to downloader event * eth: Fixed styling and gen_config * eth/: Fix nil error in config file * cmd/geth: Updated countdown log * les/fetcher.go: Removed depcreated channel * eth/downloader.go: Removed deprecated select * cmd/geth, cmd/utils: Fixed minor issues * eth: Reverted config files to proper format * eth: Fixed typo in config file * cmd/geth, eth/down: Updated code to use header time stamp * eth/downloader: Changed the time threshold to 10 minutes * cmd/geth, eth/downloader: Updated downloading event to pass latest header * cmd/geth: Updated main to use right timer object * cmd/geth: Removed unused failed event * cmd/geth: added in correct time field with type assertion * cmd/geth, cmd/utils: Updated flag to use boolean * cmd/geth, cmd/utils, eth/downloader: Cleaned up code based on recommendations * cmd/geth: Removed unneeded import * cmd/geth, eth/downloader: fixed event field and suggested changes * cmd/geth, cmd/utils: Updated flag and linting issue
* cmd/utils: allow for multiple influxdb tags (#18520)Anton Evangelatov2019-01-295-23/+105
| | | | | This PR is replacing the metrics.influxdb.host.tag cmd-line flag with metrics.influxdb.tags - a comma-separated key/value tags, that are passed to the InfluxDB reporter, so that we can index measurements with multiple tags, and not just one host tag. This will be useful for Swarm, where we want to index measurements not just with the host tag, but also with bzzkey and git commit version (for long-running deployments).
* cmd/bootnode: print node URL on startup (#18516)Felix Lange2019-01-251-1/+12
| | | Also say that cmd/bootnode is not for production use.
* cmd/utils: allow empty bootnodes flag override (#18509)Anton Evangelatov2019-01-241-4/+6
|
* swarm/version: commit version added (#18510)gluk2562019-01-241-3/+5
|
* les: implement ultralight client (#16904)b00ris2019-01-243-0/+60
| | | | For more information about this light client mode, read https://hackmd.io/s/HJy7jjZpm
* swarm: bootnode-mode, new bootnodes and no p2p package discovery (#18498)Anton Evangelatov2019-01-247-68/+53
|
* core, cmd/puppeth: implement constantinople fix, disable EIP-1283 (#18486)Martin Holst Swende2019-01-243-46/+61
| | | | | | | | | | | | | | | | | This PR adds a new fork which disables EIP-1283. Internally it's called Petersburg, but the genesis/config field is ConstantinopleFix. The block numbers are: 7280000 for Constantinople on Mainnet 7280000 for ConstantinopleFix on Mainnet 4939394 for ConstantinopleFix on Ropsten 9999999 for ConstantinopleFix on Rinkeby (real number decided later) This PR also defaults to using the same ConstantinopleFix number as whatever Constantinople is set to. That is, it will default to mainnet behaviour if ConstantinopleFix is not set.This means that for private networks which have already transitioned to Constantinople, this PR will break the network unless ConstantinopleFix is explicitly set!
* GraphQL master FF for review (#18445)Kris Shinn2019-01-213-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Initial work on a graphql API * Added receipts, and more transaction fields. * Finish receipts, add logs * Add transactionCount to block * Add types and . * Update Block type to be compatible with ethql * Rename nonce to transactionCount in Account, to be compatible with ethql * Update transaction, receipt and log to match ethql * Add query operator, for a range of blocks * Added ommerCount to Block * Add transactionAt and ommerAt to Block * Added sendRawTransaction mutation * Add Call and EstimateGas to graphQL API * Refactored to use hexutil.Bytes instead of HexBytes * Replace BigNum with hexutil.Big * Refactor call and estimateGas to use ethapi struct type * Replace ethgraphql.Address with common.Address * Replace ethgraphql.Hash with common.Hash * Converted most quantities to Long instead of Int * Add support for logs * Fix bug in runFilter * Restructured Transaction to work primarily with headers, so uncle data is reported properly * Add gasPrice API * Add protocolVersion API * Add syncing API * Moved schema into its own source file * Move some single use args types into anonymous structs * Add doc-comments * Fixed backend fetching to use context * Added (very) basic tests * Add documentation to the graphql schema * Fix reversion for formatting of big numbers * Correct spelling error * s/BigInt/Long/ * Update common/types.go * Fixes in response to review * Fix lint error * Updated calls on private functions * Fix typo in graphql.go * Rollback ethapi breaking changes for graphql support Co-Authored-By: Arachnid <arachnid@notdot.net>
* cmd/swarm/swarm-smoke: use ResettingTimer instead of Counters for times (#18479)holisticode2019-01-191-5/+2
|
* cmd/swarm: use resetting timer to measure fetch time (#18474)Anton Evangelatov2019-01-181-5/+3
|
* cmd/swarm/swarm-snapshot: disable tests on windows (#18478)Elad2019-01-181-0/+5
|
* Upload speed (#18442)holisticode2019-01-182-0/+102
|
* cmd/swarm/swarm-snapshot: swarm snapshot generator (#18453)Elad2019-01-164-0/+426
| | | | | | | | | | | | | | | | | | | | | | | | | | * cmd/swarm/swarm-snapshot: add binary to create network snapshots * cmd/swarm/swarm-snapshot: refactor and extend tests * p2p/simulations: remove unused triggerChecks func and fix linter * internal/cmdtest: raise the timeout for killing TestCmd * cmd/swarm/swarm-snapshot: add more comments and other minor adjustments * cmd/swarm/swarm-snapshot: remove redundant check in createSnapshot * cmd/swarm/swarm-snapshot: change comment wording * p2p/simulations: revert Simulation.Run from master https://github.com/ethersphere/go-ethereum/pull/1077/files#r247078904 * cmd/swarm/swarm-snapshot: address pr comments * swarm/network/simulations/discovery: removed snapshot write to file * cmd/swarm/swarm-snapshot, swarm/network/simulations: removed redundant connection event check, fixed lint error
* cmd/evm: Add --vm.evm flag to support EVMC (#18457)Paweł Bylica2019-01-162-2/+9
|
* cmd/geth: update cli copyright years (#18455)dragonvslinux2019-01-162-2/+2
| | | | | | | | | | * Update copyright 2018 -> 2019 * Update copyright 2018 -> 2019
* cmd/geth: support dumpconfig optionally saving to file (#18327)Sean2019-01-071-3/+12
| | | | | | * Changed dumpConfig function to optionally save to file * Added O_TRUNC flag to file open and cleaned up code
* Merge pull request #18390 from realdave/remove-sha3-pkgPéter Szilágyi2019-01-041-2/+2
|\ | | | | vendor, crypto, swarm: switch over to upstream sha3 package
| * vendor, crypto, swarm: switch over to upstream sha3 packageDave McGregor2019-01-041-2/+2
| |
* | cmd/puppeth: fix panic error when export aleth genesis wo/ ↵Ha ĐANG2019-01-041-1/+5
|/ | | | | | | | precompile-addresses (#18344) * cmd/puppeth: fix panic error when export aleth genesis wo/ precompile-addresses * cmd/puppeth: don't need to handle duplicate set
* swarm: remove unused/dead code (#18351)Anton Evangelatov2018-12-241-4/+0
|
* cmd/geth, core, eth: implement Constantinople override flag (#18273)Martin Holst Swende2018-12-113-3/+9
| | | | | | | | * geth/core/eth: implement constantinople override flag * les: implemnent constantinople override flag for les clients * cmd/geth, eth, les: fix typo, move flag to experimentals
* cmd/puppeth: support latest docker compose, expose faucet UDPPéter Szilágyi2018-12-116-2/+9
|
* cmd/faucet: fix faucet static peer regressionPéter Szilágyi2018-12-111-1/+1
|
* cmd/swarm, metrics, swarm/api/client, swarm/storage, swarm/metrics, ↵Elad2018-12-113-62/+233
| | | | swarm/api/http: add instrumentation (#18274)
* cmd/utils, eth: minor polishes on whitelist codePéter Szilágyi2018-12-101-23/+18
|
* cmd, eth: Add support for `--whitelist <blocknum>=<hash>,...` flagRyan Schneider2018-12-103-0/+35
| | | | | * Rejects peers that respond with a different hash for any of the passed in block numbers. * Meant for emergency situations when the network forks unexpectedly.
* cmd/evm, core/vm, eth: implement api methods to do stdjson dump to local ↵Martin Holst Swende2018-12-103-86/+2
| | | | filesystem
* cmd/puppeth: fix rogue quote in alethGenesisSpec JSON (#18262)Javier Peletier2018-12-101-1/+1
|
* Merge pull request #18211 from karalabe/drop-fd-limitPéter Szilágyi2018-12-071-8/+3
|\ | | | | cmd/utils: max out the OS file allowance, don't cap to 2K
| * cmd/utils: max out the OS file allowance, don't cap to 2KPéter Szilágyi2018-11-291-8/+3
| |
* | cmd/puppeth: chain import/export via wizard, minor polishesPéter Szilágyi2018-12-0412-105/+189
| |
* | cmd/puppeth: implement chainspec convertersMartin Holst Swende2018-12-039-161/+779
| |
* | cmd/puppeth: enforce lowercase network namesPéter Szilágyi2018-12-032-5/+5
| |
* | cmd/swarm: add flag for application name (swarm or swarm-private) (#18189)Anton Evangelatov2018-11-303-7/+14
|/ | | | | | | | | | * cmd/swarm: add flag for application name (swarm or swarm-private) * cmd/swarm/swarm-smoke: return correct exit code * cmd/swarm/swarm-smoke: remove colorable * remove swarm/grafana_dashboards
* cmd/evm: commit statedb if dump is requested (#18208)Matthew Di Ferrante2018-11-291-0/+1
| | | Add a call `statedb.Commit(true)` if the `Dump` flag is on, as otherwise the `storage` output in the dump is always empty.
* cmd/swarm: update should error on manifest mismatch (#18047)Javier Peletier2018-11-272-6/+41
| | | | | | | | | | * cmd/swarm: fix ethersphere/go-ethereum#979: update should error on manifest mistmatch * cmd/swarm: fixed comments and remove sprintf from log.Info * cmd/swarm: remove unnecessary comment
* Remove multihash from Swarm bzz:// for Feeds (#18175)Javier Peletier2018-11-261-4/+2
|
* cmd/swarm: FUSE do not require --ipcpath (#18112)Ferenc Szabo2018-11-234-45/+69
| | | | | | | | | - Have `${DataDir}/bzzd.ipc` as IPC path default. - Respect the `--datadir` flag. - Keep only the global `--ipcpath` flag and drop the local `--ipcpath` flag as flags might overwrite each other. (Note: before global `--ipcpath` was ignored even if it was set) fixes ethersphere#795
* cmd/swarm/swarm-smoke: update smoke tests to fit the new scheme for the k8s ↵Anton Evangelatov2018-11-192-12/+15
| | | | cluster (#18104)
* cmd/swarm: speed up tests - use global cluster (#18129)Anton Evangelatov2018-11-196-92/+101
|
* cmd, core, eth, light, trie: add trie read caching layerPéter Szilágyi2018-11-153-6/+20
|
* cmd/swarm, swarm/api/http, swarm/bmt, swarm/fuse, swarm/network/stream, ↵Alexey Sharov2018-11-146-79/+29
| | | | | | swarm/storage, swarm/storage/encryption, swarm/testutil: use pseudo-random instead of crypto-random for test files content generation (#18083) - Replace "crypto/rand" to "math/rand" for files content generation - Remove swarm/network_test.go.Shuffle and swarm/btm/btm_test.go.Shuffle - because go1.9 support dropped (see https://github.com/ethereum/go-ethereum/pull/17807 and comments to swarm/network_test.go.Shuffle)
* Imply that SwarmApiFlag is the API endpoint to connect to, not to listen on ↵Andrew Chiw2018-11-121-1/+1
| | | | (#18071)
* rawdb: remove unused parameter for WritePreimages func (#18059)Corey Lin2018-11-091-2/+2
| | | | | | | * rawdb: remove unused parameter for WritePreimages func and modify a spelling mistake * rawdb: update the doc for function WritePreimages
* swarm, cmd/swarm: address ineffectual assignments (#18048)Anton Evangelatov2018-11-083-2/+10
| | | | | | | | * swarm, cmd/swarm: address ineffectual assignments * swarm/network: remove unused vars from testHandshake * swarm/storage/feed: revert cursor changes
* cmd/swarm: auto resolve default path according to env flag (#17960)Elad2018-11-042-10/+29
|
* cmd/swarm/swarm-smoke: fix issue that loop variable capture in func (#17992)Roc Yu2018-10-291-8/+5
|
* cmd/clef: replace password arg with prompt (#17897)Johns Beharry2018-10-261-15/+13
| | | | | | | | | | * cmd/clef: replace password arg with prompt (#17829) Entering passwords on the command line is not secure as it is easy to recover from bash_history or the process table. 1. The clef command addpw was renamed to setpw to better describe the functionality 2. The <password> argument was removed and replaced with an interactive prompt * cmd/clef: remove undeclared variable
* core/vm: adds refund as part of the json standard trace (#17910)Martin Holst Swende2018-10-231-8/+9
| | | | | | | This adds the global accumulated refund counter to the standard json output as a numeric json value. Previously this was not very interesting since it was not used much, but with the new sstore gas changes the value is a lot more interesting from a consensus investigation perspective.
* cmd/bootnode: fix -writeaddress output (#17932)Felix Lange2018-10-191-2/+2
|
* cmd/geth: don't set GOMAXPROCS by default (#17148)Wenbiao Zheng2018-10-161-3/+0
| | | | This is no longer needed because Go uses all CPUs by default. The change allows setting GOMAXPROCS in environment if needed.
* cmd/clef: fix typos in README (#17908)Grachev Mikhail2018-10-161-3/+3
|
* cmd/swarm: Smoke test for Swarm Feed (#17892)lash2018-10-123-6/+351
|
* cmd/swarm: split flags and cli command declarations to the relevant files ↵Elad2018-10-1211-422/+468
| | | | (#17896)
* p2p, p2p/discover: add signed ENR generation (#17753)Felix Lange2018-10-121-5/+6
| | | | | | | | | | | | | | | This PR adds enode.LocalNode and integrates it into the p2p subsystem. This new object is the keeper of the local node record. For now, a new version of the record is produced every time the client restarts. We'll make it smarter to avoid that in the future. There are a couple of other changes in this commit: discovery now waits for all of its goroutines at shutdown and the p2p server now closes the node database after discovery has shut down. This fixes a leveldb crash in tests. p2p server startup is faster because it doesn't need to wait for the external IP query anymore.
* cmd/swarm: speed up tests (#17878)Elad2018-10-094-31/+38
| | | These minor changes already shaved off around 30s.
* cmd/clef: encrypt the master seed on disk (#17704)Martin Holst Swende2018-10-092-47/+141
| | | | | | | | | | | | | | * cmd/clef: encrypt master seed of clef Signed-off-by: YaoZengzeng <yaozengzeng@zju.edu.cn> * keystore: refactor for external use of encryption * clef: utilize keystore encryption, check flags correctly * clef: validate master password * clef: add json wrapping around encrypted master seed
* cmd/utils: fix bug when checking for flag value conflicts (#17803)Ryan Schneider2018-10-081-1/+4
|
* cmd/abigen: support for --type flag with piped data (#17648)Philip Schlump2018-10-061-3/+8
|
* cmd/puppeth: fix node URL in health check (#17802)Felix Lange2018-10-041-4/+5
| | | | | | | | * cmd/puppeth: fix node URL in health check * cmd/puppeth: set external IP for geth * cmd/puppeth: fix enode cast issue
* cmd/evm: fix state dump (#17832)cdetrio2018-10-041-4/+4
|
* cmd/swarm: disable tests under Windows until they are fixed (#17827)Anton Evangelatov2018-10-041-0/+17
|
* Merge pull request #17796 from epiclabs-io/mru-feedsViktor Trón2018-10-033-91/+91
|\ | | | | swarm/storage/feeds: Renamed MRU to Swarm Feeds
| * swarm/storage/feed: Renamed packageJavier Peletier2018-10-032-18/+18
| |
| * swarm/storage/feeds: renamed vars that can conflict with package nameJavier Peletier2018-10-031-4/+4
| |
| * swarm/storage/feeds: removed capital Feed throughoutJavier Peletier2018-10-033-6/+6
| |
| * swarm/storage/feeds: Final package rename and moved filesJavier Peletier2018-10-032-21/+21
| |
| * swarm/storage/mru: Renamed rest of MRU referencesJavier Peletier2018-10-033-76/+76
| |
| * swarm/storage/mru: Renamed all identifiers to FeedsJavier Peletier2018-10-032-5/+5
| |
* | swarm: schemas and migrations (#17813)Anton Evangelatov2018-10-032-23/+0
|/
* cmd/swarm: fix appveyor build (#17808)Elad2018-10-023-7/+24
|
* Merge pull request #17771 from ethersphere/cmd-config-errorsViktor Trón2018-10-021-13/+30
|\ | | | | swarm: handle errors in cmdLineOverride and envVarsOverride
| * cmd/swarm: fix TestConfigFileOverridesJanos Guljas2018-09-282-3/+6
| |
| * cmd/swarm: handle errors in cmdLineOverride and envVarsOverride functionsJanos Guljas2018-09-272-13/+27
| |
* | Merge pull request #17799 from ethersphere/correct_swarm_versionViktor Trón2018-10-021-2/+2
|\ \ | | | | | | cmd/swarm: correct swarm version on --help
| * | cmd/swarm: correct swarm version on --helpAnton Evangelatov2018-10-011-2/+2
| | |
* | | cmd/swarm: disable export and upload tests on WindowsAnton Evangelatov2018-10-012-0/+4
| | |
* | | cmd/swarm, swarm: cross-platform Content-Type detection (#17782)Alexey Sharov2018-10-014-23/+1957
|/ / | | | | | | | | | | | | - Mime types generator (Standard "mime" package rely on system-settings, see mime.osInitMime) - Changed swarm/api.Upload: - simplify I/O throttling by semaphore primitive and use file name where possible - f.Close() must be called in Defer - otherwise panic or future added early return will cause leak of file descriptors - one error was suppressed
* | cmd/swarm: remove swarm binary (#17784)Wenbiao Zheng2018-09-301-0/+0
| |
* | cmd/swarm: respect --loglevel in run_test helpers (#17739)Ferenc Szabo2018-09-291-2/+2
| | | | | | | | | | | | | | When CLI tests were spanning new nodes, the log level verbosity was hard coded as 6. So the Swarm process was always polluting the test output with TRACE level logs. Now `go test -v ./cmd/swarm -loglevel 0` works as expected.
* | Merge pull request #17781 from ethersphere/trim_newlineViktor Trón2018-09-291-2/+2
|\ \ | | | | | | cmd/swarm: trim new lines from files
| * | cmd/swarm: trim new lines from filesAnton Evangelatov2018-09-281-2/+2
| | |
* | | Clef: USB hw wallet support (#17756)Martin Holst Swende2018-09-281-0/+16
|/ / | | | | | | | | | | * signer: implement USB interaction with hw wallets * signer: fix failing testcases
* | 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