Andrew Ashikhmin
ca60b197a1
Fix Gnosis Chain transition to safeContract validator ( #5645 )
2022-10-06 18:06:18 +02:00
Alex Sharov
39383d936d
erigon3: move tx.AsMessage() out of critical path ( #5611 )
...
* save
* save
2022-10-04 10:56:41 +01:00
ledgerwatch
11893429f5
cleanup bloombits and filters ( #5551 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-09-27 17:19:59 +01:00
Alex Sharov
cb60382e6d
erigon3: rename "history.v2" to "history.v3" to avoid naming miss-match with "erigon3" ( #5519 )
2022-09-26 10:54:42 +07:00
Alex Sharov
52a06d792c
historyReader22 fix lost incarnation ( #5469 )
...
* save
* save
2022-09-22 15:38:00 +07:00
Alex Sharov
57a4d8b777
historyReader22 fix empty code hash short-path ( #5467 )
...
* save
* save
2022-09-22 15:19:38 +07:00
Alex Sharov
902e3e7d02
save ( #5455 )
2022-09-21 14:17:56 +01:00
Alex Sharov
c1bb4bc734
exec22: stagedsync test v1 ( #5425 )
...
* save
* save
2022-09-19 12:17:36 +07:00
Alex Sharov
9fb8a190bc
erigon22: folder snapshots/history ( #5351 )
2022-09-18 17:41:01 +07:00
Alex Sharov
25e615a878
erigon22: historyReader22 and more tests ( #5281 )
...
* save
* save
2022-09-05 21:31:00 +07:00
Alex Sharov
6bfd2c3472
erigon22: rpc getLogs and traceFilter ( #5277 )
2022-09-05 11:33:55 +07:00
Alex Sharov
7874921e73
erigon22: correct incarnation ( #5275 )
2022-09-05 10:31:17 +07:00
Alex Sharov
35687c0e2c
erigon22: TestRecreateAndRewind ( #5241 )
2022-08-31 13:34:16 +07:00
Alex Sharov
5e441bfa2a
erigon22: recent history read ( #5209 )
2022-08-28 11:26:01 +07:00
Alex Sharov
16fc9c7277
erigon22: HistoryReader22 #5203
2022-08-27 15:36:42 +07: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
Håvard Anda Estensen
beeccc0f5f
Remove capitalization and trailing newlines from err strings ( #5186 )
2022-08-26 13:20:19 +07: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
Håvard Anda Estensen
3b1d4d9c1b
Enable gocritic linter ( #5173 )
...
* Enable gocritic linter
* Remove dead linters
* Make gosec shut up
2022-08-25 09:08:56 +07:00
Alex Sharov
16d02c8cc9
erigon22: unwind trie support ( #5159 )
2022-08-24 11:37:58 +07:00
Alex Sharov
8b34004372
erigon22: unwind code ( #5090 )
...
* save
* save
2022-08-17 16:42:07 +07:00
Alex Sharov
3f20363da4
erigon22: fix storage cleanup on unwind ( #5088 )
2022-08-17 16:24:11 +07:00
Alex Sharov
6df6640868
erigon22: prune - check key existance ( #5059 )
2022-08-15 14:36:57 +07:00
ledgerwatch
0f20e1cb93
erigon2.2 optimise reconstitution of state ( #4958 )
...
* No parallel buildFiles and mergeFiles to conserve memory
* go mod
* Fix and optimise
* Fix
* Another fix
* Fix
* Extra return value
* Optimise recon
* Another optimisation of recon
* Different order of usage
* Fix
* Fix
* Optimise allocations
* Lookup before going to history
* Fix
* Fix
* Optimise a bit more
* Only use one helper table
* Set bro tx
* Set broTx to writer
* Use same db for recon and x
* Write into chainDb
* Update to latest erigon-lib
* Remove test
* Set execution progress
* Fix compilation
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@alexs-mbp.lan>
2022-08-14 19:49:32 +01:00
Alex Sharov
6495ec6d28
erigon22: working PlainState unwind ( #5051 )
2022-08-14 18:06:32 +07:00
Alex Sharov
52fd0d0e8b
Aggregator22.Unwind() ( #5039 )
...
* save
* save
2022-08-13 18:51:25 +07:00
Alex Sharov
351cd49c21
go1.19 gofmt ( #4988 )
2022-08-10 19:04:13 +07:00
Leonard Chinonso
592fe32217
Refactoring To Increase Code Quality ( #4842 )
...
* General cleanup and fixes
* Cleaning part 2
* cleanup part 3
* Refactored staterunner to have a handler function
* Fixed linting
* Cleanup part 4
* Changed the initialization of the require package and updated .golangci.yml
* Fixed lint errors from golangci-lint
* deleted state_recon_1.go
* fixed build error
* Added ReadHeaderTimeouts for httpServer
* made changes to golangci
* Reset golangci.yml
2022-08-04 20:23:00 +07:00
ledgerwatch
e56491c601
Erigon22 prototype without parallel execution, fix for BSC upgrade contract ( #4884 )
...
* No parallelisation in erigon22 prototype
* Remove paralell
* tx/s
* commit
* Fix overlap
* workers argument
* Print
* Print
* Stable sort
* Print
* Init
* Remove print
* Remove print
* Remove print
* No sorting
* Cleanup
* Fix hangs
* Fix reconstitution for contract upgrades
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-08-04 13:00:46 +01:00
Leonard Chinonso
6061690f61
Fixed lint errors for unused linter ( #4902 )
2022-08-02 22:01:53 +07:00
Leonard Chinonso
808df67683
Fixed lint errors for staticcheck ( #4901 )
2022-08-02 21:07:39 +07:00
ledgerwatch
2b517b7630
Erigon22 prototype to support BSC ( #4867 )
...
* Reduce workers and queue size
* Add traces and event logs
* Add chain flag
* Print
* Open consensus db as read only
* Use only one engine instance
* chainDb
* Display palia error
* Not to panic
* Not to exit
* Add syscall
* Print
* Pointer to TxTask
* Not register senders
* Print
* Relax check
* Skip system transactions
* increase workerCount again
* Remove print
* Change recon
* Fix types
* Skip system txs
* Print
* No rules for genesis commit
* Print genesis
* Print|
* Print
* Print
* Update
* Fix
* Remove print
* No print
* Support contract upgrades
* Use the same dif
* Print create2
* Fix
* Fix
* Print
* Hack iterate
* Print empty vals
* Fix hack
* Code hashes
* Code hashes
* Print
* No panic
* No panic
* Fix?
* another incarnation fix
* Remove print
* Remove print
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-07-31 21:54:23 +01:00
ledgerwatch
09c104803a
Split erigon2.2 and erigon2.3 prototypes ( #4811 )
...
* Split erigon2.2 and erigon2.3 prototypes
* Renaming
* Interruptible and resumable erigon22
* Always regenerate trie
* Introduce aggregator
* Fixes
* cleanup
* Fix lint
* Update to erigon-lib main
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-07-28 12:16:37 +01:00
Andrew Ashikhmin
c1f848746d
Update consensus tests to v11 ( #4724 )
...
* Consensus tests update 11
* Add GrayGlacier fork
* Wire currentRandom from tests into PREVRANDAO
* Serenity engine
* Support insertion of PoS blocks in MockSentry
* Introduce marshallTypedTransactionsAsRlpStrings arg into (*Block) RawBody()
* Revert "Introduce marshallTypedTransactionsAsRlpStrings arg into (*Block) RawBody()"
This reverts commit 903fca572be03c7de33318ce177a03a4be34927b.
* Post-merge fix
* Don't wait for Beacon Chain in tests
* Skip powToPosBlockRejection transition test
* ForkChoice in insertPoSBlocks
* Add withPosDownloader arg to MockWithEverything in order to fix TestPoSDownloader
2022-07-26 09:35:38 +02:00
Alex Sharov
b6ea28ea80
kv.Del() remove second parameter ( #4832 )
...
* save
* save
* save
* save
* save
* save
* save
2022-07-26 12:47:05 +07:00
ledgerwatch
81d106bc9d
Experiment in parallel execution ( #4652 )
...
* Restructure tx execution
* fixes
* Fixes and traces
* Tracing
* More tracing
* Drain the result channel
* Intermediate
* more efficient parallel exec
* Sorted buffer
* Fix results size
* fix for the recon
* Fix compilation
* Sort keys in Write and Read sets, fix compilation in rpcdaemon22
* Update to latest erigon-lib
* Update to erigon-lib
* Remove go.mod replace
* Update erigon-lib
* Update to erigon-lib main
* Fix lint
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-07-23 18:39:08 +01:00
Alex Sharov
66758c7960
RetireBlocks: less arguments ( #4785 )
...
* save
* save
2022-07-22 13:44:42 +07:00
Zachinquarantine
8c27879a6b
Remove NewKeyedTransactor function ( #4472 )
...
* accounts/abi: remove NewKeyedTransactor function
* Remove "imported and not used" package
* Update state.go
* Update statedb_insert_chain_transaction_test.go
* Update statedb_chain_test.go
* Update database_test.go
* lint fixes
Co-authored-by: awskii <artem.tsskiy@gmail.com>
2022-07-13 17:40:39 +07:00
ledgerwatch
73b0659bb7
[erigon2.2] Optimisation of state reconstitution ( #4621 )
...
* Init
* Optimise ReconState flushes
* Updates
* Update
* Updates
* Updates
* More on parallel execution
* More on parallel exec
* Fix lint
* Improvements to parallel exec
* comment
* Fix history access, include incarnation
* Close work channel
* TxTask
* more fixes to parallel exec
* Update to latest erigon-lib
* Fix compilation
* Cleanup and timing
* Fixes to recon1
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-07-06 07:49:00 +01:00
ledgerwatch
8599dceec7
[erigon2.2] State reconstitution prototype ( #4508 )
...
* reconstitution
* Add history access without state function
* More on state reconstitution
* More on state recon
* More on state recon
* More
* More
* support dao fork
* More on state reconstitution
* Update to erigon-lib
* More
* Added genesis block and filling with history
* update
* Genesis works
* Start on parallel
* Preparation for parallel reconstitution, stats for EfSearch
* continue with parallel work
* Fix history reader
* Remove time measurements
* Fixes
* Fixes and UX improvements
* Fixes
* More tracing
* More fixes
* More fixes
* Fix code size
* Update to latest erigon-lib
* Fix for dao fork
* Remove hacks
* Update to erigon-lib, fix lint
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-07-02 20:48:42 +01: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
fd8adddce8
trace_filter implementation based on erigon 2 update 2 data ( #4431 )
...
* trace_filter implementation based on erigon 2 update 2 data
* Fix test compile, extract txNums
* Update to erigon-lib, add generic heap
* Fix getHeaderHash for RPC methods
* Missing files
* Skip tests
* Add reward traces
* Filter trace lint
* Reinstate filtering
* Print
* Print
* Fix
* Print
* Print txNums
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Fix
* Remove prints
* Fix nil dereference
* Inclusive toBlock bound
* Print
* Print
* Hack
* remove some deps
* Fix lint
* Update erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-12 12:44:01 +01:00
ledgerwatch
8e3ac8a21c
Erigon2 upgrade 2 prototype ( #4341 )
...
* Erigon2 upgrade 2 prototype
* Latest erigon-lib
* Fixes
* Fix print
* Fix maxSpan
* Reduce maxSpan
* Remove duplicate joins
* TxNum
* Fix resuming
* first draft of history22
* Introduce historical reads
* Update to erigon-lib
* Update erigon-lib
* Update erigon-lib
* Fixes and tracing for checkChangeSets
* More trace
* Print account details
* fix getHeader
* Update to erigon-lib main
* Add tracer indices and event log indices
* Fix calltracer
* Fix calltracer
* Duplicate rpcdaemon into rpcdaemon22
* Fix tests
* Fix tests
* Fix tests
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-10 16:18:43 +01:00
ledgerwatch
ee4ffd190d
Update skip analysis ( #4364 )
...
* Skip analysis advance, fix for change sets
* Optimisations for integration
* Print
* Print
* Fix
* Fix
* Fix
* Remove prints
* No panic
* More checks
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-04 16:54:22 +01:00
ledgerwatch
db8873714d
Fix ( #4362 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-04 11:13:06 +01:00
ledgerwatch
96603f14da
Print changes ( #4351 )
...
* Print changes
* Comment out prints, add hack to find prefix
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-03 22:50:20 +01:00
ledgerwatch
369052ed79
Fix for bor-mainnet mismatched root hash ( #4294 )
...
* Print
* Print
* Fix
* Print
* Print
* Print
* Print
* Print
* Print
* Print
* Fix
* Fix
* Cleanup
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-29 00:22:47 +01:00
Andrew Ashikhmin
0c76286509
Add rules to AsMessage to vet transaction types ( #4276 )
...
* Add rules to AsMessage to vet transaction types
* Fix TestState
2022-05-26 18:20:34 +02:00
Andrew Ashikhmin
86de64a2a3
TangerineWhistle instead of EIP150 & SpuriousDragon instead of EIP155/158 ( #4273 )
...
* EIP150Block -> TangerineWhistleBlock
* Merge EIP158Block into EIP155Block
* EIP155Block -> SpuriousDragonBlock
2022-05-26 12:08:59 +02:00