Andrew Ashikhmin
299adf4d3e
New transactions should prompt mining instead of postponing it ( #5309 )
2022-09-07 22:17:14 +07:00
Alex Sharov
fceb272c6b
Erigon22: use history iterator ( #5303 )
2022-09-07 15:58:41 +07:00
Andrew Ashikhmin
270fb4cde9
Fix IH when state contains addresses < 1st key in AccTrie ( #5296 )
...
* Test case that reproduces wrong trie root in Hive
* Do not hardcode roots
* Fix IH when state contains addresses smaller than the first key in AccTrie
2022-09-07 10:34:49 +02:00
Max Revitt
488121f669
fix(headers): signal cleanly shutdown headers and allow exit ( #5286 )
2022-09-06 08:02:24 +01:00
Alex Sharov
f8c20afe8d
erigon22: remove hardcoded workers amount ( #5288 )
2022-09-06 13:54:16 +07:00
Enrique Jose Avila Asapche
036d6f3e1d
Cursor err ( #5283 )
...
* deleting BorTxLookUp separetly
* logs
* another place
* typo
* full separation of borTxnLookup and using next
* not checking if we have tx
2022-09-06 08:45:24 +07:00
Leonard Chinonso
0543ba6120
Adding a new stage for snapshots download and creation ( #5261 )
...
* Adding a new stage for snapshots download and creation
* More changes made
* finished moving things into snapshot stage
* ops
* another merge problem
Co-authored-by: Enrique Jose Avila Asapche <eavilaasapche@gmail.com>
2022-09-06 08:44:22 +07:00
Alex Sharov
25e615a878
erigon22: historyReader22 and more tests ( #5281 )
...
* save
* save
2022-09-05 21:31:00 +07:00
Enrique Jose Avila Asapche
6ce38853a2
getting rid of breaking line ( #5246 )
2022-09-05 10:42:32 +07:00
Alex Sharov
7874921e73
erigon22: correct incarnation ( #5275 )
2022-09-05 10:31:17 +07:00
Enrique Jose Avila Asapche
8fc7c78620
Bor txlookup ( #5260 )
...
* printing
* logging
* spam off
* ops
* clean up
* deleted all bor related stuff in snapshots
* adding bor tx to BorTxLookUp
* added readBorTxLookUp
* getting bor tx from bor lookup
* comments
* deleted bor related stuff
* deleting bor tx
* writing borTxLookUp in stage_txlookup
* using bytes
* little fixes
* updated erigon-lib
* using biEndian
* clean up
* setting bytes for big int
* log
* logging
* more logs
* delete logs
2022-09-02 17:41:58 +03:00
Enrique Jose Avila Asapche
68cc6e4612
taking bad transaction out the slice ( #5265 )
2022-09-02 15:26:38 +02:00
ledgerwatch
693017c554
Cleanup Tevm experimental code ( #5259 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-01 19:49:29 +01:00
ledgerwatch
73e2d1146e
Cleanup interfaces ( #5254 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-01 16:44:37 +01:00
Alex Sharov
35687c0e2c
erigon22: TestRecreateAndRewind ( #5241 )
2022-08-31 13:34:16 +07:00
Nathan (Blaise) Bruer
002aba4686
Add STOP_AFTER_STAGE environ ( #5207 )
...
Adds ability to stop after a stage instead of just before a stage.
This will allow users to use something like:
`STOP_AFTER_STAGE=Finish erigon`
And erigon will stop after a full cycle of syncing.
2022-08-31 07:46:27 +07:00
Enrique Jose Avila Asapche
12331e018a
Fix bor txlookup ( #5170 )
2022-08-30 17:23:16 +03:00
Andrew Ashikhmin
07f6bea8e3
Remove unused function parameter ( #5232 )
2022-08-30 12:07:32 +02:00
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