Commit Graph

16035 Commits

Author SHA1 Message Date
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
Giulio rebuffo
7896fc60b6
fixed notifications (#4520) 2022-06-23 17:23:35 +02:00
Andrew Ashikhmin
70bd93c5c3
Only apply overrides to stored config of a private chain (#4521) 2022-06-23 10:41:15 +02:00
Chase Wright
1c4584b438
Include admin methods in README (#4519) 2022-06-23 07:13:32 +06:00
Andrew Ashikhmin
0a527feddb
Send Engine API response after tx.Commit() even when useExternalTx (#4516)
* pendingPayloadStatus -> pendingPayloadHash

* Ensure that Engine API response is sent after tx.Commit() even when useExternalTx

* ProcessEngineApiResponse -> SendEngineApiResponse

* PayloadResponse -> PayloadStatus
2022-06-22 14:54:23 +02:00
Andrew Ashikhmin
18e5bf3bbf
Rework PR 4505 (#4511)
* Revert "Update chainConfig in the database (#4505)"

This reverts commit f38ab485e0.

* Only preserve config of unknown chains
2022-06-21 10:17:54 +02:00
Luke Montgomery
a11dadd012
fixed typo in db_faq.md (#4509) 2022-06-21 08:58:55 +01:00
Andrew Ashikhmin
daa84922d6
Commit transaction before responding on Engine API (#4506)
* Remove an unused interrupt value

* Remove sendErrResponse from safeAndFinalizedBlocksAreCanonical

* Clean up err handling

* startHandlingForkChoice returns response

* handleNewPayload returns response

* Commit transaction before responding on Engine API

* small fix

* Reply with SYNCING before long unwind

* schedulePoSDownload doesn't require requestStatus anymore
2022-06-20 23:03:17 +02:00
ledgerwatch
f38ab485e0
Update chainConfig in the database (#4505)
* Update genesis.go

* Remove the test

* Remove unnecessary code

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-20 16:51:19 +01:00
dylanhuang
834f0f4dea
add eulerBlock in chapel.json (#4503) 2022-06-20 12:45:24 +01:00
Alex Sharov
acd69a63ec
"-tags debug" to allow pprof show profiling from C code (#4502) 2022-06-20 15:16:56 +06:00
Alex Sharov
6612cf42d6
"torrent_hashes --verify" to detect "snapshots/tmp" dir (#4501) 2022-06-20 14:31:57 +06:00
ledgerwatch
79830adefa
[erigon2.2] collecting read indices (#4499)
* [erigon2.2] collecting read indices

* Fix compile issue

* Update to latest erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-20 09:00:45 +01:00
ledgerwatch
820014734f
[BSC] fix for the Euler fork (#4500)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-20 08:53:01 +01:00
fenghaojiang
811eef5a7b
add_abigen_error_handle (#4498)
* add_abigen_error_handle

* add abigen error type test code
2022-06-20 08:48:25 +01:00
Giulio rebuffo
7a2b575e56
Added memory execution (#4446)
* add

* added in memory execution draft

* func to state

* added functionality

* backend function for memory execution

* simplified stage state

* haltable stage execution

* added mod sum

* hd

* sl

* LOL

* LOL again

* need trace

* more logs

* added cleanup on fcu

* fcu

* mod

* bunch of prtln

* feed

* ops

* headers notify

* revert

* slightly more commented

* head

* nil block retire

* comments

* prevent clean

* corrected occasional panics

* fixed lint
2022-06-19 20:45:36 +01:00
Enrique Jose Avila Asapche
29760d1425
Getting rid of unnecessary cache (#4494)
* whitelistedTable used

* added descriptions

* no cache

* lint
2022-06-19 19:39:43 +01:00
ledgerwatch
64067a2b77
Debugging Engine API (#4488)
* defer tx rollback

* Add http.trace flag

* Fixed http.trace flag

* Fix lint

* Fix lint

* Delete unused tests

* Fix lint

* Fix lint

* Fix lint

* Fix lint

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-19 13:40:28 +01:00
ledgerwatch
2e3a75f2b1
[erigon2.2] Add skip analysis to trace_filter (#4487)
* [erigon2.2] Add skip analysis to trace_filter

* Optimisation

* Update to latest erigon-lib

* Fix test

* Update to latest erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-19 07:01:00 +01:00
ledgerwatch
f88fa89bda
Fix in skip_analysis (#4493)
* Update skip_analysis.go

* Update skip_analysis.go
2022-06-19 06:51:05 +01:00
Alex Sharov
ef749e39c3
Roaring version up (#4492)
* save

* save
2022-06-19 06:27:14 +01:00
Alex Sharov
dc8a3fc565
fix docs(#4491) 2022-06-19 09:33:28 +06:00
Uwe Voelker
dfae218a6f
fix typo (#4486) 2022-06-18 20:17:38 +01:00
Zachinquarantine
c2518ad6a3
Removes StorageBlock type (#4483) 2022-06-18 08:35:43 +01:00
ledgerwatch
50873a5b1d
[erigon2.2] Fix for code merge (#4478)
* [erigon2.2 Fix for code merge

* Update to latest erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-17 19:46:27 +01:00
Andrew Ashikhmin
d1aab4e59b
Bring a corner case in line with the Engine API spec (#4477) 2022-06-17 19:24:36 +01:00
ledgerwatch
e44d62db1a
Fix trace block (#4480)
* Fix trace block

* Fix compile

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-17 19:14:52 +01:00
ledgerwatch
ecf528d56a
Prevent clogging up pending subpool with transactions that were already mined but notification missed (#4476)
* Debug tx pool Best

* Print results of Best

* Print

* Update to erigon-lib

* Fix

* Update to latest erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-17 16:10:35 +01:00
ledgerwatch
027faa1de8
Update state_processor.go (#4475) 2022-06-17 14:14:32 +01:00
ledgerwatch
93151f0ae6
[erigon2.2] Reduce allocations when replaying historical txs (#4460)
* [erigon2.2] Reduce allocations when replaying historical txs

* import new API, fix code

* Add hack decompress function

* update erigon-lib

* Fix hack

* Update to latest erigon-lib

* Fix reindexing

* Enable skip analysis for tracing calls too

* Enable for eth_getLogs

* Fix skip analysis

* Optimise

* Stop grpc server in the tests

* Print

* No panic on server stop

* Update to latest erigon-lib

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-17 13:40:49 +01:00
Andrew Ashikhmin
70b41f5dc5
Small readjustment of FCU logs (#4473) 2022-06-17 12:47:17 +01:00
Andrew Ashikhmin
45b374a6d8
Enable --http by default (#4470) 2022-06-16 17:39:36 +01:00
ledgerwatch
b1572a15d5
No reorgs when fork choice head points to a canonical header (#4466)
* No reorgs when fork choice head points to a canonical header

* Return immediately

* Fix sentry

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-16 16:07:09 +01:00
3nprob
a738a0dd51
makefile: Add DOCKER_{UID,GID,TAG} make params (#4457)
Co-authored-by: 3np <3np@example.com>
2022-06-16 15:50:59 +01:00
Giulio rebuffo
2e600316e3
Used memory batches from Erigon (#4469)
* modded summed

* deleted

* ops
2022-06-16 16:39:56 +02:00
Enrique Jose Avila Asapche
963fb7a7f5
BSC main net Euler fork (#4461)
* added euler into chainConfig

* parlia abi update

* updated upgrade.go

* ops/

* added euler gas usage

* added eulerBlock for bsc

* changed block positioning

* comment
2022-06-16 15:32:32 +01:00
ledgerwatch
df3eea6414
Not send sentry task to closed tasks channel (#4467)
* Not send sentry task to closed tasks channel

* Add comments

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-16 11:17:53 +01:00
Andrew Ashikhmin
bca563fd0f
Fix genesis storage collision state tests (#4462)
* Enable a couple of tests that work now

* Fix genesis storage collision state tests

* IncarnationMap in t8ntool MakePreState
2022-06-15 21:17:16 +01:00
Giulio rebuffo
631d485476
Renamed mutations types to be exported (#4463)
* renamed

* ops
2022-06-15 19:59:20 +02:00
Giulio rebuffo
663ccfd4dc
better flush (#4459) 2022-06-15 18:45:05 +02:00