Péter Szilágyi
9ed10b9e48
Merge pull request #25581 from karalabe/triedb-fix-flush-order
...
core/state, trie: fix trie flush order for proper pruning
2022-08-23 22:13:33 +03:00
Martin Holst Swende
45a660a4f2
consensus/beacon: don't ignore errors
2022-08-23 20:48:50 +02:00
Péter Szilágyi
5758d1fb11
core/state, trie: fix trie flush order for proper pruning
2022-08-23 21:17:12 +03:00
Péter Szilágyi
81bd998353
core, eth/downloader: handle spurious junk bodies from racey rollbacks ( #25578 )
...
* eth/downloader: handle junkbodies/receipts in the beacon sync
* core: check for header presence when checking for blocks
2022-08-23 14:02:51 +03:00
zjubfd
f2b1f3f128
Merge pull request #1061 from qinglin89/dev-merge
...
fix: upstream patches
2022-08-23 10:43:14 +08:00
Felix Lange
6d711f0c00
params: begin v1.10.23 release cycle
2022-08-22 10:39:52 +02:00
Felix Lange
2de49b04e5
params: release go-ethereum v1.10.22
2022-08-22 10:36:39 +02:00
Péter Szilágyi
395f3d4bf6
eth/catalyst: warn less frequently if no beacon client is available ( #25569 )
...
* eth/catalyst: warn less frequently if no beacon client is available
* eth/catalyst: tweak warning frequency a bit
* eth/catalyst: some more tweaks
* Update api.go
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-08-22 11:27:39 +03:00
Péter Szilágyi
02418c2fa9
Revert "eth/fetcher: don't spend too much time on transaction inclusion" ( #25567 )
...
Revert "eth/fetcher: don't spend too much time on transaction inclusion (#25524 )"
This reverts commit 0ce494b60cd00d70f1f9f2dd0b9bfbd76204168a.
2022-08-22 10:14:56 +03:00
Zhang Zhuo
94885ae9ca
core/vm: fix sstore gas comment type ( #24583 )
2022-08-22 14:43:14 +08:00
rjl493456442
9c72720d9f
eth/downloader: ignore zero size header batch for importing ( #24569 )
...
* eth/downloader: ignore zero size header batch for importing
* core, light: reject empty header batch for importing
2022-08-22 14:43:14 +08:00
rjl493456442
c1d9690013
les, tests: fix vflux fuzzer by removing unnecessary panic ( #24537 )
2022-08-22 14:43:14 +08:00
Guifel
3572eb7b20
eth/tracers: use hex encoding for debug_traceBlock argument ( #24517 )
2022-08-22 14:43:14 +08:00
ligi
f8e2104b52
build: fix linter install on windows ( #24523 )
2022-08-22 14:43:14 +08:00
rjl493456442
d130c0e423
trie: fix two issues in trie iterator ( #24539 )
...
* trie: fix memory leak in trie iterator
In the trie iterator, live nodes are tracked in a stack while iterating.
Popped node states should be explictly set to nil in order to get
garbage-collected.
* trie: fix empty trie iterator
2022-08-22 14:43:14 +08:00
s7v7nislands
799f041ae1
rpc: fix defer in test ( #24490 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-08-22 14:43:14 +08:00
Martin Holst Swende
0e65495310
eth/protocols/snap: avoid estimating infinite percentage
2022-08-22 14:43:14 +08:00
Zachinquarantine
9843a36bec
mobile: remove deprecated Stop function ( #24369 )
2022-08-22 14:43:14 +08:00
Ceyhun Onur
413a42d9ce
core/rawdb: add HasCode, HashTrieNode and use them where possible ( #24454 )
2022-08-22 14:43:14 +08:00
dylanhuang
2e22fe399c
ci: fix the pattern of commit lint ( #1063 )
2022-08-22 11:25:31 +08:00
dylanhuang
c3e3b1128d
consensus: fix the GasLimitBoundDivisor ( #1060 )
2022-08-22 11:24:50 +08:00
dylanhuang
02b31abc5a
test: fix TestOfflineBlockPrune ( #1062 )
2022-08-22 11:24:18 +08:00
Martin Holst Swende
0ce494b60c
eth/fetcher: don't spend too much time on transaction inclusion ( #25524 )
...
* eth/fetcher: introduce some lag in tx fetching
* eth/fetcher: change conditions a bit
* eth/fetcher: use per-batch quota check
* eth/fetcher: fix some comments
* eth/fetcher: address review concerns
* eth/fetcher: fix panic + add warn log
* eth/fetcher: fix log
* eth/fetcher: fix log
* cmd/devp2p/internal/ethtest: fix ignorign tx announcements from prev. tests
* cmd/devp2p/internal/ethtest: fix TestLargeTxRequest
This increases the number of tx relay messages the test waits for. Since
go-ethereum now processes incoming txs in smaller batches, the
announcement messages it sends are also smaller.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-08-19 16:59:36 +03:00
Felix Lange
ac7ad811b4
internal/ethapi: fix build regression ( #25555 )
2022-08-19 14:48:49 +02:00
zhiqiangxu
0865880626
accounts/abi: fix set function ( #25477 )
...
* accounts/abi: fix set function
* don't break things
* update test
2022-08-19 12:15:04 +02:00
Sina Mahmoodi
36874b63a1
eth/filters: add global block logs cache ( #25459 )
...
This adds a cache for block logs which is shared by all filters. The cache
size of is configurable using the `--cache.blocklogs` flag.
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-08-19 11:14:59 +02:00
Marius van der Wijden
77308cd6fc
consensus/beacon: check ttd reached on pos blocks ( #25552 )
...
* consensus/beacon: check ttd reached on pos blocks
* consensus/beacon: check ttd reached on pos blocks
* consensus/beacon: check ttd reached on pos blocks
2022-08-19 11:37:53 +03:00
Justin Traglia
9762ddf8b0
cmd/geth: parse uint64 value with ParseUint instead of Atoi ( #25545 )
...
Parse uint64 value with ParseUint instead of Atoi
2022-08-19 09:03:45 +03:00
Justin Traglia
656dc8cc00
eth, les: unlock downloader peerSet if there's an error ( #25546 )
...
Unlock peerSet if there's an error in the downloader
2022-08-19 09:02:47 +03:00
ucwong
32e8490615
accounts/abi/bind/backends: typo fix ( #25549 )
2022-08-19 09:01:43 +03:00
ucwong
fa1305f8bf
internal/ethapi: fix comment typo ( #25548 )
2022-08-19 09:01:09 +03:00
Justin Traglia
2c5648d891
all: fix some typos ( #25551 )
...
* Fix some typos
* Fix some mistakes
* Revert 4byte.json
* Fix an incorrect fix
* Change files to fails
2022-08-19 09:00:21 +03:00
Felföldi Zsolt
e5f4fde8ef
les/vflux/client: fix goroutine leak in testIter ( #24449 )
2022-08-19 07:43:25 +08:00
Guruprasad Kamath
62d66e4656
appveyor.yml: fetch sub-modules recursively ( #24451 )
2022-08-19 07:41:15 +08:00
Sina Mahmoodi
7bb1463a63
graphql: fix nonce for pending accounts ( #24443 )
2022-08-19 07:40:41 +08:00
b1ackd0t
c1dd16f4ce
internal/ethapi: fix incorrect type on empty slice ( #24372 )
...
* Fixes #24368
Signed-off-by: 0x6f736f646f <blackd0t@protonmail.com>
* Update internal/ethapi/api.go
Co-authored-by: Martin Holst Swende <martin@swende.se>
2022-08-19 07:35:43 +08:00
zhiqiangxu
a1db38af74
p2p: reduce the scope of variable dialPubkey ( #24385 )
...
dialPubkey isn't used anywhere else after dialDest.Load, so it should be safe to
restrict its scope to the if clause.
2022-08-19 07:33:07 +08:00
Martin Holst Swende
788b77115c
core/state: fix read-meters + simplify code ( #24304 )
2022-08-19 07:31:35 +08:00
setunapo
e64fde1840
ci: allow merge pull request
2022-08-19 06:43:12 +08:00
rjl493456442
a1b8892384
trie: improve node rlp decoding performance ( #25357 )
...
This avoids copying the input []byte while decoding trie nodes. In most
cases, particularly when the input slice is provided by the underlying
database, this optimization is safe to use.
For cases where the origin of the input slice is unclear, the copying version
is retained. The new code performs better even when the input must be
copied, because it is now only copied once in decodeNode.
2022-08-19 00:39:47 +02:00
Justin Traglia
cce7f08438
rlp/rlpgen: fix error handling when target type not found ( #25547 )
...
typ will be nil when lookupStructType returns an error. cfg.Type should be used instead.
2022-08-19 00:34:57 +02:00
Guillaume Ballet
23ac8df153
cmd. core: save preimages on genesis creation ( #25538 )
...
force preimage dump for genesis
2022-08-18 13:28:06 +02:00
Roshan
11d2bae157
bep153: Native Staking on BSC ( #1051 )
2022-08-18 14:36:45 +08:00
setunapo
ddbe6c4f77
ci: no type-case check for scope.
2022-08-17 19:24:48 +08:00
Seungbae Yu
a50c006b49
core: make tx journal check and open atomic ( #25530 )
...
* core: reduce system call about `os`
* avoid deprecated method
2022-08-17 14:16:18 +03:00
Guillaume Ballet
6da5c1644d
core/state, trie, light: add a TryDeleteAccount method ( #25531 )
...
* core/state, trie, light: Add a DeleteAccount method
* review feedback
* Update database.go
* pr triage feedback
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
2022-08-17 14:14:49 +03:00
Guillaume Ballet
12185e40e0
core, trie: flush preimages to db on blockchain close ( #25533 )
...
* core, trie: flush preimages to db on database close
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
* rename Close to CommitPreimages for clarity
* core, trie: nitpick fixes
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
Co-authored-by: Péter Szilágyi <peterke@gmail.com>
2022-08-17 14:12:10 +03:00
joeycli
dbb047bccc
Merge pull request #1053 from bnb-chain/fix_opendatabase_fail
...
state: fix offline tool start failed when start with pruneancient
2022-08-17 14:29:11 +08:00
dylanhuang
05d8399cdf
ci: add commit message lint ( #1044 )
2022-08-16 19:01:24 +08:00
Marius van der Wijden
c4ab7d2291
params: set mainnet terminal total difficulty for the merge ( #25528 )
...
* params: set mainnet ttd to 58_750_000_000_000_000_000_000
* params: set mainnet ttd to 58_750_000_000_000_000_000_000
2022-08-16 09:38:23 +03:00