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

Upstream v2.49.0 #22

Open
wants to merge 60 commits into
base: op-erigon
Choose a base branch
from
Open

Upstream v2.49.0 #22

wants to merge 60 commits into from

Conversation

ImTei
Copy link
Member

@ImTei ImTei commented Sep 25, 2023

Upstream sync PR

erigon

ledgerwatch/erigon v2.49.0 -> testinprod-io/op-erigon dd556a8

erigon-lib

ledgerwatch/erigon-lib dde477f -> testinprod-io/erigon-lib b7b8746

erigon-interfaces

ledgerwatch/interfaces 1fb30d8 -> testinprod-io/erigon-interfaces f2e7a04

AskAlexSharov and others added 30 commits July 6, 2023 04:08
This checking replaces the config processing for bor sprints which has
the following issues:

1. It uses string ordering for blocks which is lexical so does not
handle decimal scale when sorting numbers
2. It parses the config map every calculation - which is expensive
relative to just checking the index order

This is likely not an issue for the existing main net as the map only
has 2 entries and their sort order is coincidentally the same for both
lexical and numeric ordering. Performance is likely also a non issue
compared to the other processing during execution flow.

These changes are intended to support tx indexing where in the
snapshotting process the calc will get called at least twice for each
bor block during 1000's of iterations.
Add a bound the txpool db, rather than leaving it as the default of 2TB.
This is to reduce the page file profile when running multiple nodes from
around 3.5GB per txpool instance.

The current pool map side is set to 512MB - which seems reasonable with
16MB increments
Reverts ledgerwatch#1050

It causes the error:

`EROR[07-21|21:45:02.806] [txpool] flush is local history err="table:
PoolTransaction, err: mdbx_cursor_put: MDBX_MAP_FULL: Environment
mapsize limit reached"
`
Fixes the following panic triggered by blob Hive tests:
```
[2c098836] panic: runtime error: index out of range [0] with length 0
[2c098836] 
[2c098836] goroutine 902 [running]:
[2c098836] github.com/ledgerwatch/erigon-lib/txpool.MainLoop.func1()
[2c098836] 	github.com/ledgerwatch/erigon-lib@v0.0.0-20230801100033-1b342f37741d/txpool/pool.go:1565 +0x100f
[2c098836] created by github.com/ledgerwatch/erigon-lib/txpool.MainLoop
[2c098836] 	github.com/ledgerwatch/erigon-lib@v0.0.0-20230801100033-1b342f37741d/txpool/pool.go:1492 +0x8c5
```
Giulio2002 and others added 28 commits August 11, 2023 21:07
Co-authored-by: Alex Sharp <alexsharp@Alexs-MacBook-Pro-2.local>
Added 

 ```
MdbxPageSize          datasize.ByteSize
MdbxDBSizeLimit       datasize.ByteSize
MdbxGrowthStep        datasize.ByteSize
```
to allow txpool db to be configured.
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.

10 participants