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
e4c010d590
win: bls portable flags ( #6997 )
2023-03-02 03:46:28 +00:00
hexoscott
0b19aaaabf
gnosis trace issue fix ( #6995 )
...
To fix #6798
Follows the same pattern as other temporary fixes for BSC.
Tested locally and the transaction in question shows the same behaviour
as nethermind, coming to the same gas used and reverted behaviour by the
end. Tracing the block also works as expected now.
Tracing a transaction after the fork at 21735000 loads up the new
contract as expected as well.
2023-03-01 21:29:10 +00:00
Alex Sharov
8406cb7899
e3: exec workers - can't treat all errors as "state conflict", because applyLoop will get same error and handle them well ( #6993 )
2023-03-01 09:55:29 +00:00
Jochen Müller
a0ffa454ec
Remove unused code from Node struct ( #6978 )
...
The server attribute was only still used in a broken, skipped unit test
which we may rewrite later
2023-03-01 08:04:27 +00:00
Marius Kjærstad
8ab3be0d5d
Fix typo in snappy.rst ( #6992 )
...
Fix typo in snappy.rst
2023-03-01 08:03:31 +00:00
Alex Sharov
d6d142c4b0
switch sentinel to lru/v2 generic cache ( #6990 )
2023-03-01 08:00:46 +00:00
Alex Sharov
a4f69abb97
e3: less locks, less casts ( #6991 )
2023-03-01 07:59:56 +00:00
alex.sharov
4fd421a3f0
use correct mdbx version in go.mod
2023-03-01 13:13:57 +07:00
alex.sharov
85df06ca26
remove zstd dependency
2023-03-01 12:57:15 +07:00
alex.sharov
4e5f14c4c1
Revert "e3: faster apply ( #6970 )"
...
This reverts commit 4b4d27195c
.
2023-03-01 10:11:30 +07:00
Alex Sharov
031292cc83
evm: prealloc zeroes for Resize() ( #6624 )
2023-03-01 02:43:32 +00:00
nanevardanyan
cf9ee425ed
check for TransactionsV3 flag ( #6988 )
2023-03-01 02:13:12 +00:00
Giulio rebuffo
f97550c48f
Fixed capella startup for LC ( #6989 )
2023-02-28 21:17:10 +00:00
Alex Sharov
570ff33e88
e3: result size atomic change after processResultQueue
( #6975 )
2023-02-28 09:35:13 +00:00
Giulio rebuffo
edcd271f72
Added capella SSZ tests ( #6965 )
2023-02-27 23:33:10 +00:00
Alex Sharov
b3c49af086
e3: aggressive drain resultCh to heap before start conflict-resolution ( #6979 )
2023-02-27 13:08:33 +00:00
Roberto Bayardo
f01e3d1717
handle nil update return values without panic ( #6941 )
...
Saw this when trying to sync goerli today:
```
INFO[02-23|11:10:20.611] [2/15 Headers] Waiting for Consensus Layer...
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x14a58dd]
goroutine 11484998 [running]:
github.com/ledgerwatch/erigon/cl/cltypes.(*LightClientOptimisticUpdate).EncodingSizeSSZ(0x0)
github.com/ledgerwatch/erigon/cl/cltypes/lightclient.go:620 +0x1d
github.com/ledgerwatch/erigon/cmd/sentinel/sentinel/communication/ssz_snappy.EncodeAndWrite({0x77f6a74bc058?, 0xc03912b100?}, {0x2c2f628, 0x0}, {0xc022ad9f
5c, 0x1, 0x1})
github.com/ledgerwatch/erigon/cmd/sentinel/sentinel/communication/ssz_snappy/encoding.go:34 +0xae
github.com/ledgerwatch/erigon/cmd/sentinel/sentinel/handlers.(*ConsensusHandlers).lightClientOptimisticUpdateHandler(0xc021f0d500, {0x2c57c28, 0xc03912b100
})
github.com/ledgerwatch/erigon/cmd/sentinel/sentinel/handlers/lightclient.go:82 +0x19d
github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).SetStreamHandler.func1({0xc085e0fa90, 0x42}, {0x77f6a74bbfe8?, 0xc03912b100})
github.com/libp2p/go-libp2p@v0.25.1/p2p/host/basic/basic_host.go:580 +0x76
created by github.com/libp2p/go-libp2p/p2p/host/basic.(*BasicHost).newStreamHandler
github.com/libp2p/go-libp2p@v0.25.1/p2p/host/basic/basic_host.go:421 +0x74f
```
2023-02-27 10:00:49 +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
4b4d27195c
e3: faster apply ( #6970 )
2023-02-27 14:57:02 +07:00
Alex Sharov
daf1522914
e3: handle zero metric ( #6972 )
2023-02-27 14:30:40 +07:00
Alex Sharov
8bffe4499b
e3: less wal locks ( #6971 )
2023-02-27 07:03:00 +00:00
Alex Sharov
4d2c3c2522
e3: branchless get ( #6969 )
2023-02-27 06:57:49 +00:00
Alex Sharov
4a89361845
e3: remove inblock variable ( #6968 )
2023-02-27 06:57:35 +00:00
Alex Sharov
860f0fd569
evm: remove mutex from journal ( #6967 )
2023-02-27 05:48:18 +00:00
Alex Sharov
98cc4535d1
RPC: chainConfig field use atomic pointer instead of mutex ( #6960 )
2023-02-26 10:24:52 +00:00
Marius Kjærstad
6c74526295
Add light client to README.md ( #6963 )
...
Add light client to README.md
2023-02-26 10:24:38 +00:00
alex.sharov
bc1d2151ac
integration: print total time
2023-02-26 10:31:44 +07:00
Alex Sharov
1a141a6219
mdbx: more funcs ( #6961 )
2023-02-26 02:29:48 +00:00
hexoscott
fd49965932
check prune history on trace calls ( #6932 )
...
Not sure if this is too aggressive or not, but return early once we have
a block number if state history has been pruned for that block number.
2023-02-26 09:10:46 +07:00
Alex Sharov
fae889f815
e3: index readers pool ( #6954 )
2023-02-26 02:04:46 +00:00
Giulio rebuffo
b51b293f14
faster rewards and penalties processing ( #6958 )
2023-02-25 21:51:30 +00:00
Giulio rebuffo
300ef31888
fixed lightclient regression ( #6957 )
2023-02-25 16:39:35 +00:00
Giulio rebuffo
e0cde0eae9
Fixed random/random consensus spec tests ( #6955 )
2023-02-25 14:50:01 +00:00
Alex Sharov
431fba815f
e3: simplify tracer ( #6953 )
2023-02-25 12:44:45 +07:00
Jason Yellick
7b62bede1e
Log bound addresses instead of configured ones ( #6948 )
...
The CLI logging currently emits the configured address when noting that
the HTTP or Engine RPC services are started. This is _usually_ the same
as the listening address, but not always. In particular, when the bind
directive specifies an ambiguous parameter, like port 0 for an ephemeral
port, the actually bound address will differ.
This change will help users to operate Erigon while binding to ephemeral
ports. This is especially helpful for developers trying to run multiple
instances of Erigon concurrently in tests which may or may not be
executing in parallel.
Co-authored-by: Jason Yellick <jason@enya.ai>
2023-02-25 02:29:48 +00:00
Marius Kjærstad
5f8a96e53b
Fix typos in DEV_CHAIN.md ( #6952 )
...
Fix typos in DEV_CHAIN.md
2023-02-25 02:27:56 +00:00
Giulio rebuffo
9b8991b62a
added random/random consensus tests support ( #6951 )
2023-02-24 22:42:27 +00:00
Giulio rebuffo
651121c5ce
added empty slots sanity tests ( #6950 )
2023-02-24 21:43:58 +00:00
Giulio rebuffo
cfa8dd8657
Fixed sanity consensus tests for slots processing ( #6949 )
2023-02-24 21:07:32 +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
Giulio rebuffo
4525db6a9c
Fixed lightclient regression ( #6946 )
2023-02-24 15:11:50 +00:00
Alex Sharov
2a8eec51bc
e3: eliasfano iterator.seek() ( #6944 )
2023-02-24 13:39:19 +00:00
Andrew Ashikhmin
9e89db027c
Withdrawals on Gnosis Chain ( #6940 )
...
See
https://github.com/gnosischain/specs/blob/master/execution/withdrawals.md
2023-02-24 11:43:29 +00:00
Alex Sharov
c534453654
e3: exec retry once ( #6943 )
2023-02-24 05:57:17 +00:00
Alex Sharov
58236d62bb
e3: optimize iterators, step1 ( #6937 )
2023-02-24 10:32:50 +07:00
Alex Sharov
97d6cd5c11
e3: more mainnet snapshots ( #6942 )
2023-02-24 10:29:50 +07:00
ledgerwatch
fa1f5d4d9d
Improved test for intra_block_state ( #6939 )
...
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-02-23 14:49:28 +00:00
ledgerwatch
9c9449a059
Mock of Erigon support - step 1 ( #6930 )
...
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-02-22 12:38:22 +00:00