Guillaume Ballet
23ac8df153
cmd. core: save preimages on genesis creation ( #25538 )
...
force preimage dump for genesis
2022-08-18 13:28:06 +02:00
Manav Darji
2a92cb1ecc
fix: whitelist/requiredblocks regression ( #496 )
2022-08-17 21:12:06 +05:30
Manav Darji
77f444a24b
fix: whitelist/requiredblocks regression ( #497 )
2022-08-17 21:11:40 +05:30
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
Manav Darji
9f1feac053
eth, cli: prevent snap sync mode migration - v0.3.x ( #494 )
...
* handle snap sync mode switches
* fix linters
2022-08-17 15:18:16 +05:30
Manav Darji
43b67c361f
handle snap sync mode switches ( #495 )
2022-08-17 13:55:27 +05:30
Manav Darji
49cd8c8e7c
update version
2022-08-17 13:28:55 +05:30
Pratik Patil
0be4ea342c
updated config.toml in builder/files, added all fields and commented those which are not used ( #491 )
2022-08-17 12:01:53 +05:30
Evgeny Danilenko
3c94dfb25f
A thread safe way to take a free port ( #485 )
...
* initial commit
* safe latest error
* remove json listener
* fix: debug block unit test
* remove jsonrpc listener from server
* fix: consume network's find port in heimdall client test
* update key in log while startup
* linters
* fix
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
2022-08-16 18:43:18 +03: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
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
Krishna Upadhyaya
72aa44efe6
Fix EOF error in gRPC state-sync ( #489 )
...
* Fix EOF error in gRPC state-sync
* linters
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-08-11 20:40:08 +03:00
Manav Darji
1d1f00cbe7
eth: fix multiple checkpoint fetch logic ( #465 )
...
* fix: handle checkpoint ordering
* create checkpoint verifier, add unit tests
* fix: remove mutex
* address comment for default checkpoint verifier
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-08-11 16:00:33 +03: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
Evgeny Danilenko
e699254142
Use atomic pointer in go 1.19 ( #446 )
...
* use atomic pointer
* golang version
* golang version
* go1.19
* linters
* Bump golangci-lint
* linters
* linters
* linters after merge
* generic logger
* generic logger
* logger
* logger
* linters
* bump toml
* linters1
* linters
* linters
* linter
* linter
* linters
* linters
* linters
2022-08-09 22:11:09 +03: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
Manav Darji
ac559bcd16
internal/cli: add support for removedb ( #478 )
...
* internal/cli: add support for removedb
* update docs
* internal/cli: use constant path, handle err
2022-08-09 09:16:42 +05:30
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
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
Arpit Temani
95891a878a
bor filter apis
2022-08-07 00:24:07 +05:30
Pratik Patil
16408ba324
internal/cli, cmd/geth: replaced package naoina/toml with BurntSushi/toml and updated config name-tags ( #486 )
...
* removed package naoina/toml from dumpconfig and added BurntSushi/toml
* updated cmd/gethconfig.go
2022-08-05 14:56:41 +05:30
Manav Darji
ba18491841
fix: tests
2022-08-04 09:36:09 -07:00
Manav Darji
18fafc01c6
disable bor wallet by default
2022-08-04 09:36:09 -07: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
SHIVAM SHARMA
d8d9360dfe
Merge pull request #480 from maticnetwork/shivam/POS-705
...
Fixed GetTransactionByBlockNumberAndIndex and added testcase around it.
2022-08-04 00:27:53 +05:30
Shivam Sharma
6b651f4956
rm : t.parallel()
2022-08-03 23:26:45 +05:30
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
Krishna Upadhyaya
f42a70f592
Merge pull request #468 from maticnetwork/POS-648
...
Implemented gRPC client for heimdall
2022-08-03 18:01:01 +05:30
Shivam Sharma
460bd4dde7
fix : tests
2022-08-03 16:42:01 +05:30
Shivam Sharma
d5e51c9f76
add : more comments
2022-08-03 16:05:45 +05:30
Shivam Sharma
57e1282caf
fix : lint
2022-08-03 15:56:36 +05:30
Shivam Sharma
d3231c0884
fix :GetTransactionByBlockNumberAndIndex + testGetTransactionByBlockNumberAndIndex
2022-08-03 15:29:24 +05:30
Jerry
a28720ee42
Merge pull request #479 from cffls/qa
...
Update qa branch for v0.3.0
2022-08-02 22:29:46 -07:00