Alex Sharov
e84c43f7dc
Update README.md
2023-02-08 10:20:07 +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
Giulio rebuffo
c92b858888
Cleaned up and optimized proposer index retriaval. ( #6799 )
2023-02-07 20:14:04 +01:00
Giulio rebuffo
a585ae4894
Added Optimizations to Beacon state transition. ( #6792 )
2023-02-07 17:44:37 +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
Kian
72c01b2d88
Fix getBlockTransactionCount returning null ( #6793 )
...
So... for blocks that don't exist, the eth_getBlockTransactionCount RPCs
should return `null`. Erigon does this correctly right now and this is
covered by the unit test in
[rpcdaemon/commands/corner_cases_support_test.go](https://github.com/ledgerwatch/erigon/blob/devel/cmd/rpcdaemon/commands/corner_cases_support_test.go ).
But, for blocks that don't have any transactions, like
[703696](https://etherscan.io/block/703696 ), the RPC also returns
`null`.
I've changed this to correctly return `0` and have added 2 new tests to
handle it. (I had to add another block to the test chain in
rpcdaemon/rpcdaemontest/test_util.go and had to fix a few other tests
that broke as a result.)
Resolves #6775
2023-02-07 18:32:42 +07:00
Philippe Schommers
9e93914998
test: fix clparams config test ( #6790 )
...
Was only testing `MainnetNetwork` repeatedly before.
2023-02-07 18:32:23 +07:00
Andrew Ashikhmin
2fa448c45f
Validate params of GetPayloadBodiesByHash and ByRange ( #6785 )
...
See https://github.com/ethereum/execution-apis/pull/366 and
https://github.com/ethereum/execution-apis/pull/370 .
Also fix a couple of issues so that the Hive tests pass.
2023-02-06 18:38:45 +01:00
hexoscott
80a37eb209
stop writing to closed channel panic ( #6763 )
2023-02-06 18:17:32 +07:00
a
966be04e6d
add eth_getFilterLogs, fix filter subscription ids ( #6514 )
...
this pr does the following:
1. adds new function to ApiImpl `GetFilterLogs` which should implement
`eth_getFilterLogs` (eth_getFilterChanges except with only logs filters)
2. changes the ID generator of rpchelper.Filters to use crypto/rand.
3. switched logs subscriptions to use the secure ID instead of number
4. changes subcription ids from an 8 byte hex string to a 16 byte
2023-02-06 10:18:10 +07:00
Alex Sharov
4cae1b94e9
switch sentinel to native go errors ( #6782 )
2023-02-06 10:15:52 +07:00
Alex Sharov
dede1a2c9e
e3: more mergeFiles tests, refcnt for LocalityIndex ( #6765 )
2023-02-06 09:05:29 +07:00
Philippe Schommers
f9ab76f9ef
feat: add deposit contract blocks for Gnosis ( #6776 )
...
From what I understand, this should be sufficient to add `--prune=r`
support for Gnosis and Chiado.
2023-02-06 09:04:44 +07:00
Giulio rebuffo
ee4c8ed3bd
Added working slot processing. ( #6779 )
2023-02-05 21:53:59 +01:00
ledgerwatch
b5b79b8a68
Revert updates to tests/testdata ( #6780 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-02-05 20:35:01 +00:00
ledgerwatch
63a830b659
Bump version ( #6778 )
2023-02-05 20:19:12 +00:00
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