Commit Graph

17598 Commits

Author SHA1 Message Date
ledgerwatch
52aef48748
Workaround for BSC nodes not propagating new block hashes and blocks (#6777)
It turns out that "standard" BSC nodes based on Geth, do not propagate
new block hashes and blocks, at least towards Erigon nodes. This is a
workaround

---------

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-02-05 18:42:51 +00:00
Giulio rebuffo
03f737c458
Added processing for Attestation (#6772) 2023-02-03 16:39:09 +01:00
Giulio rebuffo
2975ca5782
added process Voluntary Exit (#6768) 2023-02-02 12:16:28 +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
Anshal Shukla
b70e8d7955
fix race condition in snapshot_test (#6761)
The Read method of math package used in randomAddress function is not
thread safe, instead I've used crand package which is used by matic and
is a fork of thread safe crypto package.
2023-02-01 22:15:19 +00:00
Andrew Ashikhmin
afe8a84dc4
[erigon-lib] Fix index out of range in TxPool.best (#6762)
Pick up https://github.com/ledgerwatch/erigon-lib/pull/876
2023-02-01 16:48:13 +01:00
Igor Mandrigin
eb0f7e463a
Don't panic on some AuRa transactions in the past (#6760)
Example request that crashed the RPC method handler on Gnosis Chain
mainnet.
```
{
    "id": "1",
    "jsonrpc": "2.0",
    "method": "debug_traceBlockByNumber",
    "params": [
        "0x8a1f76",
        {
            "tracer": "callTracer"
        }
    ]
}
```
2023-02-01 16:10:38 +01:00
hexoscott
d9937b5628
remove prints from ethbackend (#6755) 2023-02-01 10:58:32 +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
Andrew Ashikhmin
8c0774f3d2
Update ethereum/tests (#6753) 2023-01-31 15:12:05 +01:00
Andrew Ashikhmin
4c71a1194b
Update execution-spec-tests (#6640)
Update execution-spec-tests to
[v0.2.2](https://github.com/ethereum/execution-spec-tests/releases/tag/v0.2.2)
2023-01-31 12:52:04 +01:00
Anshal Shukla
a4f8175136
Bor file structure updated (#6167)
Updated bor consensus folder structure
2023-01-31 14:00:57 +05:30
Alex Sharov
8a31eda27c
integration: set genesis to cfg (#6750) 2023-01-31 14:05:30 +07:00
Giulio rebuffo
3748a6af97
Added processing for deposits (#6746) 2023-01-30 18:55:57 +01:00
Andrew Ashikhmin
de5a061fdf
Remove StarknetTransaction and friends (#6745) 2023-01-30 16:56:58 +01:00
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
Giulio rebuffo
1436060fd8
added sync aggregate method for processing (#6740) 2023-01-30 14:39:56 +01:00
Alex Sharov
62746c6185
fix snap flag behavior (#6743) 2023-01-30 17:37:58 +07:00
hexoscott
f13016c7ec
Fork choice is waiting fix (#6711) 2023-01-30 07:52:29 +00:00
ledgerwatch
8c2713b0b8
Fix lint (#6737)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-29 10:16:05 +00:00
ledgerwatch
0ccda84439
Fix defer order to prevent concurrent map write panic (#6736)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-29 09:06:36 +00:00
Alex Sharov
939587bdab
E3: small rename (#6735) 2023-01-29 10:58:17 +07:00
Alex Sharov
44f7ff3c95
e3: small rename (#6734) 2023-01-29 10:56:14 +07:00
Alex Sharov
9287a2202b
e3: eth_getModifiedAccountsByNumber (#6733) 2023-01-29 10:10:39 +07:00
ledgerwatch
fd18945ace
Bump version (#6732) 2023-01-28 21:33:33 +00:00
Max Revitt
451f3e64ca
feat(issue_templates): update bug template to gather more info (#6725) 2023-01-28 21:22:34 +00:00
Marc-André Dumas
407cfef9e7
rpc: move receipts length check after bor logic (#6731)
Fixing issue #6730
2023-01-28 21:21:57 +00:00
farwayer
00390a974f
Fix retrieving Bor transactions from the pool (#6689)
At the moment erigon does not try to look for bor transactions inside
the pool
2023-01-28 21:20:08 +00:00
Alex Sharov
dc2c2b818c
fix mdbx_stat incompatibility (#6729) 2023-01-28 16:39:16 +07:00
Alex Sharov
2998aa6386
e3: debug_accountRange (#6726) 2023-01-28 12:03:24 +07:00
Giulio rebuffo
a0d236df31
Added process slashings (#6728) 2023-01-27 23:19:23 +01:00
Alex Sharov
6933b0d169
grpc minor version up (#6724) 2023-01-27 20:20:29 +07:00
Alex Sharov
1583cdb068
e3: debug_accountAt, read from history instead of block exec (#6723) 2023-01-27 19:09:51 +07:00
Alex Sharov
13d6415de8
e3: ots system txn handle 2023-01-27 16:05:09 +07:00
Alex Sharov
5b703749bd
e3: ots underflow fixes (#6721) 2023-01-27 14:41:11 +07:00
Alex Sharov
171a965faa
e3: ots some underflow fixes (#6720) 2023-01-27 14:16:09 +07:00
Alex Sharov
b99e4abb3e
move math big constants to erigon-lib (#6719) 2023-01-27 11:39:34 +07:00
Alex Sharov
081e59311d
e3: ots_getTransactionBySenderAndNonce (#6718) 2023-01-27 11:34:04 +07:00
Alex Sharov
d908f57528
Senders: nil check (#6717) 2023-01-27 10:19:33 +07:00
Paul Lange
638403e54a
Fix code envs in README (#6713)
Add some missing backticks to the README.
2023-01-27 10:19:20 +07:00
Giulio rebuffo
b3076a812d
added resets processing for Erigon-CL (#6716) 2023-01-27 01:24:03 +01:00
Giulio rebuffo
e660dd923d
refactored transitions methods in Erigon-CL (#6714) 2023-01-26 23:50:44 +01: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
ee7fd4183d
Always penalize useless peers (#6710)
Should help us to drop useless peers on shadow forks and PoS chains in
general.
2023-01-26 14:14:20 +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
Alex Sharov
a0c3730e38
e3: cleanup (#6708) 2023-01-26 17:52:04 +07:00
alex.sharov
a23f42358b save 2023-01-26 17:29:01 +07:00
Alex Sharov
30fefd1fe1
e3: trace_filter on iter (#6707) 2023-01-26 17:24:29 +07:00