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
joeycli
895c077f8a
fix bug #1034 , offline tool start failed when start with pruneancient
2022-08-16 14:02:45 +08:00
Martin Holst Swende
0016eb7eee
params: set ttdpassed on goerli ( #25519 )
2022-08-15 10:04:58 +02:00
ycyraum
141cd42531
core/genesis: remove calaverasAllocData ( #25516 )
...
core/genesis: calaverasAllocData no longer used
2022-08-12 13:58:06 +02:00
lightclient
0be9d76e37
internal/ethapi: rework setDefaults for tx args so fee logic is separate ( #25197 )
...
Co-authored-by: bobpkr <bob.p@krustuniverse.com>
2022-08-11 10:56:53 +02:00
Darioush Jalali
366d2169fb
accounts/abi: display name in "method/event not found" error ( #25512 )
2022-08-11 09:25:54 +02:00
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>
2022-08-10 10:30:59 +02:00
Péter Szilágyi
c4cd632f47
Merge pull request #25506 from ycyraum/apply-transaction-no-bc
...
core: remove unused bc ChainContext in applyTransaction
2022-08-10 11:02:22 +03:00
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
2022-08-10 09:31:15 +02:00
ycyraum
877ef7f09e
core: remove unused bc ChainContext in applyTransaction
2022-08-10 08:02:37 +02:00
rjl493456442
a41ea8a97c
all: cleanup the APIs for initializing genesis ( #25473 )
...
* all: polish tests
* core: apply feedback from Guillaume
* core: fix comment
2022-08-09 12:44:39 +03:00
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.
2022-08-09 11:04:57 +02:00
aaronbuchwald
759d795c56
eth: formatted error nit ( #25499 )
2022-08-09 11:23:41 +03:00
int88
e4b3bd6f26
core: fix uncle creation in TestFastVsFullChains ( #25476 )
...
Co-authored-by: Felix Lange <fjl@twurst.com>
2022-08-09 00:20:46 +02:00
int88
e93442c6cf
eth/downloader: fix log errors of queue_test.go ( #25494 )
2022-08-08 16:07:54 +03:00
Alex Vorona
723863ee56
Dockerfile: update ca-certificates version ( #1038 )
2022-08-08 18:09:02 +08:00
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
2022-08-08 12:08:36 +03:00
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>
2022-08-04 16:13:18 +02:00
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
2022-08-04 11:03:20 +03:00
Delweng
733d76a88d
node: remove noop path.Join ( #25475 )
...
Signed-off-by: Delweng <delweng@gmail.com>
2022-08-04 10:42:03 +03:00
Felix Lange
f809cf6ea6
graphql: embed *Resolver instead of backend interface ( #25468 )
...
This creates some infrastructure to share resources between graphql
API objects.
2022-08-03 19:08:32 +02:00
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.
2022-08-03 18:18:45 +02:00
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.
2022-08-03 17:02:09 +02:00
yong
6b6261b51f
core/types: fix typo in comment ( #25359 )
2022-08-03 16:56:57 +02:00
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.
2022-08-03 16:50:12 +02:00