d8787230fa
eth, les, light: enforce CHT checkpoints on fast-sync too
2019-04-17 14:56:58 +03:00
45730cfab3
cmd/geth: fix accidental --rpccorsdomain and --rpcvhosts removal
2019-04-09 10:56:50 +03:00
e872ba7a9e
eth, les, geth: implement cli-configurable global gas cap for RPC calls ( #19401 )
...
* eth, les, geth: implement cli-configurable global gas cap for RPC calls
* graphql, ethapi: place gas cap in DoCall
* ethapi: reformat log message
2019-04-08 15:15:13 +03:00
af401d03a3
all: simplify timestamps to uint64 ( #19372 )
...
* 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
2019-04-08 12:00:42 +03:00
4f908db69e
cmd/utils: allow for multiple influxdb tags ( #18520 )
...
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).
(cherry picked from commit 21acf0bc8d
)
2019-02-19 17:34:48 +01:00
996230174c
cmd/swarm/swarm-smoke: Trigger chunk debug on timeout ( #19101 )
...
* 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
(cherry picked from commit 62d7688d0a
)
2019-02-19 13:11:53 +01:00
85217b08bd
cmd/swarm/global-store: global store cmd ( #19014 )
...
(cherry picked from commit 33d0a0efa6
)
2019-02-19 13:11:51 +01:00
d1ace4f344
swarm: Debug API and HasChunks() API endpoint ( #18980 )
...
(cherry picked from commit 41597c2856
)
2019-02-19 13:06:13 +01:00
637a75d61a
cmd/swarm/swarm-smoke: refactor generateEndpoints ( #19006 )
...
(cherry picked from commit d212535ddd
)
2019-02-19 13:05:55 +01:00
355d55bd34
cmd/swarm/swarm-smoke: remove wrong metrics ( #18970 )
...
(cherry picked from commit c5c9cef5c0
)
2019-02-19 13:05:37 +01:00
7038b5734c
cmd/swarm/swarm-smoke: sliding window test ( #18967 )
...
(cherry picked from commit b91bf08876
)
2019-02-19 13:05:26 +01:00
1ecf2860cf
cmd/swarm: hashes command ( #19008 )
...
(cherry picked from commit 7f55b0cbd8
)
2019-02-19 12:57:53 +01:00
e247dcc141
swarm/version: commit version added ( #18510 )
...
(cherry picked from commit ad13d2d407
)
2019-02-19 12:56:31 +01:00
4976fcc91a
swarm: bootnode-mode, new bootnodes and no p2p package discovery ( #18498 )
...
(cherry picked from commit bbd120354a
)
2019-02-19 12:56:30 +01:00
878aa58ec6
cmd/swarm: use resetting timer to measure fetch time ( #18474 )
...
(cherry picked from commit a0b0db6305
)
2019-02-19 12:56:30 +01:00
4625b1257f
cmd/swarm/swarm-smoke: use ResettingTimer instead of Counters for times ( #18479 )
...
(cherry picked from commit 560957799a
)
2019-02-19 12:56:30 +01:00
21d54bcaac
cmd/swarm/swarm-snapshot: disable tests on windows ( #18478 )
...
(cherry picked from commit 632135ce4c
)
2019-02-19 12:56:30 +01:00
7383db4dac
Upload speed ( #18442 )
...
(cherry picked from commit 257bfff316
)
2019-02-19 12:56:30 +01:00
a3f31f51f3
cmd/swarm/swarm-snapshot: swarm snapshot generator ( #18453 )
...
* 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
(cherry picked from commit 34f11e752f
)
2019-02-19 12:54:56 +01:00
048b463b30
common/fdlimit: cap on MacOS file limits, fixes #18994 ( #19035 )
...
* 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
(cherry picked from commit f48da43bae
)
2019-02-19 10:57:49 +02:00
2072c26a96
cmd, core, params: add support for Goerli
...
(cherry picked from commit b0ed083ead
)
2019-02-19 10:53:47 +02:00
18f702faf7
cmd/puppeth: handle pre-set Petersburg number, save changed fork rules
2019-02-09 17:38:00 +01:00
c7664b0636
core, cmd/puppeth: implement constantinople fix, disable EIP-1283 ( #18486 )
...
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!
2019-01-29 17:49:27 +01:00
428eabe28d
cmd/geth: support dumpconfig optionally saving to file ( #18327 )
...
* Changed dumpConfig function to optionally save to file
* Added O_TRUNC flag to file open and cleaned up code
2019-01-07 10:56:50 +02:00
391d4cb9b5
Merge pull request #18390 from realdave/remove-sha3-pkg
...
vendor, crypto, swarm: switch over to upstream sha3 package
2019-01-04 09:51:12 +02:00
3f421aca54
cmd/puppeth: fix panic error when export aleth genesis wo/ precompile-addresses ( #18344 )
...
* cmd/puppeth: fix panic error when export aleth genesis wo/ precompile-addresses
* cmd/puppeth: don't need to handle duplicate set
2019-01-04 09:48:15 +02:00
33d233d3e1
vendor, crypto, swarm: switch over to upstream sha3 package
2019-01-04 09:26:07 +02:00
9e9fc87e70
swarm: remove unused/dead code ( #18351 )
2018-12-23 17:31:32 +01:00
83a9a73b89
cmd/geth, core, eth: implement Constantinople override flag ( #18273 )
...
* 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
2018-12-11 14:19:03 +02:00
38c3d88cea
cmd/puppeth: support latest docker compose, expose faucet UDP
2018-12-11 13:41:41 +02:00
69a8d9841a
cmd/faucet: fix faucet static peer regression
2018-12-11 13:41:18 +02:00
bb724080ca
cmd/swarm, metrics, swarm/api/client, swarm/storage, swarm/metrics, swarm/api/http: add instrumentation ( #18274 )
2018-12-11 09:21:58 +01:00
31b3334922
cmd/utils, eth: minor polishes on whitelist code
2018-12-10 14:47:01 +02:00
48b70ecff1
cmd, eth: Add support for --whitelist <blocknum>=<hash>,...
flag
...
* 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.
2018-12-10 14:30:06 +02:00
42a914a84f
cmd/evm, core/vm, eth: implement api methods to do stdjson dump to local filesystem
2018-12-10 12:33:50 +02:00
c1d462ee5d
cmd/puppeth: fix rogue quote in alethGenesisSpec JSON ( #18262 )
2018-12-10 11:16:19 +02:00
d2328b604a
Merge pull request #18211 from karalabe/drop-fd-limit
...
cmd/utils: max out the OS file allowance, don't cap to 2K
2018-12-07 14:10:03 +02:00
d4415f5e40
cmd/puppeth: chain import/export via wizard, minor polishes
2018-12-04 12:12:40 +02:00
8698fbabf6
cmd/puppeth: implement chainspec converters
2018-12-03 12:34:41 +02:00
4825d9c3dd
cmd/puppeth: enforce lowercase network names
2018-12-03 12:17:08 +02:00
7e7781ffaa
cmd/swarm: add flag for application name (swarm or swarm-private) ( #18189 )
...
* 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
2018-11-29 18:43:15 +02:00
cf62bd2e88
cmd/utils: max out the OS file allowance, don't cap to 2K
2018-11-29 12:47:29 +02:00
3d21d455dc
cmd/evm: commit statedb if dump is requested ( #18208 )
...
Add a call `statedb.Commit(true)` if the `Dump` flag is on, as otherwise the `storage` output in the dump is always empty.
2018-11-29 09:29:12 +01:00
4f0d978eaa
cmd/swarm: update should error on manifest mismatch ( #18047 )
...
* 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
2018-11-26 17:37:59 +01:00
2714e8f091
Remove multihash from Swarm bzz:// for Feeds ( #18175 )
2018-11-26 16:10:22 +01:00
76f5f662cc
cmd/swarm: FUSE do not require --ipcpath ( #18112 )
...
- 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
2018-11-23 01:32:34 +01:00
d31f1f4fdb
cmd/swarm/swarm-smoke: update smoke tests to fit the new scheme for the k8s cluster ( #18104 )
2018-11-19 14:58:10 +01:00
6b6c4d1c27
cmd/swarm: speed up tests - use global cluster ( #18129 )
2018-11-19 14:57:22 +01:00
434dd5bc00
cmd, core, eth, light, trie: add trie read caching layer
2018-11-15 12:22:13 +02:00
eb8fa3cc89
cmd/swarm, swarm/api/http, swarm/bmt, swarm/fuse, swarm/network/stream, 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)
2018-11-14 09:21:14 +01:00