Commit Graph

17463 Commits

Author SHA1 Message Date
ledgerwatch
5e205f61c0
More tweaks for BSC headers (#6662)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-22 14:19:16 +00:00
alex.sharov
03144279ef fix lint 2023-01-22 20:47:36 +07:00
Alex Sharov
23287371e7
e3: better iterator (#6666) 2023-01-22 20:39:43 +07:00
alex.sharov
df771eb220 e3: fix test 2023-01-22 20:14:04 +07:00
alex.sharov
78f31019f6 e3: move txnum to erigon-lib 2023-01-22 20:05:01 +07:00
Alex Sharov
4fbbdf9186
e3: move txnum to erigon-lib (#6663) 2023-01-22 19:39:33 +07:00
ledgerwatch
706a999178
Improvements for the BSC stuck header sync (#6653)
There are 3 changes:
1. Replace `anchorQueue` with `anchorTree` to be able to always walk the
anchors in the order of increasing blockHeights (not possible with the
queue) to prioritise making progress on the lowest block heights
2. Not increment `nextRetryTime` if the request was not sent
3. Reduce the strides in skeleton from `8*192` to `192` to reduce
reliance of the long series of requests to make progress

Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-01-22 12:28:17 +00:00
Giulio rebuffo
f1dd51ccb3
Added Historical Summary and FromBlsToExecution (#6658)
Added Capella specific Data types.
2023-01-22 11:48:17 +01:00
alex.sharov
99e535561b save 2023-01-22 16:51:09 +07:00
Alex Sharov
5a7e0eb5db
e3: eth_getLogs simplify (#6660) 2023-01-22 16:48:54 +07:00
Alex Sharov
0ee8c175d9
e3: simplify history reader (#6659) 2023-01-22 16:42:24 +07:00
Alex Sharov
dcb5c5c089
e3: ots_searchTransactionsBefore (#6657) 2023-01-22 15:36:51 +07:00
Alex Sharov
43d39762c2
e3: ots_searchTransactionsBefore (#6656) 2023-01-22 15:35:18 +07:00
lupin012
5c82faa44b
eth_callBundle fixes (#6628)
There are two fixes:
1) the blockNumber in the CreateHistoryStateReader should be blockNumber
+ 1 as in the eth_call, eth_createAccessList:
- eth_call: already use blockNumber + 1 see
CreateStateReaderFromBlockNumber where the blockNumber
- passed to the CreateHistoryStateReader is blockNumber + 1
- eth_createAccessList: call CreateHistoryStateReader directly with
blockNumber + 1
2) The eth_callBudle allows to execute the original transaction (here
the sender nonce is assigned to the tx) on a user defined block; the
original transition could be performed in another block . The sender's
nonce when the original transaction was performed had a value that may
be different to the nonce of the sender when the tx is "executed" on new
block. So during the execution of the eth_callBundle must not be
verified that the nonce is progressive (original nonce of the tx + 1:
see preCheck() in state_transition.go that; if the checkNonce fails an
error is arised, nonce too low or nonce to high)
The eth_call does not check the nonce because is using ToMessage(calls
types.NewMessage with checkNonce = false) with checkNonce disabled;
while the eth_callBundle uses AsMessage object (where is built the
Message with checkNonce = true) where the checkNonce is enabled.
Action: Disable the checkNonce as proposed
2023-01-22 07:13:28 +00:00
Alex Sharov
090f58d258
Update README.md 2023-01-22 12:29:51 +07:00
Alex Sharov
64bf63a928
Update README.md 2023-01-22 12:28:43 +07:00
Giulio rebuffo
0eebd61ab8
separation of state: a continuation (#6647) 2023-01-21 22:33:50 +01:00
Alex Sharov
184c2eb5b1
e3: fix test (#6652) 2023-01-21 14:18:29 +07:00
Alex Sharov
57b1bdd54c
e3: rename "stream" to "iter" (#6651) 2023-01-21 11:11:47 +07:00
Alex Sharov
03e62dce1a
e3: to fix integration tests (#6649) 2023-01-21 11:02:01 +07:00
Alex Sharov
2a9ae52c9e
grpc version up (#6648) 2023-01-21 10:58:16 +07:00
ledgerwatch
04539d5f92
Rollback mdbx to previous version (#6643)
To eliminate a probably cause of issues related to `tx.Put` and
`tx.Append` getting stuck

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-20 21:32:20 +00:00
ledgerwatch
122353e147
Bump version (#6645) 2023-01-20 21:09:55 +00:00
Giulio rebuffo
9503672194
Separation of SSZ Beacon State and Fix BeaconRpc (#6635) 2023-01-20 20:41:16 +01:00
ledgerwatch
092c75f83e
More fixes to bodies download (#6642)
This time incorrect handling of the empty bodies (which should be
requested)

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-20 19:20:22 +00:00
Andrew Ashikhmin
9927ca3171
Unify Engine API V1 & V2 methods (#6638)
Reduce code duplication.

Prerequisite: https://github.com/ledgerwatch/erigon-lib/pull/841.
2023-01-20 18:43:08 +01:00
Alex Sharov
b71725ecb3
e3: reverse/limited iterators, stream tooling (#6637) 2023-01-20 18:08:20 +07:00
alex.sharov
d6c330f91b e3: remove last snapshot 2023-01-20 09:28:02 +07:00
ledgerwatch
2c3299d073
Better logging for body writing (#6634)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-20 00:04:47 +00:00
Devon Bear
b8fcb775e3
impr(evm): Move callstack depth to the interpreter (#6632)
This is a more logical / semantically correct place to keep track of the
call stack depth.
2023-01-19 23:52:08 +00:00
ledgerwatch
f2111b4132
Another fix for body download (#6633)
When body gets evicted from the cache, its corresponding entry in
`requestMap` is also removed but was never re-instated when re-request
happens

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-19 23:05:38 +00:00
alex.sharov
6c29cfcd6e e3: more mainnet snapshots 2023-01-19 14:31:03 +07:00
alex.sharov
f8539551f1 readme 2023-01-19 10:44:38 +07:00
Alex Sharov
0f573a9372
e3: more bsc snapshots (#6623) 2023-01-19 10:04:13 +07:00
ledgerwatch
83b74cbd18
Fix eth_getLogs (#6621)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-01-18 23:41:22 +00:00
Andrew Ashikhmin
c352d78457
Wei -> Gwei tests update (#6619)
Pick up https://github.com/ethereum/tests/pull/1147
2023-01-18 17:47:59 +01:00
Max Revitt
3837d6d26d
fix: payload version error return (#6618)
See https://github.com/ethereum/execution-apis/pull/337
2023-01-18 14:31:25 +01:00
Giulio rebuffo
3f07c66928
Fast gossip routine for Sentinel. (#6614)
removed bunch of ugly repetitive routines.
2023-01-18 14:30:39 +01:00
Andrew Ashikhmin
1a3bb38750
Gnosis Chain in README (#6617) 2023-01-18 14:00:07 +01:00
ledgerwatch
31151f96cb
Reduce body cache size when taking item out (#6615)
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
2023-01-18 07:00:06 +00:00
Devon Bear
00c73f0c20
clean: VMInterpreter and Fix Linter (#6611) 2023-01-18 06:44:21 +00:00
omahs
84089f029c
Fix: typos (#6613)
Fix: typos
2023-01-18 06:43:24 +00:00
ledgerwatch
44b834e77a
Further fixes for body downloader (#6610)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-17 22:03:28 +00:00
Devon Bear
6443279775
impr(interpreter): Convert Interpreter to use an Interface in lieu of *EVM (#6606)
Helps with reusability of the Interpreter.
2023-01-17 21:53:24 +00:00
Giulio rebuffo
df89a76304
fixed concurenncy panics for gossip service (#6607) 2023-01-17 19:41:22 +00:00
ledgerwatch
19ce8d2a8f
stage_headers: use block time instead of "topSeenHeight" to determine when it is in sync (#6602)
This is more reliable criterion because it is harder to spoof
continuously by malicious peers

Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-17 17:28:02 +00:00
Andrew Ashikhmin
7fb5cecce8
Allow NewPayloadV2 for pre-Shanghai blocks (#6604)
This is a fix for
[withdrawal-devnet-3](https://forkmon.withdrawal-devnet-3.ethpandaops.io/).
The problem was that CL calls `NewPayloadV2` for pre-Shanghai blocks
with `nil` withdrawals, which is OK, but that `nil` was erroneously
converted into an empty array, causing block hash mismatch.
2023-01-17 16:26:44 +00:00
ledgerwatch
a6f75bddf1
Bump version (#6605)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-17 14:58:07 +00:00
Alex Sharov
9a6e463cd3
remove objectdb from tests (#6603) 2023-01-17 21:09:43 +07:00
ledgerwatch
0bea0437bf
Deal with the situation when body cache is too small (#6601)
Co-authored-by: Alexey Sharp <alexeysharp@Alexeys-iMac.local>
2023-01-17 12:52:07 +00:00