Pratik Patil
e17ee36ebe
Changed default value of maxpeers from 200 to 50, update docs ( #555 )
...
* changed default of maxpeers from 200 to 50
* docs: update additional notes for new-cli
* docs: update additional notes for new-cli
* small bug fix in the script to fix shopt issue
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-10-21 08:54:38 +05:30
Evgeny Danilenko
e699254142
Use atomic pointer in go 1.19 ( #446 )
...
* use atomic pointer
* golang version
* golang version
* go1.19
* linters
* Bump golangci-lint
* linters
* linters
* linters after merge
* generic logger
* generic logger
* logger
* logger
* linters
* bump toml
* linters1
* linters
* linters
* linter
* linter
* linters
* linters
* linters
2022-08-09 22:11:09 +03:00
Pratik Patil
16408ba324
internal/cli, cmd/geth: replaced package naoina/toml with BurntSushi/toml and updated config name-tags ( #486 )
...
* removed package naoina/toml from dumpconfig and added BurntSushi/toml
* updated cmd/gethconfig.go
2022-08-05 14:56:41 +05:30
Krishna Upadhyaya
385aff85f0
Implemented heimdall gRPC client
2022-07-26 02:18:37 +05:30
Arpit Temani
2321e64ed7
V0.2.16 candidate ( #373 )
...
* merge geth v1.10.15
* fix: Removed FastSync from cli server
* fix: TestHeadersRLPStorage
* Added t.skip(ETH2 in bor)
* fix: flow in create consensus engine
* bumped version
* Fix typo
* increase block time
* remove file
* bumped version
* merge gethv1.10.17
* bumped version
* fix failing tests
* Bump Go version to v1.18 (#368 )
* Bump Go version to v1.18.1
* Build using netgo tag
This will create a static build using Go native networking stack.
Checked and it works stable for all archs and distros.
* Fix meta
* Bump version
* Meta as stable
Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Sandeep Sreenath <sandeep.sreenath@gmail.com>
Co-authored-by: Victor Castell <victor@victorcastell.com>
2022-05-06 12:31:48 +02:00
Sandeep Sreenath
7ff6869d25
Merge pull request #222 from chuwt/chuwt-1029
...
Fix default attach endpoint
2022-04-20 15:31:47 +05:30
Victor Castell
53d8947bfe
Do not attempt DNS discovery and change default sync flag ( #283 )
...
* Prefer full sync
* Do not set DNS discovery
2022-01-05 08:41:40 +01:00
Sandeep Sreenath
983e32baf2
merged geth v1.10.10
2021-11-22 19:04:07 +05:30
chuwt
b86a566f8e
Fix default attach endpoint
2021-10-29 22:15:35 +08:00
noam-alchemy
633e7ef478
eth,rpc: allow for flag configured timeouts for eth_call ( #23645 )
...
* eth,rpc: allow for flag configured timeouts for eth_call
* lint: account for package-local import order
* cr: rename `rpc.calltimeout` to `rpc.evmtimeout`
2021-10-12 10:46:04 +02:00
Sean
ec2b43c2c3
cmd/geth: fix typo in error message ( #23697 )
2021-10-08 14:57:49 +02:00
Guillaume Ballet
443afc975c
core/state: move state account to core/types + abstracted "write account to trie" ( #23567 )
...
* core/state: abstracted "write account to trie" method
* fix appveyor build
* Apply suggestions from code review
Co-authored-by: Martin Holst Swende <martin@swende.se>
* review feedback
* core/state/accounts: move Account to core/types
* core/types: rename Account -> StateAccount
* core/state: restore EncodeRLP for stateObject
* core/types: add the missing file
* more review feedback
* more review feedback
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-09-28 10:48:07 +02:00
Krishna Upadhyaya
73af371938
update: default sync mode to snap
2021-09-21 16:13:49 +05:30
Krishna Upadhyaya
00b5788793
change: mumbai to bor-mumbai
2021-09-21 14:58:11 +05:30
Thad Guidry
d8211c7ec7
console: add note about typing exit to exit ( #23602 )
...
* add explicit note about typing exit in console
* Add note about typing exit as alternative
2021-09-21 11:19:46 +03:00
Uttam Singh
6c7a9e1c41
minor changes
2021-09-20 11:38:39 +05:30
Uttam Singh
b897d9fd64
minor changes
2021-09-20 11:26:29 +05:30
Uttam Singh
da11e05e45
minor changes
2021-09-19 21:23:01 +05:30
Uttam Singh
f088f1f24f
Added BorMainnet
2021-09-17 13:39:29 +05:30
Zachinquarantine
9a0df80bbc
cmd/geth, cmd/utils: remove legacy rpc flags ( #23358 )
...
* remove rpc flags
* remove legacy rpc flags
* remove legacy rpc flags
* remove legacy rpc commands
* (hopefully) fix most of the build errors
* fix build errors
https://app.travis-ci.com/github/ethereum/go-ethereum/jobs/530318686
* cmd/utils: fix syntax error
* empty commit to unbreak travis ci
* fix syntax error
* syntax fixes
* syntax fixes
* fix
fixes "cmd/geth/usage.go:234:7: expected '(', found init (typecheck)"
* fix
* various fixes in usage.go
* various fixes in flags.go
* adds extra space
reverts the spacing to how it was before I resolved the merge conflict
* more fixes in usage.go
* fix
fix for cmd/geth/usage.go:243:17: expected operand, found ':=' (typecheck) in travis
* Update cmd/utils/flags.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
* fix error
fixes these errors:
cmd/utils/flags_legacy.go:21:2: "strings" imported but not used (typecheck)
"strings"
^
cmd/utils/flags_legacy.go:24:2: "github.com/ethereum/go-ethereum/node" imported but not used (typecheck)
"github.com/ethereum/go-ethereum/node"
^
* goimports
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-09-07 10:52:58 +02:00
Krishna Upadhyaya
6f54d66cac
add: mumbai geth config updated
2021-09-02 19:55:04 +05:30
Krishna Upadhyaya
700d7bcdf4
add: mumbai network flag
2021-09-01 01:56:09 +05:30
Krishna Upadhyaya
a49bc2172a
Merge remote-tracking branch 'go-ethereum/master' into krishna/header-hash-fix
2021-08-28 12:50:40 +05:30
Sina Mahmoodi
108eec3fee
node: remove dependency on wallet backend packages ( #23019 )
...
* accounts: new AddBackends method in manager
* node,cmd/geth: mv accman backend init to cmd/geth
* node,cmd/geth: mv scrypt config downstreawm from node
* accounts: use static buffer size for accman sub chan
minor fix
* accounts,cmd/geth: update accman backends through its event loop
* accounts,node: add comments
* accounts: un-export newBackendEvent
* accounts: use chan instead of wg in newBlockEvent
* node: rename isKeyDirEphem
* accounts,cmd: AddBackends->AddBackend
* accounts: fix potential blocking when adding backend
2021-08-25 22:34:22 +02:00
Ivan Bogatyy
b69f5ca7d4
cmd/utils: fix typo in variable name ( #23451 )
2021-08-24 21:54:00 +03:00
Arpit Temani
7e76e9f27c
Merge tag 'v1.10.8' of github.com:ethereum/go-ethereum into arpit/v1.10.8-upgrade
2021-08-24 12:56:59 +05:30
Arpit Temani
b27dca6bbf
merge v1.10.7
2021-08-19 15:56:13 +05:30
Zachinquarantine
85b9bdd641
cmd, core: remove calaveras testnet ( #23366 )
...
Removes references to the short-lived Calaveras testnet
2021-08-17 18:43:25 +02:00
jwasinger
6902485767
cmd, metrics: add support for influxdb-v2 (cherry-picking from italoacasas' changes), leave existing support for v1 to maintain backwards-compatibility. ( #23194 )
...
This PR adds flag to enable InfluxDB v2 (--metrics.influxdbv2), flags for v2-specific features (--metrics.influxdb.token, --metrics.influxdb.bucket), also carries over addition of support for specifying organization (--metrics.influxdb.organization), but still retains backwards compatibility with InfluxDB v1.
2021-08-17 18:40:14 +02:00
gary rong
6d175460df
cmd, core, eth, miner: deprecate miner.gastarget flag ( #23213 )
2021-08-10 11:28:33 +03:00
Martin Holst Swende
5c89ec9b98
cmd/geth: update vulnerability testdata ( #23252 )
2021-07-27 16:19:48 +02:00
Sina Mahmoodi
5441a8fa47
all: remove noop vm config flags ( #23111 )
...
* all: rm external interpreter and ewasm config
* core/vm: rm Interpreter interface
* cmd/geth: deprecate interpreter config fields
2021-07-06 22:03:09 +02:00
Sina Mahmoodi
ec88bd0cd0
cmd/geth: dont fail on deprecated toml config fields ( #23118 )
2021-06-30 12:57:32 +02:00
piersy
0e6961366a
cmd/geth: fix IPC probe in les test ( #23094 )
...
Previously, the test waited a second and then failed if geth had not
started. This caused the test to fail intermittently. This change checks
whether the IPC is open 10 times over a 5 second period and then fails
if geth is still not available.
2021-06-25 12:40:37 +02:00
Martin Holst Swende
08ea52e77a
cmd/geth, core, params: replace baikal with calaveras ( #22972 )
...
* cmd/geth, core, params: replace baikal with calaveras
* params: fix genesis hash for Calaveras
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-05-31 10:06:48 +03:00
Martin Holst Swende
2e7714f864
cmd/utils: avoid large alloc in --dev mode ( #22949 )
...
* cmd/utils: avoid 1Gb alloc in --dev mode
* cmd/geth: avoid 512Mb alloc in genesis query tests
2021-05-27 10:13:35 +02:00
Arpit Temani
b547a00233
Merge branch 'jdkanani/geth-update-v1.10.3' into denis/disable-bor-logs
2021-05-25 15:58:41 +05:30
Denis Ermolin
58d55c520c
chg: option to disable bor logs
2021-05-25 15:57:19 +05:30
Jaynti Kanani
638e829b04
update: merge v1.10.3
2021-05-25 14:20:38 +04:00
Martin Holst Swende
addd8824cf
cmd/geth, eth, core: snapshot dump + unify with trie dump ( #22795 )
...
* cmd/geth, eth, core: snapshot dump + unify with trie dump
* cmd/evm: dump API fixes
* cmd/geth, core, eth: fix some remaining errors
* cmd/evm: dump - add limit, support address startkey, address review concerns
* cmd, core/state, eth: minor polishes, fix snap dump crash, unify format
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-05-12 11:05:39 +03:00
Ryan Schneider
ca98080798
cmd/geth, eth/gasprice: add configurable threshold to gas price oracle ( #22752 )
...
This adds a cmd line parameter `--gpo.ignoreprice`, to make the gas price oracle ignore transactions below the given threshold.
2021-05-11 11:25:51 +02:00
Ceelog
f19a679b09
cmd/geth: remove reference to monitor command ( #22844 )
...
'geth monitor' subcommand is no longer supported.
2021-05-10 12:19:32 +02:00
Martin Holst Swende
cc606be74c
all: define London+baikal, undefine yolov3, add london override flag ( #22822 )
...
* all: define London+baikal, undefine yolov3, add london override flag
* cmd, core, params: add baikal genesis definition
2021-05-06 12:07:42 +03:00
Guillaume Ballet
f79cce5de9
eth/catalyst: add catalyst API prototype ( #22641 )
...
This change adds the --catalyst flag, enabling an RPC API for eth2 integration.
In this initial version, catalyst mode also disables all peer-to-peer networking.
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
2021-04-16 21:29:22 +02:00
gary rong
7088f1e814
core, eth: faster snapshot generation ( #22504 )
...
* eth/protocols: persist received state segments
* core: initial implementation
* core/state/snapshot: add tests
* core, eth: updates
* eth/protocols/snapshot: count flat state size
* core/state: add metrics
* core/state/snapshot: skip unnecessary deletion
* core/state/snapshot: rename
* core/state/snapshot: use the global batch
* core/state/snapshot: add logs and fix wiping
* core/state/snapshot: fix
* core/state/snapshot: save generation progress even if the batch is empty
* core/state/snapshot: fixes
* core/state/snapshot: fix initial account range length
* core/state/snapshot: fix initial account range
* eth/protocols/snap: store flat states during the healing
* eth/protocols/snap: print logs
* core/state/snapshot: refactor (#4 )
* core/state/snapshot: refactor
* core/state/snapshot: tiny fix and polish
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
* core, eth: fixes
* core, eth: fix healing writer
* core, trie, eth: fix paths
* eth/protocols/snap: fix encoding
* eth, core: add debug log
* core/state/generate: release iterator asap (#5 )
core/state/snapshot: less copy
core/state/snapshot: revert split loop
core/state/snapshot: handle storage becoming empty, improve test robustness
core/state: test modified codehash
core/state/snapshot: polish
* core/state/snapshot: optimize stats counter
* core, eth: add metric
* core/state/snapshot: update comments
* core/state/snapshot: improve tests
* core/state/snapshot: replace secure trie with standard trie
* core/state/snapshot: wrap return as the struct
* core/state/snapshot: skip wiping correct states
* core/state/snapshot: updates
* core/state/snapshot: fixes
* core/state/snapshot: fix panic due to reference flaw in closure
* core/state/snapshot: fix errors in state generation logic + fix log output
* core/state/snapshot: remove an error case
* core/state/snapshot: fix condition-check for exhausted snap state
* core/state/snapshot: use stackTrie for small tries
* core/state/snapshot: don't resolve small storage tries in vain
* core/state/snapshot: properly clean up storage of deleted accounts
* core/state/snapshot: avoid RLP-encoding in some cases + minor nitpicks
* core/state/snapshot: fix error (+testcase)
* core/state/snapshot: clean up tests a bit
* core/state/snapshot: work in progress on better tests
* core/state/snapshot: polish code
* core/state/snapshot: fix trie iteration abortion trigger
* core/state/snapshot: fixes flaws
* core/state/snapshot: remove panic
* core/state/snapshot: fix abort
* core/state/snapshot: more tests (plus failing testcase)
* core/state/snapshot: more testcases + fix for failing test
* core/state/snapshot: testcase for malformed data
* core/state/snapshot: some test nitpicks
* core/state/snapshot: improvements to logging
* core/state/snapshot: testcase to demo error in abortion
* core/state/snapshot: fix abortion
* cmd/geth: make verify-state report the root
* trie: fix failing test
* core/state/snapshot: add timer metrics
* core/state/snapshot: fix metrics
* core/state/snapshot: udpate tests
* eth/protocols/snap: write snapshot account even if code or state is needed
* core/state/snapshot: fix diskmore check
* core/state/snapshot: review fixes
* core/state/snapshot: improve error message
* cmd/geth: rename 'error' to 'err' in logs
* core/state/snapshot: fix some review concerns
* core/state/snapshot, eth/protocols/snap: clear snapshot marker when starting/resuming snap sync
* core: add error log
* core/state/snapshot: use proper timers for metrics collection
* core/state/snapshot: address some review concerns
* eth/protocols/snap: improved log message
* eth/protocols/snap: fix heal logs to condense infos
* core/state/snapshot: wait for generator termination before restarting
* core/state/snapshot: revert timers to counters to track total time
Co-authored-by: Martin Holst Swende <martin@swende.se>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2021-04-14 23:23:11 +03:00
Martin Holst Swende
271e5b7fc9
cmd/geth: add db-command to inspect freezer index ( #22633 )
...
This PR makes it easier to inspect the freezer index, which could be useful to investigate things like #22111
2021-04-13 15:45:30 +02:00
Peter Simard
95219ae62d
cmd/utils: move cache sanity check to SetEthConfig ( #22510 )
...
Move the cache sanity check to the SetEthConfig function
to allow the config file to load.
2021-04-06 16:23:35 +02:00
Martin Holst Swende
59ac3c9fd3
cmd/geth: add db dumptrie command ( #22563 )
...
Adds the command "geth db dumptrie <root> <seek> <max>", to better help investigate the trie data
2021-03-30 13:57:21 +02:00
Felix Lange
cae6b5527e
cmd/geth, consensus/ethash: add support for --miner.notify.full flag ( #22558 )
...
The PR implements the --miner.notify.full flag that enables full pending block
notifications. When this flag is used, the block notifications sent to mining
endpoints contain the complete block header JSON instead of a work package
array.
Co-authored-by: AlexSSD7 <alexandersadovskyi7@protonmail.com>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2021-03-26 18:30:10 +01:00
Sina Mahmoodi
8d6cc16742
cmd/geth: check block range against chain head in export cmd ( #22387 )
...
Check the input parameters against the actual head block, exit on error
2021-03-22 19:11:10 +01:00