Commit Graph

2501 Commits

Author SHA1 Message Date
Alex Sharov
fb2294d124
Erigon22: basic txNum forward/unwind (#5176) 2022-08-25 12:24:01 +07:00
Alex Sharov
a6d92130a6
snapshots: check gap between snapshots and db at Erigon startup (after download confirmation from Downloader) #5174 2022-08-25 09:08:31 +07:00
Andrew Ashikhmin
e40170ebd1
Correct classification of errors in addTransactionsToMiningBlock (#5171) 2022-08-24 16:44:38 +02:00
Andrew Ashikhmin
b3d99f8e8c
Small cleanups (#5162) 2022-08-24 11:35:39 +02:00
Alex Sharov
07a9dc9db0
up metrics version (#5160)
* save

* save
2022-08-24 11:49:58 +07:00
Alex Sharov
16d02c8cc9
erigon22: unwind trie support (#5159) 2022-08-24 11:37:58 +07:00
Enrique Jose Avila Asapche
6b08174f30
predict download time left (#5152)
* predict download time left

* ops
2022-08-24 10:23:46 +07:00
Alex Sharov
69fbfc9bef
Snapshots: Erigon update list in db only after Downloader confirmation, rpcdaemon read list from db (#5150) 2022-08-23 16:28:07 +07:00
Andrew Ashikhmin
41c7be5e85
Mining: restore gasPool for invalid transactions (#5140) 2022-08-23 13:12:12 +07:00
Alex Sharov
316ed48427
erigon22: incremental state root calcc (#5132) 2022-08-22 15:52:23 +07:00
Giulio rebuffo
1303023cb8
Optimized backend pre-checks and fixed FCU deadlock (#5124)
* Optimized backend pre-checks and fixed FCU deadlock

* fixed tests

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-20 16:27:51 +02:00
Enrique Jose Avila Asapche
d794420db8
nil ptr (#5119) 2022-08-19 14:51:14 +07:00
fynn.z
a4fb414345
fix channel hang when close in-flight sealing task (#5118) 2022-08-19 14:50:39 +07:00
Alex Sharov
c1214e4ac5
erigon22: incremental stage trie (#5116) 2022-08-19 13:23:23 +07:00
Alex Sharov
30324fbb81
erigon22: get acc index from aggregator22 (#5114) 2022-08-19 11:30:59 +07:00
Alex Sharov
46ef7e5305
erigon22: incremental hash state stage (#5102) 2022-08-19 09:35:43 +07:00
fynn.z
82fb73a545
Fix in-flight sealing task not abort when next sealing task coming (#5103)
* Fix in-flight sealing task not abort when next sealing task coming, may cause lightclient state verify failed.

* fix integretion err
2022-08-18 18:35:30 +07:00
Alex Sharov
3f20363da4
erigon22: fix storage cleanup on unwind (#5088) 2022-08-17 16:24:11 +07:00
fynn.z
597d1e5a64
fix panic by parlia consensus (#5078) 2022-08-16 19:16:16 +07:00
Enrique Jose Avila Asapche
5c05ebcbeb
No refetching Header (#5067)
* no re-fetching of header

* checking for empty header
2022-08-16 18:10:49 +07:00
Alex Sharov
8083aaa013
erigon22: save correct stage progress (#5074) 2022-08-16 15:58:35 +07:00
Håvard Anda Estensen
13322893cb
Enable gosimple linter (#5071)
* Run gofmt

* Simplify slice making

* Use simple channel to receive instead of select with single case

* Enable gosimple linter
2022-08-16 13:02:13 +07:00
Enrique Jose Avila Asapche
6a61a68ae4
Fix trie hash nil ptr (#5055)
* reading headers from snapshots

* ops

* verifying snapshots if missing header

* no report if missing header

* Revert "no report if missing header"

This reverts commit b644c0ffc82ab47c567fc0c079bb7c5c32e28ca8.

* Revert "verifying snapshots if missing header"

This reverts commit ad1a9c0c4a12dd1773e05fca1a6a5e58e33592b5.

* warning if header not found
2022-08-15 23:32:00 +07:00
Reinhard Schu
c30ee205f8
Update README.md (#5063)
correct stage numbers in heading
2022-08-15 18:47:29 +07:00
Alex Sharov
6df6640868
erigon22: prune - check key existance (#5059) 2022-08-15 14:36:57 +07:00
Alex Sharov
1a1b606146
erigon22: unwind code (#5058) 2022-08-15 10:27:32 +07:00
Reinhard Schu
7009a2cbb2
Update README.md (#5052)
Update the description of the stages to align with current alpha version
2022-08-14 20:32:37 +07:00
Alex Sharov
6495ec6d28
erigon22: working PlainState unwind (#5051) 2022-08-14 18:06:32 +07:00
Alex Sharov
a8cbf6e476
Open erigon_watchTheBurn: could not find block header (#5050) 2022-08-14 17:52:42 +07:00
Giulio rebuffo
6713abb420
fixed exec22 panic (#5045)
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-13 18:54:32 +01:00
Alex Sharov
52fd0d0e8b
Aggregator22.Unwind() (#5039)
* save

* save
2022-08-13 18:51:25 +07:00
Alex Sharov
64bc837ccf
erigon22: integration, to support parallel execution (#5037)
* save

* save
2022-08-13 16:53:10 +07:00
Alex Sharov
de3a602a24
erigon22: bsc fixes 2022-08-13 16:09:52 +07:00
Alex Sharov
4f007ae43e
erigon22: use chainDB instead of db22 for everything (#5034) 2022-08-13 12:08:15 +07:00
Alex Sharov
e27f669a3f
erigon2.2: save stage progress to chainDB, can run "integration stage_exec" and "state erigon22" on same datadir (#5033) 2022-08-13 11:17:24 +07:00
Giulio rebuffo
8ade569cc5
Save PoW blocks for processing received through P2P (#5015)
* save terminal blocks

* ops

* save less PoW blocks

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-12 21:54:20 +02:00
Andrew Ashikhmin
0e55660f11
Don't log "Wrote block ..." unless we're actually writing something (#5027) 2022-08-12 22:40:27 +07:00
Alex Sharov
811f531561
erigon22: support of integration stage_exec (#5029) 2022-08-12 22:39:33 +07:00
Alex Sharov
25d85d88c5
state erigon22: use right db (#5028) 2022-08-12 21:45:09 +07:00
Alex Sharov
4594ce5ef7
erigon22: history.v2 flag, align rpcdaemon22 (#5016)
* save

* save

* save

* save

* save
2022-08-12 16:13:14 +07:00
Giulio rebuffo
348be13508
fixed gossip post TTD (#5012)
* gossip all gossip

* gossip all gossip

* fixed tests

* fixed gossip post TTD

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-11 19:55:59 +02:00
Enrique Jose Avila Asapche
30df8a9765
Solving log index out of bound error (#5009) 2022-08-11 19:08:20 +03:00
Alex Sharov
a7d07ad04d
erigon22 add to exec stage (#5008)
* save

* save

* save
2022-08-11 21:06:41 +07:00
Alex Sharov
e786cbac24
E22 step2 (#5002) 2022-08-11 11:19:59 +07:00
Alex Sharov
f83032533f
Revert "move exec22 to package, call it from stage_exec (#5000)" (#5001)
This reverts commit efa6dfd8ce.
2022-08-11 11:18:23 +07:00
Alex Sharov
efa6dfd8ce
move exec22 to package, call it from stage_exec (#5000) 2022-08-11 11:17:03 +07:00
Giulio rebuffo
b09de9e0d5
[P2P] gossip all gossip (#4995)
* gossip all gossip

* gossip all gossip

* fixed tests

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-10 22:08:56 +02:00
Enrique Jose Avila Asapche
816ecc56db
Get logs fix (#4992)
* getting header number from snapshots

* Revert "getting header number from snapshots"

This reverts commit b2a899ae6b1a18d5eb769522c30caa3aebd060e7.

* using latest executed block number && snapshots

* printing bimaps

* log info

* more logs

* more logs

* logs

* ops

* nil ptr

* log topic

* more print

* ops

* storing bor logs

* got rid of the logs

* clearing buf
2022-08-10 19:03:22 +03:00
Alex Sharov
351cd49c21
go1.19 gofmt (#4988) 2022-08-10 19:04:13 +07:00
Enrique Jose Avila Asapche
832d9fd3ec
notifying header if cannonical (#4930)
* notifying header if cannonical

* checking if header is cannonical at notification

* getting hash from rlp

* adding to headerRlp if cannonical

* declaration
2022-08-10 11:22:11 +07:00