zjubfd
6b83c41123
Merge pull request #1146 from qinglin89/develop-upstream20
...
all: sync with upstream
2022-10-31 14:05:09 +08:00
Leon
bed1a57766
core:remove redundant func ( #1159 )
2022-10-31 14:03:45 +08:00
rjl493456442
2c1af8b1ec
cmd, eth: implement full-sync tester ( #26035 )
...
This PR adds a parameter to startup, --synctarget. The synctarget flag is a developer-flag, that can be useful in some scenarios as a replacement for a CL node. It defines a fixed block sync target:
geth --syncmode=full --synctarget=./block_15816882.hex_rlp
The --synctarget is only made available during syncmode=full
2022-10-28 14:48:08 +02:00
Sina Mahmoodi
0f4942214d
eth/tracers: fix gasUsed for native and JS tracers ( #26048 )
...
* eth/tracers: fix gasUsed in call tracer
* fix js tracers gasUsed
* fix legacy prestate tracer
* fix restGas in test
* drop intrinsicGas field from js tracers
2022-10-28 12:28:29 +02:00
lightclient
fbdeff99ce
cmd/evm: calc base fee if parent data is present ( #26051 )
...
Currently, in order to chain together sequential valid t8n transitions the caller must manually calculate the block base fee. This PR adds support for the necessary parent fee market data to calculate the base fee for the current transition.
Concretely, env is extended to accept the following:
parentBaseFee
parentGasUsed
parentGasLimit
Example usage can be found in ./cmd/evm/testdata/25.
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-28 12:25:37 +02:00
rjl493456442
60e30a940b
core/rawdb: refactor db inspector for extending multiple ancient store ( #25896 )
...
This PR ports a few changes from PBSS:
- Fix the snapshot generator waiter in case the generation is not even initialized
- Refactor db inspector for ancient store
2022-10-28 10:23:49 +02:00
Jolly Zhao
c46671df97
parlia: the newChainHead mights not be imported to Pralia.Snapshot ASAP
2022-10-28 11:42:06 +08:00
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
Martin Holst Swende
a1fc0d8144
eth/filters: change filter block to be by-ref ( #26054 )
...
This PR changes the block field in the filter to be a pointer, to disambiguate between empty hash and no hash
2022-10-27 15:25:01 +02:00
Martin Holst Swende
9d795d0836
core/vm: use optimized bigint ( #26021 )
2022-10-27 10:39:01 +02:00
Jakub Freebit
4984c4e63f
build: make ios work again ( #26052 )
2022-10-27 11:23:11 +03:00
Guillaume Ballet
0c66d971e7
accounts/scwallet: fix keycard data signing error ( #25331 )
...
accounts/scwallet: fix keycard data signing
2022-10-27 10:06:28 +02:00
Péter Szilágyi
7496ad8edc
Merge pull request #26049 from sandakersmann/master
...
build: upgrade -dlgo version to Go 1.19.2
2022-10-27 11:01:12 +03:00
Marius Kjærstad
1d0c4e27bf
build: upgrade -dlgo version to Go 1.19.2
2022-10-26 14:49:12 +02:00
Péter Szilágyi
c4a662176e
core, eth: for types with accurate size calcs, return uint64, not float ( #26046 )
...
* core, eth: for types with accurate size calcs, return uint64, not float
* core/types: proper tx size tests
* core/types: extend tx size test with decoded sizes, fix error
* core/txpool: fix linter
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-10-26 15:23:07 +03:00
Péter Szilágyi
5bed24dd77
Merge pull request #26044 from karalabe/rename-typed-tx-files
...
core/types: rename tx files to group them better together
2022-10-26 13:51:46 +03:00
Péter Szilágyi
68ba845bb5
core/types: rename tx files to group them better together
2022-10-26 13:30:51 +03:00
Péter Szilágyi
a2b7481b78
Merge pull request #26038 from karalabe/split-txpool
...
all: refactor txpool into it's own package in prep for 4844
2022-10-24 20:30:33 +03:00
Péter Szilágyi
a6dda03644
all: refactor txpool into it's own package in prep for 4844
2022-10-24 16:35:53 +03:00
Martin Holst Swende
5f70f9fd37
eth/tracers: simplify test framework ( #25973 )
...
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2022-10-21 17:55:15 +02:00
Delweng
a404195c7b
eth/tracers: fix the issue prestate missing existing contract state ( #25996 )
...
The prestate tracer did not report accounts that existed at a given address prior to a contract being created at that address.
Signed-off-by: Delweng <delweng@gmail.com>
Co-authored-by: Sina Mahmoodi <itz.s1na@gmail.com>
2022-10-21 11:48:53 +02:00
Seungbae.yu
d9229e5c6b
common: increase StorageSize test coverage ( #25188 )
2022-10-21 14:28:18 +08:00
Andre Patta
4ce9680212
cmd/utils: fix applying bootstrap nodes from config file ( #25174 )
2022-10-21 14:27:34 +08:00
aaronbuchwald
8c90dc946a
core/rawdb: simplify TestDiskSeek to use memorydb ( #25182 )
2022-10-21 14:23:12 +08:00
Sina Mahmoodi
0ca5dd727a
eth/tracers: optimize goja buffer conversion ( #25156 )
...
This changes the []byte <-> Uint8Array conversion to use an
ArrayBuffer, avoiding inefficient copying of the slice data in Goja.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-10-21 14:03:42 +08:00
rjl493456442
aedd5aaba1
eth, miner: retrieve mining state from live database ( #25139 )
...
* miner: retrieve mining state from live database
* eth/catalyst: ignore stale fcu events from cl
2022-10-21 14:01:52 +08:00
Zachinquarantine
660f920cde
README,rpc: remove mention of "shh" RPC API ( #25137 )
2022-10-21 12:42:41 +08:00
aaronbuchwald
fafc29f922
trie: fix size accounting in cleaner ( #25007 )
...
Decrease children size instead of dirties size when marking dirties as cleaned up in trie cleaner
2022-10-21 12:42:18 +08:00
Sina Mahmoodi
ce9dae2517
internal/ethapi: remove SignAndSendTransaction ( #25111 )
2022-10-21 12:41:13 +08:00
Martin Holst Swende
237c31870e
tests/fuzzers/rlp: avoid very large input ( #25109 )
...
The oss-fuzz engine crashes due to stack overflow decoding a large nested
structure into a interface{}. This PR limits the size of the input data, so
should avoid such crashes.
2022-10-21 12:40:50 +08:00
s7v7nislands
9b9a1b677d
internal/ethapi, accounts/abi/backends: use error defined in core ( #26012 )
...
Co-authored-by: seven <seven@nodereal.io>
2022-10-20 12:56:12 +02:00
rjl493456442
b9ba6f6e4d
core/rawdb: open meta file in read only mode ( #26009 )
2022-10-19 21:15:43 +02:00
s7v7nislands
d86fe26f67
core/rawdb: refactor db key prefix ( #26000 )
...
Co-authored-by: seven <seven@nodereal.io>
2022-10-19 09:53:09 +02:00
Martin Holst Swende
6069d8294e
cmd/utils: enable snapshot generation in import-mode ( #25990 )
...
This PR fixes a regression causing snapshots not to be generated in "geth --import" mode. It also fixes the geth export command to be truly readonly, and adds a new test for geth export.
2022-10-19 08:20:39 +02:00
Martin Holst Swende
15b7e0b254
common/math, tests/fuzzers: use big.Int clone ( #26006 )
...
* common/math, tests/fuzzers: use big.Int clone
* common/math: license
2022-10-18 15:42:16 +02:00
Martin Holst Swende
fb75f11e87
Revert "go.mod: upgrade github.com/dop251/goja" ( #25975 )
...
Revert "go.mod: upgrade github.com/dop251/goja (#25955 )"
This reverts commit 9207e348f0d3c2bd2b65f6c52b20a37de76350ae.
2022-10-12 20:08:36 +02:00
Delweng
c776a98c83
eth/tracers: fix the issue of panic in prestate with diffmode ( #25957 )
...
In some cases, inner contract creation may not be successful, and an inner contract was not created. This PR fixes a crash that could occur when doing tracing in such situations.
2022-10-12 12:50:01 +02:00
ucwong
9207e348f0
go.mod: upgrade github.com/dop251/goja ( #25955 )
...
This upgrade pulls in a fix to handling of 'continue' in loops.
2022-10-12 12:03:45 +02:00