Commit Graph

2896 Commits

Author SHA1 Message Date
hexoscott
697ff09fc2 remove PeerUseless calls (#7032) 2023-03-07 11:17:18 +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
Alex Sharov
955d2761bc
e3: update atomics outside of processResultQueue (#6973) 2023-02-27 08:19:05 +00:00
Alex Sharov
daf1522914
e3: handle zero metric (#6972) 2023-02-27 14:30:40 +07:00
Alex Sharov
4a89361845
e3: remove inblock variable (#6968) 2023-02-27 06:57:35 +00:00
nanevardanyan
ab6239b30f
WIP: cmd, turbo, core, eth: TransactionsV3 flag and persist in new table (#6754) 2023-02-24 18:49:25 +00:00
Alex Sharov
c534453654
e3: exec retry once (#6943) 2023-02-24 05:57:17 +00:00
Alex Sharov
ddcb1c90cd
e3: don't collect readList in ApplyWorker, because it's conflict-free (#6916) 2023-02-21 05:11:45 +00:00
Anshal Shukla
7ce3f7b158
State sync transactions added to debug_traceBlockByNumber call (#6830)
State sync transactions can be enabled using `"borTraceEnabled": true`
parameter, this is to ensure that the current behaviour is unchanged.
2023-02-20 08:04:11 +00:00
alex.sharov
26106769d3 e3: simplify mutex 2023-02-15 10:56:45 +07:00
Andrew Ashikhmin
58fcc04575
blockValue should use gasUsed rather than gasLimit (#6875)
Fees going to the gas fee recipient should be based on the actual gas
used (available in the receipt) rather than the gas limit in a
transaction. This fixes Hive test "GetPayloadV2 Block Value".

Also `engine_getPayloadBodiesByRangeV1` params should be encoded as hex
strings.
2023-02-14 15:05:27 +00:00
alex.sharov
2ba835012a e3: a bit simplify 2023-02-14 15:19:08 +07:00
alex.sharov
4dab4dc0cf cleanup 2023-02-14 13:15:13 +07:00
alex.sharov
199ce9bfb3 save 2023-02-14 13:14:27 +07:00
Alex Sharov
45ffd2368b
e3: don't cancel workers (#6869) 2023-02-14 06:13:27 +00:00
Alex Sharov
999899d66d
e3: read files list from db (#6833) 2023-02-13 05:17:01 +00:00
Alex Sharov
ab8e59ff0e
Sepolia: enable blocks snapshots by default (#6847) 2023-02-12 04:14:13 +00:00
Alex Sharov
60a4b8bc7b
Snapshots Indexing: avoid loop with semaphore locking before logging (#6845) 2023-02-12 02:49:20 +00:00
ledgerwatch
ee83447fa1
CL lightclient to create memdb in the tmpdir which gets cleaned up on… (#6829)
… startup

---------

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-02-11 20:44:51 +00:00
Alex Sharov
983db55dc5
Downloader: "incomplete" markers are more important than "complete", so commit them with fsync (#6825) 2023-02-10 13:20:19 +07:00
Alex Sharov
98a8ca50fe
erigon3 snapshots version 3 (#6811) 2023-02-09 13:51:51 +07:00
Alex Sharov
145f689e78
less logs about compression (#6812) 2023-02-09 12:28:09 +07:00
Alex Sharov
ec52990c43
e3: Thread safe reopen folder (#6810) 2023-02-09 12:11:40 +07:00
Alex Sharov
a75a948beb
e3: MakeContext must not see garbage files (deleted, overlapped, etc...). make it cheaper. (#6803) 2023-02-08 12:50:47 +07:00
Alex Sharov
e6e07fec72
e3: exec to stop workers return (#6801) 2023-02-08 09:53:43 +07:00
Giulio rebuffo
f7e58a7964
added separable lightclient (#6800)
How to run:
Erigon flags needed: --private.api.addr <ADDR> --externalcl
Lightclient flags needed: --private.api.addr <ADDR>
2023-02-08 00:06:07 +01:00
hexoscott
683f022c69
pass config to tracer from RPC request (#6795)
Created to handle #6758.

Just takes the parameters and passes them down the pipe. A local test
against mainnet showed the trace size varied accordingly when passing
true/false values for `onlyTopCall`.
2023-02-07 15:50:11 +00:00
Giulio rebuffo
03f737c458
Added processing for Attestation (#6772) 2023-02-03 16:39:09 +01:00
ledgerwatch
38177d8f68
Fix hive after merging eth/68 PR (#6766)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-02-02 08:26:30 +00:00
ledgerwatch
bf24018205
Add support for eth/68 (#6764)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
Co-authored-by: Alex Sharp <alexsharp@surfer-172-29-1-65-hotspot.internet-for-guests.com>
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-02-01 22:21:31 +00:00
Alex Sharov
aaec53857f
e3: last reader to close/remove merged files (marked as canDelete) inside tx.Rollback() (#6738) 2023-02-01 15:44:13 +07:00
Alex Sharov
dfca60c054
e3: indices wal - to reuse etl collector (#6757) 2023-02-01 10:02:29 +07:00
Anshal Shukla
a4f8175136
Bor file structure updated (#6167)
Updated bor consensus folder structure
2023-01-31 14:00:57 +05:30
Andrew Ashikhmin
004c5afdfa
Avoid unnecessary unwind+rewind (#6712)
On
[withdrawal-mainnet-shadowfork-1](https://withdrawal-mainnet-shadowfork-1.ethpandaops.io/)
erigon was unnecessarily re-executing blocks after 16m (snapshot)
multiple times. That was likely due to CL issuing `forkchoiceUpdated`
pointing to an old block for some reason. This PR introduces a
protection against such inefficiency.
2023-01-30 15:42:23 +01:00
Alex Sharov
62746c6185
fix snap flag behavior (#6743) 2023-01-30 17:37:58 +07:00
Alex Sharov
2998aa6386
e3: debug_accountRange (#6726) 2023-01-28 12:03:24 +07:00
Alex Sharov
b99e4abb3e
move math big constants to erigon-lib (#6719) 2023-01-27 11:39:34 +07:00
Alex Sharov
d908f57528
Senders: nil check (#6717) 2023-01-27 10:19:33 +07:00
Max Revitt
6559c15ebb
feat(trace): use specific error string (#6696)
In v2.36.0 we correctly trace this transaction, however due to a code
ordering issue in previous releases, there was an 'out of gas' response,
because we fell through to the code here where
ErrContractAddressCollision will be returned as such. This change isn't
the fix, but ensures the actual error is returned.
2023-01-26 15:10:51 +01:00
Andrew Ashikhmin
d12fda5cbd
Switch AccessList, IntrinsicGas, SafeAdd/Mul to erigon-lib (#6709)
Reduce code duplication.
2023-01-26 12:26:12 +01:00