lightclient
0be9d76e37
internal/ethapi: rework setDefaults for tx args so fee logic is separate ( #25197 )
...
Co-authored-by: bobpkr <bob.p@krustuniverse.com>
2 years ago
Darioush Jalali
366d2169fb
accounts/abi: display name in "method/event not found" error ( #25512 )
2 years ago
0xe3b0c4
c0cc6f6362
build: add static linking support ( #25492 )
...
This adds support for building statically-linked executables using ci.go.
Static linking is enabled by default in Docker builds, making it possible to
use the geth executable in any Docker image, regardless of the Linux
distribution the Dockerfile is based on.
Co-authored-by: Felix Lange <fjl@twurst.com>
2 years ago
Péter Szilágyi
c4cd632f47
Merge pull request #25506 from ycyraum/apply-transaction-no-bc
...
core: remove unused bc ChainContext in applyTransaction
2 years ago
Martin Holst Swende
1a18c14c43
signer/rules: register clef api properly when rules are used ( #25455 )
...
signer/rules: register clef api properly when rules are used, fixes #25298
2 years ago
ycyraum
877ef7f09e
core: remove unused bc ChainContext in applyTransaction
2 years ago
rjl493456442
a41ea8a97c
all: cleanup the APIs for initializing genesis ( #25473 )
...
* all: polish tests
* core: apply feedback from Guillaume
* core: fix comment
2 years ago
Sina Mahmoodi
86de2e516e
eth/tracers: add onlyTopCall option to callTracer ( #25430 )
...
This PR allows users to pass in a config object directly to the tracers. Previously only the struct logger was configurable.
It also adds an option to the call tracer which if enabled makes it ignore any subcall and collect only information about the top-level call. See #25419 for discussion.
The tracers will silently ignore if they are passed a config they don't care about.
2 years ago
aaronbuchwald
759d795c56
eth: formatted error nit ( #25499 )
2 years ago
int88
e4b3bd6f26
core: fix uncle creation in TestFastVsFullChains ( #25476 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2 years ago
int88
e93442c6cf
eth/downloader: fix log errors of queue_test.go ( #25494 )
2 years ago
rjl493456442
e44d6551c3
cmd, core, ethdb, node: move chain freezer one folder deeper ( #25487 )
...
* cmd, core, ethdb, node: create chain freezer in a sub folder
* core/rawdb: remove unused code
* core, ethdb, node: add AncientDatadir API back
* cmd, core: extend freezer info dump for sub-ancient-store
* core/rawdb: rework freezer inspector
* core/rawdb: address comments from Peter
* core/rawdb: fix build issue
2 years ago
Guillaume Ballet
f67e54c92f
core: use TryGetAccount to read what TryUpdateAccount has written ( #25458 )
...
* core: use TryGetAccount to read where TryUpdateAccount has been used to write
* Gary's review feedback
* implement Gary's suggestion
* fix bug + rename NewSecure into NewStateTrie
* trie: add backwards-compatibility aliases for SecureTrie
* Update database.go
* make the linter happy
Co-authored-by: Felix Lange <fjl@twurst.com>
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2 years ago
rjl493456442
8b53b92eb4
core, trie: rework trie committer ( #25320 )
...
* all: rework trie and trie committer
* all: get rid of internal cache in trie
* all: fixes
* trie: polish
* core, trie: address comments
* trie: fix imports
* core/state: address comments
* core/state/snapshot: polish
* trie: remove unused code
* trie: update tests
* trie: don't set db as nil
* trie: address comments
* trie: unskip test
2 years ago
Delweng
733d76a88d
node: remove noop path.Join ( #25475 )
...
Signed-off-by: Delweng <delweng@gmail.com>
2 years ago
Felix Lange
f809cf6ea6
graphql: embed *Resolver instead of backend interface ( #25468 )
...
This creates some infrastructure to share resources between graphql
API objects.
2 years ago
lightclient
948e08d55b
internal/ethapi: don't estimate gas if no limit provided in eth_createAccessList ( #25467 )
...
Because the goal of eth_createAccessList is providing the caller with the largest-possible
access list, it's generally not important that the gas limit used by the tracer will match the usage
of the call exactly. Avoiding the gas estimation step is a performance improvement. As long as the
call does not branch based on gas limit, the returned access list will be accurate.
2 years ago
Seungbae Yu
5fb463dddc
core: preallocate batch size in bloomIndexer ( #25289 )
...
This change reduces allocations when committing bloombits indexes
by creating the database batch with a larger initial size.
2 years ago
yong
6b6261b51f
core/types: fix typo in comment ( #25359 )
2 years ago
Tristan-Wilson
9244f87dc1
node, rpc: add ReadHeaderTimeout config option ( #25338 )
...
This change makes http.Server.ReadHeaderTimeout configurable separately
from ReadTimeout for RPC servers. The default is set to the same as
ReadTimeout, which in order to cause no change in existing deployments.
2 years ago
Felix Lange
d804a59ee1
cmd/devp2p/internal/ethtest: update tests for eth/67 ( #25306 )
2 years ago
Manoj Kumar
6fdc619413
consensus/ethash: remove temp files created during DAG generation ( #25381 )
...
This makes it remove not only the actual DAG file, but also the temporary file
which the DAG data is written to while generating.
2 years ago
Péter Szilágyi
c7ce74a53a
Merge pull request #25461 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.18.5
2 years ago
lightclient
a0b88ce869
eth/gasprice/feehistory: support finalized block ( #25442 )
2 years ago
Marius Kjærstad
93eabcaa4e
build: upgrade -dlgo version to Go 1.18.5
2 years ago
Sina Mahmoodi
1b34ed2ed6
eth: fix typo in catalyst api ( #25460 )
...
eth: fix typo
2 years ago
Péter Szilágyi
6fd06ab075
cmd, core, eth, les, params: add merge-passed chain config ( #24538 )
...
* cmd, core, eth, les, params: add merge-passed chain config
* eth/catalyst, params: add various warning on malfunctioning beacons
* eth/catalyst: fix warning for beacons without transition exchanges
2 years ago
Henry
49aa8a633b
common/compiler: json unmarshalling error checks ( #25449 )
...
complier/solidity:add json.Unmarshal err check
2 years ago
Rithwik Babu
fea569f90a
eth: fix typo in comment ( #25327 )
2 years ago
Delweng
1af9e4f34c
cm/puppeth: fix crash when of ethstats specifier doesn't contain `:` ( #25405 )
...
Signed-off-by: Delweng <delweng@gmail.com>
2 years ago
Seungbae Yu
029059947a
all: use AbsTime.Add instead of conversion ( #25417 )
2 years ago
lightclient
9ad508018e
ethereum, ethclient: add FeeHistory support ( #25403 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2 years ago
Marius van der Wijden
377c7d799f
eth/catalyst: return 0x0 if latestvalid is pow block ( #25423 )
...
* eth/catalyst: return 0x0 if latestvalid is pow block
* eth/catalyst: return 0x0 if latestvalid is pow block
* eth/catalyst: fix header retrieval, fix sign check
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2 years ago
Marius van der Wijden
f3549814a9
eth/catalyst: return syncing not accepted ( #25414 )
...
* eth/catalyst: return syncing not accepted
* eth/catalyst: fix test
2 years ago
Marius van der Wijden
f26b63089a
node: set JWT expiry to 60 seconds ( #25416 )
...
* node: set JWT expiry to 60 seconds
* node: rename var
2 years ago
Péter Szilágyi
c02b0488fb
Merge pull request #25428 from karalabe/engineapi-snap-import-deny
...
eth/catalyst: fix NewPayload warn log when dropping due to snap sync
2 years ago
Péter Szilágyi
ad7106dfc4
eth/catalyst: fix NewPayload warn log when dropping due to snap sync
2 years ago
rjl493456442
9d76a9b94f
core, trie, eth, cmd: rework preimage store ( #25287 )
...
* core, trie, eth, cmd: rework preimage store
* trie: address comment
2 years ago
Felix Lange
54007f5e0a
params: begin v1.10.22 release cycle
2 years ago
Felix Lange
671094279e
params: go-ethereum v1.10.21 stable
2 years ago
rjl493456442
14b0eedacf
go.mod: downgrade leveldb ( #25413 )
2 years ago
Marius van der Wijden
c6dcd018d2
core: eth: rpc: implement safe rpc block ( #25165 )
...
* core: eth: rpc: implement safe rpc block
* core: fix setHead, panics
2 years ago
Péter Szilágyi
f543e6b065
Merge pull request #25371 from Zachinquarantine/mergeconfig-message
...
params: change Merge config to print simpler message
2 years ago
Péter Szilágyi
f3af3fd8df
eth: support bubbling up bad blocks from sync to the engine API ( #25190 )
...
* eth: support bubbling up bad blocks from sync to the engine API
* eth/catalyst: fix typo
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
* eth/catalyst: fix typo
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
* Update eth/catalyst/api.go
* eth/catalyst: when forgetting bad hashes, also forget descendants
* eth/catalyst: minor bad block tweaks for resilience
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Co-authored-by: Martin Holst Swende <martin@swende.se>
2 years ago
Péter Szilágyi
2b6a761238
Merge pull request #25397 from karalabe/fix-tracer-capitalization
...
eth/tracers/js: fix capitalization in tests
2 years ago
Péter Szilágyi
eb2b8cb4fd
eth/tracers/js: fix capitalization in tests
2 years ago
Delweng
b196ad1c16
all: add whitespace linter ( #25312 )
...
* golangci: typo
Signed-off-by: Delweng <delweng@gmail.com>
* golangci: add whietspace
Signed-off-by: Delweng <delweng@gmail.com>
* *: rm whitesapce using golangci-lint
Signed-off-by: Delweng <delweng@gmail.com>
* cmd/puppeth: revert accidental resurrection
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2 years ago
Eval EXEC
6c4e5d06e7
light: fix differTries err message in tests ( #25358 )
2 years ago
Seungbae.yu
d2247d9f5d
eth, internal, light: fix error string capitalization ( #25364 )
2 years ago
Abirdcfly
39900be087
p2p/netutil: minor code cosmetic
...
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2 years ago