Commit Graph

16024 Commits

Author SHA1 Message Date
Alex Sharov
2415fecb26
--downloader.verfiy flag to verify once on startup (#4597)
* save

* save

* save

* save

* save

* save
2022-07-01 16:52:43 +06:00
Andrew Ashikhmin
c92ef8870c
ReportBadHeaderPoS with memoryOverlay (#4600) 2022-07-01 12:50:34 +02:00
primal_concrete_sledge
5a8c729fbb
fix/Issue-4593_remove_double_close_of_newheads_chan (#4598) 2022-07-01 10:51:42 +01:00
Giulio rebuffo
33892ffd79
Fixed transaction on hive tests (#4590)
* try 1

* try 1

* fix now?

* Update accessors_chain.go

* Update accessors_chain.go

* added comments
2022-07-01 11:02:24 +02:00
Enrique Jose Avila Asapche
fa2998728a
pending block will only return if it is not nil (#4588)
* pending block will only return if it is not nil

* unncessary
2022-07-01 10:08:13 +06:00
battlmonstr
a5c1cad346
Fix eth_subscribe_test timeout on CI (#4595)
Reduce the likelihood of a deadlock caused by goroutine starvation on CI.
The CI macOS runners have 3 cores.
When running other tests in parallel having too few available cores could cause a deadlock.

Test with:

GOMAXPROCS=2 go test ./cmd/rpcdaemon/commands/eth_subscribe_test.go -test.count 100 --timeout 10s

Expected: the command finishes within 3 sec
Before the fix: it timeouts (without a timeout - hangs forever)
2022-07-01 09:03:29 +06:00
Justin
7e9d65abdf
adding buildkit fix to the known issues (#4594) 2022-06-30 20:25:05 +02:00
Alex Sharov
c03d57356c
prevent downloading new snapshots after initial sync (#4585) 2022-06-30 22:35:44 +06:00
Giulio rebuffo
087105d1f3
lvh on invalid transition block (#4583) 2022-06-30 18:20:21 +02:00
Alex Sharov
60b5a9efe3
grafana fix panel header #4587 2022-06-30 18:17:01 +06:00
Cory
74cf9840ae
Patch plumbing of docker-compose UID/GID build args (#4527)
* Patch plumbing of docker-compose UID/GID build args

* Fallback to 1000/1000 if DOCKER_(U|G)ID not set

* Revise README.md instructions for docker further

* Fix existing typo forc 'servie' -> 'service'

* Rename PUID/GUID -> UID/GID

* Specify user in erigon docker service

* Rely on .env instead of specifying :-1000

* Polish Makefile for docker use case

* one more helpful comment

* make docker should use UID/GID --build-arg

* Fix make docker and more fail-fast if envvar set incorrect

* mv .env->.env.example to not intefere existing workflows

* Specify envvars in docker CI

* Adjust validate_docker_build_args to permit non-erigon user

* Also run docker CI target on macos-11 os

* Add DOCKER_UID, DOCKER_GID in hooks/build

* Patch docker build arg validation for macos

* Add actions-setup-docker@master for macos

* Don't run automated test for docker macos

* Cleanup Makefile

* Comments, targets for erigon users

* More Makefile cleanup, debugging still

* Typo fix

* Create subdirs before calling ls

* Get rid of flaky validation

* DOCKER_UID, DOCKER_GID init to runner if not set

* Get rid of unnecessary variable for now

* Improved README based on new changes

* Proper uid/gid `make user_*` when no envars set

* Fix typo in Makefile comment

* Fix make docker as sudo user
2022-06-30 16:11:37 +06:00
Enrique Jose Avila Asapche
5013be0075
getting header instead of block (#4582) 2022-06-30 10:46:25 +01:00
Giulio rebuffo
8558778ee2
fixed engine unit tests (#4581)
* fixed engine unit tests

* done
2022-06-30 02:27:34 +02:00
Andrew Ashikhmin
7d8c67e853
Exempt local transactions from spam protection (#4580) 2022-06-29 17:50:20 +02:00
Giulio rebuffo
687295f01b
fixed stall (#4576) 2022-06-29 17:49:33 +02:00
Andrew Ashikhmin
7cd195117f
More robust quitting of PoW mining (#4574)
* isTrans -> cfg.blockBuilderParameters != nil

* More robust quitting of PoW mining
2022-06-29 17:39:12 +02:00
Alex Sharov
6add6ecd0e
Snapshots: new bsc hash #4578 2022-06-29 20:42:05 +06:00
Alex Sharov
b9473745ad
don't recommend --snap.stop flag #4577 Open 2022-06-29 20:41:00 +06:00
Enrique Jose Avila Asapche
d72fba3bec
eth_estimateGas: read header instead of whole block (#4561)
* check if block is nil

* using read header

* returning 0, nil
2022-06-29 17:29:31 +03:00
Alex Sharov
cfa8b545fc
downloader: fix tmp dir detection check #4575 2022-06-29 19:53:52 +06:00
hrthaowang
479912423e
Introduce eth_callMany and debug_traceCallMany (#4567)
* rpc: add eth_callMany (#1)

* clean the repo

* clean style

* remove unwanted err check

* fix header bug

* Add RPC `debug_traceCallMany` (#4)

* update submodule

* fix error msg
2022-06-29 14:24:21 +01:00
Andrew Ashikhmin
4155ec101c
Fix txpool.accountslots flag (#4573) 2022-06-29 14:44:22 +02:00
Andrew Ashikhmin
8f86c5d615
Remove getNodeData experimental feature (#4559) 2022-06-29 18:23:00 +06:00
Alex Sharov
880a339456
gen less blocks in test (#4571) 2022-06-29 13:22:47 +06:00
Alex Sharov
95b41490e0
Advise remove --snap.stop when no indices (#4570)
* save

* save
2022-06-29 09:14:37 +06:00
Alex Sharov
f613fcafd2
torrent verbosity allow debug #4569 Open 2022-06-29 08:42:11 +06:00
Enrique Jose Avila Asapche
64697a9647
torrent verbosity now uses int (#4551)
* torrent verbosity now uses int

* logging torrent verbosity

* moved crit correctly
2022-06-29 08:29:59 +06:00
Giulio rebuffo
ed69bac065
Fixed in-memory execution hive tests (#4565)
* badBlockHalt

* fixed buidl

* lintl
2022-06-29 08:28:00 +06:00
Alex Sharov
6878ddb76f
More user-friendly warning about non-existing module of rpc #4568 2022-06-29 08:24:57 +06:00
Giulio rebuffo
aa7985341e
LVH support to memory overlay (#4555)
* fixed fcu

* fixed leak

* maybe now?

* wrote forkchoice
2022-06-28 17:46:24 +02:00
Andrew Ashikhmin
dc5d3ffaac
Revert "Switch from eth/66 to eth/67 (#4549)" (#4562)
This reverts commit 16e57aa8a2.
2022-06-28 13:42:35 +02:00
Andrew Ashikhmin
16e57aa8a2
Switch from eth/66 to eth/67 (#4549)
* Switch from eth/66 to eth/67

* Fix a compilation error

* Update erigon-lib

* Refresh erigon-lib
2022-06-28 10:12:48 +02:00
Alex Sharov
b315394c48
eth_estimateGas to use snapshots and blocksLRU (#4556) 2022-06-28 13:56:08 +06:00
Alex Sharov
538b4fea6c
Snapshots: don't panic after too far reset (#4558)
* save

* save

* save

* save
2022-06-28 10:31:44 +06:00
Alex Sharov
359ae889b8
don't crush on p2p message handling panic (#4557)
* save

* save
2022-06-28 10:19:57 +06:00
Levi Aul
5b42a6e8e8
Pass context to engines that perform async operations (#4531)
* Configure consensus engine with context of stage if engine will do async work

* Change API to make setting of context for AsyncEngine multithreaded-safe

* Ensure lock gets inherited by reference

* Fix linter errors
2022-06-28 09:49:51 +06:00
Giulio rebuffo
b96a3e73ae
ttd sepolia (#4552) 2022-06-28 01:53:04 +02:00
Giulio rebuffo
588c2d4e36
Implemented side forks support (up to depth of 128). (#4514)
* side forks

* fixed stuff

* lint

* update go.mod and go.sum

* cmd

* added comment

* better validatePayload

* fixed empty payload sometimes

* support future side forks

* added crit error handle

* fix compile err

* lint
2022-06-27 15:59:54 +02:00
ValValu
4897f03cbd
Update Readme re http=false (#4550)
if you wish to separate node from rpcdaemon need to launch with -http=false or rpcdaemon will not launch as port occupied by erigon
2022-06-27 13:10:45 +02:00
Alex Sharov
f0fde26902
document rpc filter methods (#4548) 2022-06-27 09:45:19 +06:00
Alex Sharov
b9cb6d953e
Fix nil td (#4546)
* save

* save
2022-06-26 17:27:14 +06:00
Alex Sharov
afd07e5dee
--no-downloader flag support (#4545) 2022-06-26 17:13:32 +06:00
Alex Sharov
529682aa9d
New goerli snapshot (#4544) 2022-06-26 17:13:07 +06:00
Alex Sharov
1f4f850b89
pass context around hased state stage (#4537)
* save

* save

* save
2022-06-25 20:34:42 +06:00
Alex Sharov
0d29c3d47d
Compress: reduce etl buffers to save RAM (#4536) 2022-06-25 19:39:39 +06:00
Andrea Lanfranchi
0982edda38
Wmake.ps1 changes (#4532)
* wmake.ps1 changes

* Polish knobs

* wnoSubmoduleUpdate -> WnoSubmoduleUpdate

* Remove leftover

* Remove pollution of GODEBUG
2022-06-25 13:50:36 +06:00
Andrew Ashikhmin
9b8888d797
Delete bad blocks on unwind (#4529)
* Delete bad headers

* Delete bad bodies
2022-06-24 15:52:04 +02:00
Enrique Jose Avila Asapche
389af4fc06
check if block is nil (#4528)
* check if block is nil

* added to rpcdaemon22
2022-06-24 19:48:40 +06:00
primal_concrete_sledge
5e2f6bb2db
Fix/new eth filters (#4504)
* Add fixes to eth_newPendingTxFilter and others

* Fix tests

* Add test

* Add goroutines return on closed chans
2022-06-24 09:11:38 +01:00
Andrew Ashikhmin
8de7c5e41c
JSON parsing of safe & finalized (#4524) 2022-06-23 19:37:39 +02:00