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
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
95b41490e0
Advise remove --snap.stop when no indices ( #4570 )
...
* save
* save
2022-06-29 09:14:37 +06:00
Giulio rebuffo
ed69bac065
Fixed in-memory execution hive tests ( #4565 )
...
* badBlockHalt
* fixed buidl
* lintl
2022-06-29 08:28:00 +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
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
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
Alex Sharov
afd07e5dee
--no-downloader flag support ( #4545 )
2022-06-26 17:13:32 +06:00
Alex Sharov
1f4f850b89
pass context around hased state stage ( #4537 )
...
* save
* save
* save
2022-06-25 20:34:42 +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
Giulio rebuffo
7896fc60b6
fixed notifications ( #4520 )
2022-06-23 17:23:35 +02: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
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
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
Andrew Ashikhmin
70b41f5dc5
Small readjustment of FCU logs ( #4473 )
2022-06-17 12:47:17 +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
Andrew Ashikhmin
eb497372ae
Interruptible PoS block building ( #4438 )
...
* Fix a typo
* BlockBuilder dummy
* BlockProposerParametersPOS -> BlockBuilderParameters
* Pass tx to MiningStep
* BlockBuilderFunc
* Interrupt in MiningExec Stage
* Draft implementation of BlockBuilder
* Fail back to empty header
* Add a comment
* cosmetic change
* Cosmetic change again
* It's not safe to pass transactions between goroutines
2022-06-13 15:43:09 +02:00
ledgerwatch
1cc5b92dd8
Another fix for stuck header download ( #4433 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-11 08:13:40 +01:00
Krishna Upadhyaya
1e3c90ba80
Bor devnet option ( #4428 )
...
* bor mining testing
* Implemented bor-devent network
* Minor fixes
* use signer as validator
* remove unused spaces
* fix typo
2022-06-10 15:32:04 +07:00
Giulio rebuffo
e2a04f7567
fix ( #4425 )
2022-06-10 02:52:35 +02:00
Giulio rebuffo
b8e5cbf820
fixed timeout ( #4419 )
2022-06-09 13:16:11 +02:00
Alex Sharov
0e142e33a0
Reclaimable space in logs ( #4417 )
...
* save
* save
* save
* save
* save
* save
* save
2022-06-09 11:47:38 +01:00
Andrew Ashikhmin
27d652b2a4
WriteForkchoiceHead for no-op FCUs ( #4415 )
...
* WriteForkchoiceHead for no-op FCUs
* Flip WriteForkchoiceHead & safeAndFinalizedBlocksAreCanonical
2022-06-09 12:26:09 +02:00
ledgerwatch
f31abfe83b
Fixes for RPC notification log ( #4410 )
...
* Underflow fix
* Fix rpc notification to 0
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-09 08:48:19 +07:00
Andrew Ashikhmin
644d25d25d
MergeForkBlock -> MergeNetsplitBlock ( #4407 )
2022-06-08 12:41:50 +02:00
Alex Sharov
d7d698f565
db migration to reset blocks ( #4389 )
...
* save
* save
* save
* save
* save
* save
* Update reset_blocks.go
* Not to remove too many tx lookup files
* Fix truncate blocks and add reset txlookup
* Fix bodies
* Fix nil pointer
Co-authored-by: ledgerwatch <akhounov@gmail.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-07 19:59:14 +01:00
Enrique Jose Avila Asapche
a1f4472f10
added back PR 3806 ( #4382 )
2022-06-07 10:51:28 +01:00
Alex Sharov
d655854b53
Snapshots: optimisticaly open at app startup ( #4393 )
...
* save
* save
2022-06-07 12:33:33 +07:00
Alex Sharov
2211088fa8
don't open snapshots at startup #4392
2022-06-07 12:20:49 +07:00
Alex Sharov
e146b66e35
more usage of dirs object #4390
2022-06-07 11:54:04 +07:00
Alex Sharov
a53642b4bf
datadir.Dirs configuration object to group dir config ( #4387 )
2022-06-07 10:24:50 +07:00
ledgerwatch
b2f9b25300
For for overwritten anchor ( #4379 )
...
* For for overwritten anchor
* Switch to time types, log retry time in diagnostics
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-06 18:23:41 +01:00
Alex Sharov
109e8ab814
StageSenders: wrong canonical array size at initial sync with snapshots ( #4378 )
...
* save
* save
* save
2022-06-06 18:08:33 +01:00
Giulio rebuffo
dce6ac22d0
Revert "Handling of already canonical payloads ( #4367 )" ( #4373 )
...
This reverts commit df80b0d915
.
2022-06-05 16:07:36 +02:00
ledgerwatch
4a5f97527b
Better diagnostic for stuck headers ( #4372 )
...
* More stuck headers diagnostics
* Temp print
* Remove temp print
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-05 15:00:13 +01:00
Giulio rebuffo
df80b0d915
Handling of already canonical payloads ( #4367 )
...
* deprecated ACCEPTED status
* pre-check for existing canonical header
2022-06-05 14:16:52 +02:00
Krishna Upadhyaya
0dae3ad69c
add bor-mainnet to chain snapshots ( #4369 )
2022-06-05 14:45:45 +05:30
Enrique Jose Avila Asapche
9f1cc40c89
changed syncmode flag to snapshots flag ( #4353 )
...
* changed syncmode flag to snapshots flag
* using boolT
* Remove syncmode concept
* Add mumbai
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-05 07:33:55 +01:00
Andrew Ashikhmin
53b30e91c3
Authorize Clique & Parlia even when wrapped into Serenity ( #4354 )
...
* Print more info on ErrUnauthorizedSigner
* Authorize Clique even when wrapped into Serenity
* Revert "Print more info on ErrUnauthorizedSigner"
This reverts commit b0ab83ffbed45d6beeb8ba30a6ea576b2003ab26.
* Authorize Parlia even when wrapped into Serenity
2022-06-03 18:14:49 +02:00
Alex Sharov
f838268e44
[wip] Snapshots: more runtime invariants check ( #4350 )
2022-06-03 18:50:01 +07:00
Enrique Jose Avila Asapche
49292346b3
Auto correcting sync mode instead of giving an error ( #4337 )
2022-06-03 09:38:10 +01:00
Mihai
8a4e122258
fix broken link (stagedsync.go) ( #4339 )
...
replace with link to stages.go
2022-06-02 21:08:49 +01:00
ledgerwatch
bcbb8bec65
Try to prevent double block retire ( #4330 )
...
* Try to prevent double block retire
* Remove print
* More careful setting of segmentsMax
* Print snapshots max
* Clean lists
* Print
* Use Reopen
* Fix
* Remove prints
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-02 16:58:38 +01:00