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
Alex Sharov
01f2965d8e
erigon22: MakeCanonical must update txNums ( #5211 )
2022-08-29 11:44:31 +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
Alex Sharov
fb2294d124
Erigon22: basic txNum forward/unwind ( #5176 )
2022-08-25 12:24:01 +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
b755ac1647
bigger genesis db ( #5164 )
...
* save
* save
* save
2022-08-24 17:38:59 +07:00
Alex Sharov
16d02c8cc9
erigon22: unwind trie support ( #5159 )
2022-08-24 11:37:58 +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
Enrique Jose Avila Asapche
c0de0488c8
added removal of bor logs when deleting receipts ( #5105 )
2022-08-19 08:57:24 +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
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
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
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
Alex Sharov
40535837c9
Simplify write body ( #5031 )
...
* save
* save
2022-08-13 00:14:42 +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
Enrique Jose Avila Asapche
30df8a9765
Solving log index out of bound error ( #5009 )
2022-08-11 19:08:20 +03: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
fenghaojiang
bc7921a8ab
add field timestamp
to eth_getLogs
response ( #4950 )
...
* add_abigen_error_handle
* add abigen error type test code
* add field timestamp in `eth_getLogs` api
add field timestamp in `eth_getLogs` api
2022-08-08 09:17:32 +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
Giulio rebuffo
311d18ae92
better error ( #4907 )
...
Co-authored-by: giuliorebuffo <giuliorebuffo@system76-pc.localdomain>
2022-08-03 07:49:06 +07: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
Alex Sharov
539d14669a
fix empty sn list ( #4881 )
2022-08-01 11:49:37 +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
Alex Sharov
aee4b53788
save list of snapshots in db ( #4777 )
...
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
* save
2022-07-28 16:57:38 +07: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
Andrew Ashikhmin
d2389a1f26
Sepolia MergeNetsplit block ( #4804 )
2022-07-23 18:02:31 +02:00
Alex Sharov
68e35417fc
RetireBlocks: encapsulate delete logic
2022-07-23 11:09:16 +07:00
Alex Sharov
66758c7960
RetireBlocks: less arguments ( #4785 )
...
* save
* save
2022-07-22 13:44:42 +07:00
Andrew Ashikhmin
6060b87840
Fix binary vs raw confusion for PoS transaction ( #4781 )
...
* Replace PayloadMessage with Block
* RawTransactions -> BinaryTransactions for clarity
* add a log warning
2022-07-21 19:40:00 +02: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
primal_concrete_sledge
cd5ef32f37
Add config for Gnosis Chain ( #4671 )
...
* Draft: gnosis-chain
* Fix Gnosis allocation
Co-authored-by: yperbasis <andrey.ashikhmin@gmail.com>
2022-07-12 17:21:52 +02:00
Levi Aul
8de866028a
Additional bor RPC fixes ( #4675 )
...
* Add borTx to GetBlockByHash; ensure borTxs have hashes; don't try to derive sender for borTxs
* Surface borReceipt logs in eth_getLogs
* Check for existence of borReceipt before synthesizing a borTx
2022-07-09 09:15:22 +06:00