Commit Graph

16024 Commits

Author SHA1 Message Date
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
ledgerwatch
2e4e7bd4de
[erigon2.2] Log stats tool (#4453)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-15 07:10:37 +01:00
Giulio rebuffo
ff5cbcb75d
Made in memory mutation compatible with all buckets (#4454)
* progress #1

* progress #2

* proper file naming

* more mature memory mutation
2022-06-15 01:10:41 +02:00
Giulio rebuffo
cad32ee1cf
added deletion support (#4451) 2022-06-14 21:43:44 +02:00
sudeep
7f81e0ddde
in transaction execution, subtract from account balance only after enough gaspool is ensured (#4450)
- noticed the difference when executing testdata#10 in go-ethereum and erigon
2022-06-14 20:33:30 +01:00
ledgerwatch
21e3ebdab5
Update skip analysis, add more BSC snapshot hashes (#4448)
* Update skip analysis, add more BSC snapshot hashes

* Syntax fix

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-14 16:06:42 +01:00
Enrique Jose Avila Asapche
352e5b3d2a
Clean up (#4445)
* changed to rpchelper

* got rid of getBlockNumber file
2022-06-14 14:29:49 +01:00
ledgerwatch
34d823c15a
txid patch to try to reduce GC work during commit (#4441)
* txid patch to try to reduce GC work during commit

* Switch to erigon-lib main

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-14 12:31:26 +01:00
Andrew Ashikhmin
92b1f06932
Gray Glacier bomb delay (#4443) 2022-06-14 10:48:40 +01:00
Enrique Jose Avila Asapche
a5cb53d690
safe and finalized blocks from eth_getBlockByNumber (#4436)
* added getFinalzed and getSafe block num

* added rpc finalized and safe block num

* getting nums

* returning nil

* returning nil

* added to helper.go

* removed repeated code

* added functions into rpchelper

* returning err

* simplified

* using previous latest getter

* getting pending block with filter/

* Fix plain state block number

* Fix test

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-14 11:07:46 +03:00
laughship
f376d0a7a0
Remove debug output (#4442) 2022-06-14 05:31:42 +01:00
ledgerwatch
e47dd15e68
[erigon2.2] Prototype of eth_getLogs (#4437)
* Initial work

* Fix compile errors

* Update

* Debug

* Cleanup

* Temp changes

* Temp

* Remove temp

* Remove print

* Upgate to erigon-lib main

* go mod tidy

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-13 21:25:17 +01:00