Giulio rebuffo
588c2d4e36
Implemented side forks support (up to depth of 128). ( #4514 )
...
* side forks
* fixed stuff
* lint
* update go.mod and go.sum
* cmd
* added comment
* better validatePayload
* fixed empty payload sometimes
* support future side forks
* added crit error handle
* fix compile err
* lint
2022-06-27 15:59:54 +02:00
Alex Sharov
afd07e5dee
--no-downloader flag support ( #4545 )
2022-06-26 17:13:32 +06:00
Andrew Ashikhmin
9b8888d797
Delete bad blocks on unwind ( #4529 )
...
* Delete bad headers
* Delete bad bodies
2022-06-24 15:52:04 +02:00
Andrew Ashikhmin
70bd93c5c3
Only apply overrides to stored config of a private chain ( #4521 )
2022-06-23 10:41:15 +02:00
Andrew Ashikhmin
18e5bf3bbf
Rework PR 4505 ( #4511 )
...
* Revert "Update chainConfig in the database (#4505 )"
This reverts commit f38ab485e0
.
* Only preserve config of unknown chains
2022-06-21 10:17:54 +02:00
ledgerwatch
f38ab485e0
Update chainConfig in the database ( #4505 )
...
* Update genesis.go
* Remove the test
* Remove unnecessary code
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-20 16:51:19 +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
820014734f
[BSC] fix for the Euler fork ( #4500 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-20 08:53:01 +01:00
ledgerwatch
f88fa89bda
Fix in skip_analysis ( #4493 )
...
* Update skip_analysis.go
* Update skip_analysis.go
2022-06-19 06:51:05 +01:00
Zachinquarantine
c2518ad6a3
Removes StorageBlock type ( #4483 )
2022-06-18 08:35:43 +01:00
ledgerwatch
027faa1de8
Update state_processor.go ( #4475 )
2022-06-17 14:14:32 +01:00
ledgerwatch
93151f0ae6
[erigon2.2] Reduce allocations when replaying historical txs ( #4460 )
...
* [erigon2.2] Reduce allocations when replaying historical txs
* import new API, fix code
* Add hack decompress function
* update erigon-lib
* Fix hack
* Update to latest erigon-lib
* Fix reindexing
* Enable skip analysis for tracing calls too
* Enable for eth_getLogs
* Fix skip analysis
* Optimise
* Stop grpc server in the tests
* Print
* No panic on server stop
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-17 13:40:49 +01:00
Enrique Jose Avila Asapche
963fb7a7f5
BSC main net Euler fork ( #4461 )
...
* added euler into chainConfig
* parlia abi update
* updated upgrade.go
* ops/
* added euler gas usage
* added eulerBlock for bsc
* changed block positioning
* comment
2022-06-16 15:32:32 +01:00
Andrew Ashikhmin
bca563fd0f
Fix genesis storage collision state tests ( #4462 )
...
* Enable a couple of tests that work now
* Fix genesis storage collision state tests
* IncarnationMap in t8ntool MakePreState
2022-06-15 21:17:16 +01:00
sudeep
7f81e0ddde
in transaction execution, subtract from account balance only after enough gaspool is ensured ( #4450 )
...
- noticed the difference when executing testdata#10 in go-ethereum and erigon
2022-06-14 20:33:30 +01:00
ledgerwatch
21e3ebdab5
Update skip analysis, add more BSC snapshot hashes ( #4448 )
...
* Update skip analysis, add more BSC snapshot hashes
* Syntax fix
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-14 16:06:42 +01:00
Andrew Ashikhmin
92b1f06932
Gray Glacier bomb delay ( #4443 )
2022-06-14 10:48:40 +01:00
Andrew Ashikhmin
eb497372ae
Interruptible PoS block building ( #4438 )
...
* Fix a typo
* BlockBuilder dummy
* BlockProposerParametersPOS -> BlockBuilderParameters
* Pass tx to MiningStep
* BlockBuilderFunc
* Interrupt in MiningExec Stage
* Draft implementation of BlockBuilder
* Fail back to empty header
* Add a comment
* cosmetic change
* Cosmetic change again
* It's not safe to pass transactions between goroutines
2022-06-13 15:43:09 +02: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
3f1e9948fa
Update skip_analysis.go ( #4435 )
2022-06-11 08:53:02 +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
Krishna Upadhyaya
1e3c90ba80
Bor devnet option ( #4428 )
...
* bor mining testing
* Implemented bor-devent network
* Minor fixes
* use signer as validator
* remove unused spaces
* fix typo
2022-06-10 15:32:04 +07:00
ledgerwatch
f830401258
Update skip_analysis.go ( #4420 )
2022-06-09 13:38:00 +01:00
Andrew Ashikhmin
367a417d6b
core/types: remove unused field 'td' in Block ( #25010 ) ( #4416 )
...
Co-authored-by: Rajaram Gaunker <zimbabao@gmail.com>
2022-06-09 13:27:14 +01:00
iFA
bd96c698a4
Fix operation order during tracing suicide op code ( #4409 )
2022-06-08 21:56:20 +01:00
Andrew Ashikhmin
644d25d25d
MergeForkBlock -> MergeNetsplitBlock ( #4407 )
2022-06-08 12:41:50 +02:00
Alex Sharov
d7d698f565
db migration to reset blocks ( #4389 )
...
* save
* save
* save
* save
* save
* save
* Update reset_blocks.go
* Not to remove too many tx lookup files
* Fix truncate blocks and add reset txlookup
* Fix bodies
* Fix nil pointer
Co-authored-by: ledgerwatch <akhounov@gmail.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-07 19:59:14 +01:00
Enrique Jose Avila Asapche
a1f4472f10
added back PR 3806 ( #4382 )
2022-06-07 10:51:28 +01:00
Alex Sharov
a53642b4bf
datadir.Dirs configuration object to group dir config ( #4387 )
2022-06-07 10:24:50 +07:00
ledgerwatch
3d3b190e42
Copy deletion key to prevent deleting more blocks ( #4384 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro.local>
2022-06-06 23:04:24 +01:00
ledgerwatch
3ad9359694
More skip analysis ( #4374 )
...
* More skip analysis
* Update
* Update to latest erigon-lib
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-06-05 22:42:33 +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
Willian Mitsuda
e792adb131
Fix error msg params ( #4357 )
2022-06-04 09:31:18 +07:00
Alex Sharov
457e043401
skip empty senders ( #4359 )
2022-06-04 09:21:33 +07: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
Alex Sharov
f838268e44
[wip] Snapshots: more runtime invariants check ( #4350 )
2022-06-03 18:50:01 +07:00
ledgerwatch
d884a6b780
Update skip_analysis.go ( #4317 )
2022-05-31 12:48:24 +01:00
Alex Sharov
e0323e7434
fix empty senders array check #4308
2022-05-30 20:51:14 +07:00
Andrew Ashikhmin
21ca6b6790
Update consensus tests to 10.4 ( #4287 )
...
* Update consensus tests to 10.4
* Introduce CheckEip1559TxGasFeeCap
2022-05-30 14:56:07 +02:00
Alex Sharov
955c669d21
Group few sync configs ( #4303 )
...
* save
* save
2022-05-30 17:08:49 +07:00
Krishna Upadhyaya
0fbf345ee8
Fix txContext for Bor ( #4302 )
2022-05-30 07:51:53 +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
ledgerwatch
9d550e37a4
Update skip_analysis.go ( #4291 )
2022-05-28 13:55:29 +01:00
Andrew Ashikhmin
13a1b3c19f
Ensure stored config is overriden when overrideTerminalTotalDifficulty ( #4286 )
2022-05-27 10:25:29 +02:00
ledgerwatch
8e13ef40d0
Advance skip analysis for BSC ( #4285 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2022-05-27 08:13:29 +01:00
Alex Sharov
92318a3c38
Add trace to receipt count mismatch log ( #4284 )
2022-05-27 11:03:04 +07:00
Andrew Ashikhmin
16950ebc2c
Fix OverrideTerminalTotalDifficulty when datadir is not empty ( #4280 )
2022-05-26 21:21:51 +02: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
Alex Sharov
6eb10ba9a8
Use ETL to fill kv.HeaderNumber from snapshots ( #4272 )
...
* merge devel
* save
2022-05-26 21:41:05 +07:00