Håvard Anda Estensen
4fb1e9d25a
all: use strings.EqualFold for string comparison ( #24890 )
2022-09-21 17:02:02 +08:00
s7v7nislands
57da9c016c
core/asm: use strings.Builder and fix godoc issues ( #24861 )
2022-09-21 17:02:02 +08:00
Sina Mahmoodi
ef24fa3d1f
graphql: fix long literal passed in a variable ( #24864 )
2022-09-21 17:02:02 +08:00
s7v7nislands
461835ae71
core/vm: clean up some dead functions ( #24851 )
2022-09-21 17:02:02 +08:00
aaronbuchwald
4feeaf3545
core/vm: update benchmark to use Errorf instead of Sprintf ( #24845 )
2022-09-21 17:02:02 +08:00
Sina Mahmoodi
5d980a0e43
internal: drop TestSignCliqueBlock ( #24837 )
2022-09-21 17:02:02 +08:00
Marius van der Wijden
e8b93382da
core/state/snapshot: fix race condition ( #24685 )
...
Fixes three race conditions found through fuzzing by David Theodore
2022-09-21 17:02:02 +08:00
Rachel Franks
5a06ca3698
abi: fix checks when all fields are indexed ( #24792 )
...
This PR fixes abi checks in the edge case where all arguments are indexed
2022-09-21 17:02:02 +08:00
Martin Holst Swende
8d19185040
eth/fetcher: avoid hang in tests (partial fix for #23331 ) ( #23351 )
...
* eth/fetcher: fix test to avoid hanging. Partial fix for #23331
* eth/filters: avoid dangling goroutines
* eth/fetcher: revert closing of proceed
2022-09-21 17:02:02 +08:00
ImanSharaf
f781ea8a2f
p2p/simulations: escape mockerType value from request ( #24822 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-21 17:02:02 +08:00
EXEC
098181224e
eth/filters: remove explicit continue label in filterLogs ( #24795 )
...
The loop label can be removed because this 'continue' statement
is not in a nested loop.
2022-09-21 17:02:02 +08:00
Evgeny Kolyakov
bd22292a32
build: fix formatted logs ( #24807 )
...
Changed `log.Fatal` to `log.Fatalf()` as it has a parameter...
2022-09-21 17:02:02 +08:00
Martin Holst Swende
cea831914b
cmd/utils: double limit on free-disk monitor ( #24781 )
...
This PR doubles the limit on which to trigger automatic shutdown, and also changes the timer to run once every 30s instead of 60s.
2022-09-21 17:02:02 +08:00
EXEC
58f1e8b94c
docker: speed up docker image build ( #24796 )
...
This PR improves the docker build speed for repeated builds where go.mod and go.sum do no change, by placing the downloaded dependencies in a lower layer
2022-09-21 17:02:02 +08:00
hero5512
f67e303a1c
eth/filters: remove unused struct fields ( #24782 )
2022-09-21 17:02:02 +08:00
Joshua Gutow
a181eeee16
ethclient/gethclient: return storage proofs in GetProof ( #24697 )
...
Storage proofs were being unmarshalled from the RPC form to the go struct, but were not being included in the final returned struct.
2022-09-21 17:02:02 +08:00
tia-99
34420d03c5
core/types: fix unhandled errors in TestTransactionCoding ( #24692 )
2022-09-21 17:02:02 +08:00
henopied
ae31b5ff72
p2p: fix type of DiscSubprotocolError ( #24747 )
...
It was 'int' accidentally, should be DiscReason instead.
2022-09-21 17:02:02 +08:00
Nikita Kozhemyakin
6aae1bcc81
mobile: fix receipt encoding to json ( #24701 )
2022-09-21 17:02:02 +08:00
jwasinger
30c695c5e2
cmd/evm: ensure input length is even ( #24721 )
...
* cmd/evm: ensure input length is even
* cmd/evm: minor nit + lintfix
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-21 17:02:02 +08:00
Emmanuel T Odeke
3766168264
eth/tracers/logger: remove unnecessary comparisons in accessList.equal ( #24663 )
...
This change removes extraneous/unnecessary checks for equality
when comparing 2 accessList values A and B. Given that we validate that
their lengths of A and B are equal, if so and if every element in A is
in B, reflexively every element in B is already in A. If that weren't
the case and an element g existed in A but not in B, that would mean
that there is an extra element and hence a mathematical contradiction.
Fixes #24658
2022-09-21 17:02:02 +08:00
Darioush Jalali
3081421141
trie: remove unused makeHashNode ( #24702 )
2022-09-21 17:02:02 +08:00
rjl493456442
a72324355a
core: fix benchmark panic ( #24657 )
...
This PR fixes a few panics in the chain marker benchmarks. The root
cause for panic is in chain marker the genesis header/block is not
accessible, while it's expected to be obtained in tests. So this PR
avoids touching genesis header at all to avoid panic.
2022-09-21 17:02:02 +08:00
Felix Lange
f37f2a9fbe
core/types: make "miner" optional in Header JSON ( #24666 )
...
"miner" is not set for pending block responses in some cases.
Fixes #24632
2022-09-21 17:02:02 +08:00
rjl493456442
a41619f04e
les: fix panic in ultralight client sync ( #24641 )
2022-09-21 17:02:02 +08:00
Péter Szilágyi
f310921b41
core/state/snapshot: remove noop map item assignment
2022-09-21 17:02:02 +08:00
Péter Szilágyi
211ab45c1d
eth/fetcher: if peers never respond, drop them
2022-09-21 17:02:02 +08:00
Nic Jansma
c54fd7f312
eth: change snapshot extension registration failure to warning instead of error ( #24475 )
...
* core: Change Snapshot extension registration failed to Debug
* Update eth/handler.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-21 17:02:02 +08:00
Martin Holst Swende
3b4c68381b
eth/tracers/logger: use omitempty to reduce log bloat ( #24547 )
...
Makes the evm json output less verbose: omitting output of `memory` and `returndata` in case they are empty.
2022-09-21 17:02:02 +08:00
ucwong
3d5896a157
go.mod : upnp 1.0.3 stable version ( #24573 )
2022-09-21 17:02:02 +08:00
makcandrov
5d11d38f4d
eth/tracers: fix trace config for TraceCall
( #25821 )
...
Co-authored-by: AtomicAzzaz <AtomicAzzaz@users.noreply.github.com>
Co-authored-by: ewile <ewile@users.noreply.github.com>
2022-09-21 09:55:48 +02:00
lightclient
338bb2e36c
core/blockchain: downgrade tx indexing and unindexing logs ( #25832 )
...
core/blockchain: downgrade tx indexing and unindexing logs from info to debug
If a user has a finite tx lookup limit, they will see an "unindexing" info level log each time a block is imported. This information might help a user understand that they are removing the index each block and some txs may not be retrievable by hash, but overall it is generally more of a nuisance than a benefit. This change downgrades the log to a debug log.
2022-09-21 09:49:17 +02:00
jwasinger
d8ada03eac
core/vm: return copy of input slice in identity precompile, avoid returndata copy ( #25183 )
...
* core/vm: return copy of input slice in identity precompile. don't deep copy return data slice upon call completion
* make use of common.CopyBytes
2022-09-20 14:58:03 +02:00
Péter Szilágyi
18a001fa3e
Merge pull request #25831 from karalabe/fix-challenge-stop-hang
...
eth: fix a rare datarace on CHT challenge reply / shutdown
2022-09-20 15:30:15 +03:00
Péter Szilágyi
d728ba97d8
eth: fix a rare datarace on CHT challenge reply / shutdown
2022-09-20 14:14:24 +03:00
Felix Lange
468d1844c7
core: move build version reading to its own package ( #25806 )
...
This fixes the build with Go 1.17, which does not have BuildInfo.Settings yet.
2022-09-19 10:04:16 +02:00
lightclient
8e5201551d
core: more compact bad block report ( #25714 )
...
This shortens the chain config summary in bad block reports,
and adds go-ethereum version information as well.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-17 21:27:10 +02:00
Seungbae Yu
ada603fab5
core: don't cache zero nonce in txNoncer ( #25603 )
...
This changes the nonce cache used by TxPool to not store cached
nonces for non-existing accounts.
2022-09-16 18:23:13 +02:00
lightclient
8ade5e6c14
internal/ethapi: return error when requesting invalid trie key ( #25762 )
...
This change makes eth_getProof and eth_getStorageAt return an error when
the argument contains invalid hex in storage keys.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-16 18:16:32 +02:00
George Carder
d213cb0924
crypto/bls12381: docfix of g1 Affine ( #25729 )
...
bls12381: docfix of g1 Affine.
2022-09-16 11:40:42 +02:00
ucwong
83989a19be
core/rawdb: fix leak of backoff timer ( #25776 )
2022-09-16 11:33:48 +02:00
Amir Hossein
57a65f00c9
trie: handle more batch commit errors in Database ( #25674 )
2022-09-15 23:35:53 +02:00
Marius van der Wijden
a89b7addd4
params: set TerminalTotalDifficultyPassed to true ( #25769 )
...
* params: set TerminalTotalDifficultyPassed to true
* Update params/config.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-15 18:50:54 +03:00
pinkiebell
1d2f5cf610
les/catalyst/api: add support for ExchangeTransitionConfigurationV1 ( #25752 )
...
This method is missing in light client mode and breaks consensus clients
that require a valid response.
2022-09-15 15:36:31 +02:00
Felix Lange
3db4a13230
node: fix lint issue in rpcstack.go ( #25774 )
2022-09-15 15:21:44 +02:00
Felix Lange
0ee8b273f2
core: fix log order in "Imported new chain segment" ( #25768 )
2022-09-15 13:18:23 +02:00
Nicolas Gotchac
25b35c9728
node: fix HTTP server always force closing ( #25755 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-09-14 18:37:53 +02:00
Guillaume Ballet
9d717167aa
cmd/geth: add a verkle subcommand ( #25718 )
...
* cmd/geth: add a verkle subcommand
* fix copyright year
* remove unused command parameters
* check that the output file was successfully written to
Co-authored-by: Martin Holst Swende <martin@swende.se>
* cmd/geth: goimports fix
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-09-14 12:05:03 +02:00
zjubfd
3d3f0a85db
ci: add curl in docker file
2022-09-14 14:49:07 +08:00
Sina Mahmoodi
818ff32ff5
graphql: fixes missing tx logs ( #25745 )
...
* graphql: fix tx logs
* graphql: refactor test service setup
* graphql: add test for tx logs
2022-09-13 22:49:52 +03:00