Commit Graph

2513 Commits

Author SHA1 Message Date
fynn.z
9c713d8168
Fixed mining system contract txn lost (#5212)
* fix mining exec error

* fix invalid memory

* remove logs

Co-authored-by: Jeff Rossiter <jeffrey.rossiter@me.com>
2022-08-30 09:47:47 +07:00
Andrew Ashikhmin
7e0f6e0864
Small logging improvements (#5217)
* More logging to debug invalid blocks

* typo

* More logging consistency

* Print mismatched receipt hash

* Fix logging

* Improve log consistency

* Don't ignore errors in txn.Sender

* Log txn sender as well

* Log txn receipt as well

* Revert log level to debug
2022-08-29 15:26:36 +02:00
Andrew Ashikhmin
94d14dd248
BaseFee is nil prior to London hard fork (#5213) 2022-08-29 15:12:31 +02:00
Alex Sharov
01f2965d8e
erigon22: MakeCanonical must update txNums (#5211) 2022-08-29 11:44:31 +07:00
Giulio rebuffo
2c43ffe910
Fixed Invalid block production with invalid txpool txs. (#5205)
* updated mining

* print writer

* stageloop

* removed logs

* mining exec

* preemptive stuff

* create and execution

* demote to Debug

Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-27 12:18:33 +02:00
Alex Sharov
a0af80014c
erigon22: rename historyReader22 to historyReader23 (#5202) 2022-08-27 15:21:02 +07:00
Alex Sharov
d33096eaa7
erigon22: tests support (#5196) 2022-08-26 16:54:54 +07:00
Alex Sharov
def681e3db
ctrl+c execution #5194 2022-08-26 16:32:16 +07:00
Andrew Ashikhmin
62bb2c47f7
Disable PoW sync for networks that have already passed through the Merge (#5172)
* Disable PoW sync for networks that have already passed through the Merge

* Fix FirstPoSHeight
2022-08-26 09:16:39 +02:00
Håvard Anda Estensen
7c15ed59e4
Enable prealloc linter (#5177)
* Enable prealloc linter

* Set inital slice len to 0
2022-08-26 10:04:36 +07:00
Alex Sharov
6371cd7b5b
erigon22: disable logIndex, historyIndex, callTracesIndex stages in --history.v2=true mode 2022-08-25 17:17:20 +07:00
Alex Sharov
69f3e1e99a
erigon22: step toward /tests 2022-08-25 15:32:05 +07:00
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