ledgerwatch
7258a2b872
Remove BSC support in Erigon (step 1) ( #7246 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-04-03 14:46:21 +00:00
racytech
d67087f7fd
eip-4844: ApplyTransaction now expects excessDataGas ( #7233 )
...
Tiny addition to ApplyTransaction. Now it expects excessDataGas param so
the BlockContext can be created with it
2023-04-03 14:30:28 +00:00
Alex Sharov
65fcec8d85
e3: replace sync.Cond to fix deadlock ( #7243 )
2023-04-03 11:33:43 +00:00
Alex Sharov
06da707d58
e3: add metric for repeat count ( #7239 )
2023-04-03 04:34:45 +00:00
Alex Sharov
ef017cbdf0
Revert "to fix txpool startup race ( #7165 )" ( #7227 )
...
This reverts commit 36cce22d81
.
2023-03-31 02:54:20 +00:00
racytech
04b57904b0
eip-4844: excessDataGas param added to block execution functions ( #7217 )
...
Small addition to block execution functions. Now they expect
excessDataGas param so the BlockContext can be created with it.
2023-03-30 20:42:43 +00:00
alex.sharov
331f3ed871
e3: deadlock fix
2023-03-30 09:06:40 +07:00
Alex Sharov
592ec1ee0d
e4: step 1 to run tests ( #7209 )
2023-03-29 14:01:27 +00:00
Alex Sharov
f541f616e6
e3: one more reconst deadlock fix ( #7207 )
2023-03-29 07:32:31 +00:00
Alex Sharov
417a437584
Break dependency of ethcfg
package to core
/consensus
/etc... move genesis struct to 'types' package ( #7206 )
2023-03-29 07:27:06 +00:00
racytech
975e38a800
eip-4844: NewEVMBlockContext now expects excessDataGas ( #7203 )
...
Small change in core.NewEVMBlockContext and now it expects
excessDataGas. This will be used in state transition to compute data fee
for eip-4844 data blobs. The logic that computes it will be added in the
next PRs.
2023-03-29 06:39:36 +00:00
alex.sharov
3ce1b9b5ce
e4: add tests flag
2023-03-29 11:55:45 +07:00
alex.sharov
afe0e385d2
e4: add flag in tests
2023-03-29 11:51:05 +07:00
alex.sharov
340cf1b3e3
e3: one more reconst deadlock fix
2023-03-28 10:57:12 +07:00
Alex Sharov
be860e38d3
e3: recon deadlock fix ( #7186 )
2023-03-27 03:15:54 +00:00
Alex Sharov
cff73b8aec
add constant kv.Unlim=-1 ( #7183 )
2023-03-26 03:18:04 +00:00
Alex Sharov
201572c6f5
enable more linters #954 ( #7179 )
2023-03-25 05:13:27 +00:00
alex.sharov
5445058190
DomainRange
2023-03-25 11:46:05 +07:00
Alex Sharov
f4fb329c55
e3: remove some iterator ( #7174 )
2023-03-24 08:36:52 +00:00
Alex Sharov
36cce22d81
to fix txpool startup race ( #7165 )
...
```
==================
WARNING: DATA RACE
Write at 0x00c0005dc570 by goroutine 273633:
github.com/ledgerwatch/erigon/turbo/shards.(*Accumulator).Reset()
github.com/ledgerwatch/erigon/turbo/shards/state_change_accumulator.go:32 +0x5ec
github.com/ledgerwatch/erigon/turbo/stages.StageLoopStep()
github.com/ledgerwatch/erigon/turbo/stages/stageloop.go:163 +0x3bd
github.com/ledgerwatch/erigon/turbo/stages.StageLoop()
github.com/ledgerwatch/erigon/turbo/stages/stageloop.go:94 +0x197
github.com/ledgerwatch/erigon/eth.(*Ethereum).Start.func1()
github.com/ledgerwatch/erigon/eth/backend.go:1058 +0x10b
Previous write at 0x00c0005dc570 by goroutine 273468:
github.com/ledgerwatch/erigon/turbo/shards.(*Accumulator).Reset()
github.com/ledgerwatch/erigon/turbo/shards/state_change_accumulator.go:32 +0x2ef
github.com/ledgerwatch/erigon/turbo/shards.(*Accumulator).SendAndReset()
github.com/ledgerwatch/erigon/turbo/shards/state_change_accumulator.go:41 +0x228
github.com/ledgerwatch/erigon/eth.New.func8()
github.com/ledgerwatch/erigon/eth/backend.go:620 +0x80e
```
2023-03-23 05:42:05 +00:00
Alex Sharov
9001f668a7
go 1.19 atomics ( #7164 )
2023-03-23 05:11:28 +00:00
Jason Yellick
a09541c82c
Add eth_getProof support for historical blocks ( #7115 )
...
This PR starts with a few small commits of code cleanup. Reviewed
separately they should hopefully obviously be functionally no-ops. I'm
happy to strip these out and submit them separately if desired.
The final commit is to add support for older blocks as a parameter to
eth_getProof. In order to compute proofs, the function leverages the
staged sync unwinding code to bring the hashed state table back to its
historic state, as well as to build a list of trie nodes which need to
be invalidated/re-computed in the trie computation. Because these
operations could be expensive for very old blocks, it limits the
distance proofs are allowed from the head. It also adds some additional
checks for correctness, as well as tests which verify the
implementation.
This was discussed a bit on Discord in the db-format topic.
---------
Co-authored-by: Jason Yellick <jason@enya.ai>
2023-03-23 03:22:33 +00:00
alex.sharov
ebfc2344ca
e3: close context
2023-03-22 15:11:08 +07:00
alex.sharov
f69f7095bb
e3: exec to use half of CPU's by default
2023-03-22 10:17:03 +07:00
Andrew Ashikhmin
4087510c2e
Total difficulty can be huge on Gnosis ( #7149 )
...
This fixes the following issue observed on gnosis_withdrawals_devnet_2:
```
[DBUG] [03-21|09:24:15.060] Handling incoming message stream=RecvMessage err="newBlock66: too large block TD: bitlen 144"
```
2023-03-21 09:38:06 +00:00
Giulio rebuffo
fc10aef874
removed database functionality from lightclient ( #7135 )
2023-03-18 20:27:37 +00:00
Alex Sharov
60fb9c12e6
e3: don't loose nil-value in reconstitution ( #7117 )
2023-03-16 03:27:09 +00:00
Alex Sharov
157a380be7
e3: history no auto-increment ( #7097 )
2023-03-15 08:03:57 +00:00
Alex Sharov
f432cde16b
e3: reconst: run workers in errgroup ( #7071 )
2023-03-13 04:04:49 +00:00
Alex Sharov
a44e0afbd6
Downloader main loop wait on close ( #7082 )
2023-03-13 02:12:30 +00:00
Andrew Ashikhmin
3270720cb7
Remove ETC-specific DAOForkSupport=false functionality ( #7075 )
2023-03-10 12:10:11 +00:00
Andrew Ashikhmin
2212e21192
Remove archaic eip150Hash functionality ( #7074 )
2023-03-10 10:55:59 +00:00
alex.sharov
8189fdd587
cleanup
2023-03-10 12:20:50 +07:00
Alex Sharov
5b3ba433eb
e3: aggressive pruning ( #7070 )
2023-03-10 04:31:44 +00:00
Alex Sharov
d4e25daf22
etl: distinct empty values from nil ( #7039 )
...
Reverts ledgerwatch/erigon#7038
2023-03-07 04:19:00 +00:00
Alex Sharov
7206e482da
Revert "etl: distinct empty values from nil" ( #7038 )
...
Reverts ledgerwatch/erigon#6934
2023-03-07 03:22:23 +00:00
Alex Sharov
78aa8652d2
e3: native map instead of btree where can (because e2 experience shows - it's faster) ( #7010 )
2023-03-07 02:34:30 +00:00
Alex Sharov
c5acfd0503
etl: distinct empty values from nil ( #6934 )
2023-03-07 02:33:21 +00:00
hexoscott
77065ee0f3
remove PeerUseless calls ( #7032 )
2023-03-06 18:59:14 +00:00
Alex Sharov
e3caa3cbba
e3: don't loose last txnum ( #7028 )
2023-03-06 09:19:30 +00:00
Alex Sharov
645797d8bf
e3: no early by drain ( #7027 )
2023-03-06 08:43:32 +00:00
ledgerwatch
ed95056a6d
Break out of staged sync step when bad block is found ( #7025 )
...
Fixes https://github.com/ledgerwatch/erigon/issues/6982
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-03-06 07:58:44 +00:00
Anshal Shukla
1bf302bcd8
Headers POW updated ( #6983 )
...
Currently the only way the `noProgressCounter` resets is when it
discovers that the chain has forked from the cannonical chain which
leads to lack of anchor state logs.
2023-03-03 16:09:46 +00:00
Andrew Ashikhmin
1dab298db7
Add Prague fork support ( #7005 )
...
Prague is the next EL fork after
[Cancun](https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/cancun.md ).
This change picks up https://github.com/ledgerwatch/erigon-lib/pull/913 ,
adds support of the fork, and moves Verkle trees to it.
2023-03-02 17:51:36 +00:00
ledgerwatch
217ddc753d
Skeleton for unwind test, tidy up bodies cache ( #7001 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-03-02 14:09:48 +00:00
Andrew Ashikhmin
3a25fb45fb
Allow snapshot block execution before waiting for CL ( #6947 )
...
This gives Erigon a chance to execute snapshot blocks before CL is
ready. Not sure why it was commented out in PR #5684 .
2023-03-02 10:12:23 +00:00
Alex Sharov
a4f69abb97
e3: less locks, less casts ( #6991 )
2023-03-01 07:59:56 +00:00
Alex Sharov
570ff33e88
e3: result size atomic change after processResultQueue
( #6975 )
2023-02-28 09:35:13 +00:00
Alex Sharov
b3c49af086
e3: aggressive drain resultCh to heap before start conflict-resolution ( #6979 )
2023-02-27 13:08:33 +00:00
Alex Sharov
c4cce3d2d4
e3: update speed metric after processResultQueue
( #6974 )
2023-02-27 15:38:21 +07:00