Håvard Anda Estensen
caf9d0a5e6
p2p: use errors.Is for error comparison ( #24882 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-10-28 09:04:57 +08:00
lwh
c93b905633
accounts/abi/bind: fix duplicate field names in the generated go struct ( #24924 )
...
* accounts/abi/bind: fix duplicate field names in the generated go struct #24627
* accounts, cmd/abigen: resolve name conflicts
* ci lint, accounts/abi: remove unused function overloadedArgName
Co-authored-by: Gary Rong <garyrong0905@gmail.com>
2022-10-28 09:04:37 +08:00
lmittmann
2003d543e8
all: prefer new(big.Int)
over big.NewInt(0)
( #25087 )
...
minor performance improvement: `big.NewInt(0).Xxx` -> `new(big.Int).Xxx`
2022-10-28 09:03:38 +08:00
Marius van der Wijden
bd79e2d3df
common: improve pretty duration regex ( #25073 )
...
* common: improve pretty duration regex
* common: improve pretty duration regex
2022-10-28 09:03:21 +08:00
s7v7nislands
5d21a7c7c8
cmd/ethkey: use accounts.TextHash ( #25069 )
2022-10-28 09:03:21 +08:00
Rajaram Gaunker
978790b0b6
core/types: remove unused field 'td' in Block ( #25010 )
2022-10-28 09:03:21 +08:00
Seungbae.yu
d3f26984b5
accounts: increase parseURL test coverage ( #25033 )
...
accounts/url: add test logic what check null string to parseURL()
2022-10-28 09:03:21 +08:00
Martin Holst Swende
7bfcc7ef31
p2p/discover: fix panicky test ( #25038 )
2022-10-28 09:03:21 +08:00
Sina Mahmoodi
a429a50be5
eth/filters: fix getLogs for pending block ( #24949 )
...
* eth/filters: fix pending for getLogs
* add pending method to test backend
* fix block range validation
2022-10-28 09:03:21 +08:00
aaronbuchwald
ea52f6c440
trie: move locking into trieDB insert method ( #25030 )
...
Move locking into trieDB insert function
2022-10-28 09:03:21 +08:00
Paweł Bylica
2904f20dfc
core/vm: optimize jumpdest analysis ( #23500 )
...
core/vm: optimize PUSH opcode discrimination
2022-10-28 09:03:21 +08:00
Boqin Qin(秦 伯钦)
0e17e627ee
eth/filters: use buffered channel to avoid goroutine leak ( #24928 )
2022-10-28 09:03:21 +08:00
Marius van der Wijden
f863682795
core: use less memory during reorgs ( #24616 )
...
This PR significantly reduces the memory consumption of a long reorg
2022-10-28 09:03:21 +08:00
dylanhuang
816e30108a
tracers ci: drop duktape engine ( #24934 ) and add linux-arm binaries to releases page ( #1100 )
2022-09-26 17:31:16 +08:00
zjubfd
781e567db7
release: update version and changelogs
2022-09-21 17:02:02 +08:00
yutianwu
8375939226
overwrite HTTPHost in config.toml via cli ( #999 )
2022-09-21 17:02:02 +08:00
Leon
3c7bccbd73
core: fix potential goroutine leak ( #1079 )
...
* core: fix potential goroutine leak
* core: fix 0 index, and add ut for routineleaking
2022-09-21 17:02:02 +08:00
zhaochonghe
b051dc60dd
core: fix the order of address in queue ( #24907 )
...
reverse the order of address in queue
2022-09-21 17:02:02 +08:00
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
zjubfd
3d3f0a85db
ci: add curl in docker file
2022-09-14 14:49:07 +08:00
zjubfd
b8020b9746
fix: remove fixed curl version in docker file
2022-09-06 16:42:21 +08:00