Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpha5 #542

Merged
merged 186 commits into from
Oct 29, 2024
Merged

Alpha5 #542

merged 186 commits into from
Oct 29, 2024

Conversation

blxdyx
Copy link
Collaborator

@blxdyx blxdyx commented Oct 28, 2024

No description provided.

Giulio2002 and others added 30 commits September 27, 2024 22:23
I fixed the long caplin's snapshot wait time
I found these typos annoying, while debugging (and grepping) rewards in
caplin, but forgot to include them in my original PRs.
handles first part of erigontech#11533
which relates to calling bridge.Unwind via Astrid
Moved code which set preverified files list from preverified.toml before
torrent whitelist is generated.
Fix for erigontech#12031
Moves spanProducersReader code down to the function that covers all use
cases. Not all RPCs call `GetSnapshot`, which lead to errors when using
Astrid.
- this PR experiments with a 2nd experimental version of docker build
workflow...it eventually deletes that
- the (original) docker build workflow is changed to invoke
kurtosis-assertoor workflow, once it succeeds.
- here's a [sample
run](https://github.com/erigontech/erigon/actions/runs/11105470450/job/30851703289)
- this had the experimental workflow call the kurtosis ci...
…ks table (erigontech#12148)

fixes 
```
INFO] [09-30|16:59:20.466] aggregator unwind                        step=2940 txUnwindTo=4595202440 stepsRangeInDB="accounts:0.9, storage:0.9, code:0.9, commitment:0.0, receipt:0.9, logaddrs: 0.9, logtopics: 0.9, tracesfrom: 0.9, tracesto: 0.9"
[EROR] [09-30|16:59:20.671] Staged Sync                              err="[3/9 BorHeimdall] unexpected missing first processed block info entry when unwinding"
```

that table is only populated as part of astrid, so bor heimdall stage
should not attempt to unwind it
Better separation between testing and linting. Failed test CI only goes
red for failed tests.
…#12073)

Checked against beaconcha.in, against a synced prysm, and against
ethereum-beacon-api.publicnode.com.

Catlin is consistently off-by-one (one has to ask for the next numbered
epoch to get calculation for the one that one wanted).

@Giulio2002
- remove unused block
- fromJson is not required to get os value
…#12173)

fixes a crash when running astrid
```
[DBUG] [10-02|04:14:04.330] Error while executing stage              err="[2/6 PolygonSync] stopped: service unavailable: url='https://heimdall-api-amoy.polygon.technology/milestone/count', status=503"
[EROR] [10-02|04:14:04.330] [2/6 PolygonSync] stopping node          err="service unavailable: url='https://heimdall-api-amoy.polygon.technology/milestone/count', status=503"
```
yperbasis and others added 28 commits October 24, 2024 10:37
1. accelerate scanning files by avoiding doubly nested loop
2. ~~do not reopen~~ (achieved by erigontech#12332 and erigontech#12362, so remove relevant
code here)
Fixed ```MDBX_TXN_OVERLAPPING: Overlapping read and write transactions
for the current thread, label: chaindata, trace: [kv_mdbx.go:782
kv_mdbx.go:935 aggregator.go:1959 aggregator.go:1635 exec3.go:369
stage_execute.go:164 stage_execute.go:254 default_stages.go:238
sync.go:531 sync.go:410 forkchoice.go:453 asm_amd64.s:1695]"```

---------

Co-authored-by: alex.sharov <[email protected]>
Use FlatRequest instead of a different type - DepositRequest defined
earlier. This allows all request to align, with the differences in
Deposit Requests separated out into functions rather than receiver
methods.

Tasks board: erigontech#12106
…erigontech#12436)

We want to get the state at the end of the block when executing state
sync events. `CreateHistoryStateReader` gives us the state before the
transaction at `txIndex` is executed, so we want to get the state at
`txIndex=len(transactions)`.
Create split between new and old code for easier removal later on. This
also handles divergent behaviour for `bor_getSnapshotProposerSequence`.
Syncing to `master` branch in `interfaces` repo and adding back missing
proto updates in erigontech#11962

---------

Co-authored-by: Shoham Chakraborty <[email protected]>
Fixes the issue when json decoding empty requests in param to
`newPayload`, spefically, the following would keep coming up in Hive
tests (EEST)
```
Exception: Error calling JSON RPC newPayloadV4, code: -32602, message: invalid argument 3: illegal base64 data at input byte 0
```
…xes (erigontech#12380)

FYI: Next step will be: replace `visibleMutex` by `atomic.Pointer`
… in `backend.go` (erigontech#12413)

I found that external RPCDaemon using custom logic/methods to open
`engine` db and create `engine` object. Need re-use logic (and don't
loose `.Accede()` when opening databases from external rpcdaemon)

on Gnosis: next request doesn't work if `optimize=false` and works if
`optimize=true`:
```
 curl -X POST http://localhost:8549 -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "eth_getTransactionReceipt", "params": ["0x7fb21774eed37fa229d59cdf4b991f951aee185066d86b432ed1cc1e29764577"], "id": 293}'
```

for: erigontech#12247

error message is: 
```
WARN[10-22|08:12:17.321] [rpc] served                             conn=127.0.0.1:35698 method=eth_getTransactionReceipt reqid=293 err="getReceipt error: ReceiptGen.GetReceipt: bn=19040024, txnIdx=0, fee cap less than block base fee: address 0x67342Ec1440bFB760Ba9805a7735e0D12Bb9fEc7, gasFeeCap: 0 baseFee: 141015840"
```
…12492)

Cache is branch-specific.

For pull-requests based on some feature-branch we can skip cache and
save available space on our workflow cache as well as time required to
run workflow.
Reproduce in sepolia, `rm-state --domain=receipt` and then` run
stage_custom_trace`.
when exec.workers > 1, `[EROR] [10-25|06:17:05.577] ReadHeaderRLP failed
err="mdbx_get: MDBX_THREAD_MISMATCH: A thread has attempted to use a not
owned object, e.g. a transaction that started by another thread"`

BTW, after this the commit, the generate domain receipt file are same,
but history file have different torrent_hash.
This is a non-functional refactor of ExecV3 which moves the parallel
execution code out on the main function and puts it in a separate
type/file

This is to facilitate parallel execution testing/development without
merge clashes
@setunapo setunapo merged commit 80f2881 into node-real:main Oct 29, 2024
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.