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 erigon V3.0.0-alpha1 #453

Merged
merged 114 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
b1c60ad
diag: thread-safety step1 - json marshal under mutex (#11134)
AskAlexSharov Jul 13, 2024
2d96dbb
diag: thread-safety step2 - unlock mutex in defer (#11135)
AskAlexSharov Jul 13, 2024
12c2732
diag: thread-safety step4 - remove dedicated shutdown listener gorout…
AskAlexSharov Jul 13, 2024
d52ab87
diag: thread-safety step3 - `PeerStatistics.Clone()` and `PeerStats.m…
AskAlexSharov Jul 13, 2024
f5743dd
dl: manifest-verify green CI (#11142)
AskAlexSharov Jul 13, 2024
b8c9187
bor: fix race in `LockedMilestoneIDs` access (#11139)
AskAlexSharov Jul 13, 2024
6bb5d8b
Diagnostics: refactor bulk execution thread safety (#11143)
dvovk Jul 13, 2024
9890a94
Call UnwindTo with tx instead of nil in sync_test.go (#11133)
antonis19 Jul 13, 2024
4a02c66
Caplin: Tweaked CGO_Flags (#11144)
Giulio2002 Jul 14, 2024
ad150b8
diag: thread-safety step5 - race in speedtest (#11138)
AskAlexSharov Jul 14, 2024
459b8b5
rlpgen: step 1 (#11112)
AskAlexSharov Jul 15, 2024
0ec22a8
bor: finality race - step 2 (#11151)
AskAlexSharov Jul 15, 2024
5ec0362
integration: wait for caplin snap open finish (#11124)
AskAlexSharov Jul 15, 2024
7887f65
rpc bottleneck: block files mutex (e3) (#11156)
AskAlexSharov Jul 15, 2024
b579343
dl: use native `filepath.IsLocal` and `filepath.Clean` funcs (#11141)
AskAlexSharov Jul 15, 2024
bb7c099
chore: confusing log (#11043)
chuwt Jul 15, 2024
6a90ea3
execution spec tests update for devnet-1 (#11127)
sudeepdino008 Jul 15, 2024
1ac70b8
Delete as not needed cmd/release/. (#11161)
lystopad Jul 15, 2024
48f6d5b
Fix downloader completion set and races (#11182)
mh0lt Jul 16, 2024
f8abd99
chore: fix some comments (#11170)
stellrust Jul 16, 2024
5878b14
tests: auto-close temporal db (#11160)
AskAlexSharov Jul 16, 2024
792f616
discovery table: revalidate race fix (#11159)
AskAlexSharov Jul 16, 2024
5052495
Caplin: Added POST `Validators` (#11152)
Giulio2002 Jul 16, 2024
51eee46
diagnostics: refactor network peers mutex (#11178)
dvovk Jul 16, 2024
ce6098e
move interfaces from ledgerwatch to erigontech (#11194)
yperbasis Jul 16, 2024
c8d9143
increase snapshot semaphore default limit (#11193)
awskii Jul 16, 2024
e0f065b
p2p receipts (#11010)
JkLondon Jul 16, 2024
e1ff9c1
Caplin: Optimization and Parallelization of processes and reduction o…
Giulio2002 Jul 16, 2024
b52d5ef
Caplin: Look for peers if not avaiable within subnet (#11057)
Giulio2002 Jul 16, 2024
c6dc7c0
Downloader: Bump up defaults (#11197)
Giulio2002 Jul 17, 2024
7f7d62a
`erigon_getLatestLogs` add limit parameter (#11095)
lupin012 Jul 17, 2024
ef100fa
refine ProcessBlock and ProcessBlindedBlock (#10923)
domiwei Jul 17, 2024
229b504
less logs on CI (#11122)
AskAlexSharov Jul 17, 2024
4c3f26f
revert logging of binary data (#11199)
AskAlexSharov Jul 17, 2024
ba07b2a
pool: do fsync by non-empty update (e3) (#11198)
AskAlexSharov Jul 17, 2024
febcfc1
engineapi: Fix req list check (#11191)
somnathb1 Jul 17, 2024
eb49fa3
make `latest seen blocks` visible earlier (#11204)
AskAlexSharov Jul 17, 2024
1b10799
move secp256k1 to erigontech (#11209)
yperbasis Jul 17, 2024
ff4f4df
move erigon-snapshot to erigontech (#11213)
yperbasis Jul 17, 2024
eacf236
replaced speedtest lib with our fork (#11217)
dvovk Jul 18, 2024
5521c78
Caplin: Better old-state pruning (#11219)
Giulio2002 Jul 18, 2024
202c1bb
Merge remote-tracking branch 'ledgerwatch/main' into bsc_erigon35
blxdyx Jul 18, 2024
6231a93
Caplin: Remove TmpDB from `BlockCollector` (#11215)
Giulio2002 Jul 18, 2024
24671cb
upstrem
blxdyx Jul 18, 2024
801ab22
Attempt to use go21 (#11207)
AskAlexSharov Jul 18, 2024
80415a4
post validator balances (#11218)
domiwei Jul 18, 2024
086e770
eth/stagedsync: polygon sync stage to use new heimdall service (#11196)
taratorio Jul 18, 2024
50b09ad
polygon/heimdall: remove old duplicate heimdall component (#11214)
taratorio Jul 18, 2024
9f3101e
enable `madv_normal` for .kv files of > 0 lvl (#11223)
AskAlexSharov Jul 18, 2024
af719e3
Move from ledgerwatch to erigontech (#11224)
yperbasis Jul 18, 2024
9afaab4
add log
blxdyx Jul 18, 2024
3f58fdd
add log
blxdyx Jul 18, 2024
22445f3
erigon-lib: tidy up slices,generics,cmp commons (#11216)
taratorio Jul 18, 2024
63621ec
Update module path of erigonwatch to erigontech (#11226)
yperbasis Jul 18, 2024
752bf4d
Fix previous download completion processing (#11227)
mh0lt Jul 19, 2024
8f49bb0
Bring back dirs to BaseAPI (#11228)
antonis19 Jul 19, 2024
c6e6f4f
Logs checking (#11229)
JkLondon Jul 19, 2024
df4e640
ots: nil-ptr in rpc (#11232)
AskAlexSharov Jul 19, 2024
3bbd8aa
txpool changes for set_code_tx support (#11235)
sudeepdino008 Jul 19, 2024
af2a4a0
Erigon 3.0: Smarter full and minimal nodes (#11220)
Giulio2002 Jul 19, 2024
492d456
add log
blxdyx Jul 20, 2024
badf7fa
add log
blxdyx Jul 20, 2024
a0e328b
added var inside WriteMap for chain-like interface (#11241)
JkLondon Jul 20, 2024
18deb96
tracer: add support bailout on evm.create() (#11237)
lupin012 Jul 20, 2024
1bd3dc5
added rpc info feature (#11242)
JkLondon Jul 20, 2024
743adcf
[test] remove unused variables (#10938)
Leeyqiongyuan Jul 20, 2024
2f9dbf0
force fsync after notifications sent (#11244)
AskAlexSharov Jul 21, 2024
bab36ea
Fixed nil pointer exception (#11253)
Giulio2002 Jul 21, 2024
5289acc
fix panic due to nil validator set (#11260)
domiwei Jul 21, 2024
9aa37a0
qa-tests: increase test time of sync-from-scratch for minimal node (#…
mriccobene Jul 22, 2024
e761db4
qa-tests: fix sync-from-scratch test result uploading (#11245)
mriccobene Jul 22, 2024
dcc686e
Caplin: Add support for beacon snapshots (also stops relying on Engin…
Giulio2002 Jul 22, 2024
9327df7
add log
blxdyx Jul 22, 2024
3eca101
fix chapel bt hash
blxdyx Jul 22, 2024
e6bedcc
rm prints (#11261)
AskAlexSharov Jul 22, 2024
0f43871
fix chapel bt hash
blxdyx Jul 22, 2024
0390616
Enable `madv_normal` for level0 .kv (#11265)
AskAlexSharov Jul 22, 2024
11c47f1
HexOrDecimal - to accept unquoted numbers - in json (e3) (#11262)
AskAlexSharov Jul 22, 2024
b2e4464
e3: make getLatest layers visible in pprof (#11266)
AskAlexSharov Jul 22, 2024
9321f99
hack to prevent early download finish (#11267)
AskAlexSharov Jul 22, 2024
a3875dc
add log
blxdyx Jul 22, 2024
df99a5b
add log
blxdyx Jul 22, 2024
6923efa
add log
blxdyx Jul 22, 2024
856eec5
add log
blxdyx Jul 22, 2024
601310f
add log
blxdyx Jul 22, 2024
eefe690
add log
blxdyx Jul 22, 2024
cb6f4dc
add log
blxdyx Jul 22, 2024
3ee2fca
add log
blxdyx Jul 22, 2024
7982223
add log
blxdyx Jul 22, 2024
7748030
Wire OverridePragueTime into txpool (#11234)
yperbasis Jul 22, 2024
3f9d0d6
readme update (#11275)
AskAlexSharov Jul 22, 2024
9316c6e
diag: race in updateIndexingStatus (#11274)
AskAlexSharov Jul 22, 2024
1f7ce84
Bump version to 3.0.0-alpha1 (#11276)
VBulikov Jul 22, 2024
cc2dea4
fix body data
blxdyx Jul 22, 2024
e2df678
fix goreleaser after update (#11281)
yperbasis Jul 22, 2024
3620271
fix body data
blxdyx Jul 23, 2024
e934781
fix body data
blxdyx Jul 23, 2024
35fbbcc
Merge remote-tracking branch 'ledgerwatch/main' into bsc_erigon35
blxdyx Jul 23, 2024
3f3e164
bor: loopbreaker - to stop check `LoopBlockLimit` and rely on stage_h…
AskAlexSharov Jul 23, 2024
2c86b3f
Special logs for near-chain-tip execution (#11288)
AskAlexSharov Jul 23, 2024
2f8b0ef
fix upstream
blxdyx Jul 23, 2024
e1bd4d2
e3 use same goreleaser-cross version as in e2 (#11285)
AskAlexSharov Jul 23, 2024
6892e4e
add bool variable to auto-release (#11290)
AskAlexSharov Jul 23, 2024
6df3f87
on chain-tip: if batch is full - stop execution stage - to allow comm…
AskAlexSharov Jul 23, 2024
7c624d0
add log
blxdyx Jul 23, 2024
729aed1
PIP-35: enforce 25gwei gas config for all polygon chains (#11294)
manav2401 Jul 23, 2024
62ed361
refactor: rename fields in hex patricia trie (#11296)
antonis19 Jul 24, 2024
8396e47
add log
blxdyx Jul 24, 2024
f1d004b
add log
blxdyx Jul 24, 2024
19c571b
add log
blxdyx Jul 24, 2024
842b5f7
new dirWalk for test purposes (#11277)
JkLondon Jul 24, 2024
4363e98
chore: fix some comments (#11273)
yingshanghuangqiao Jul 24, 2024
9f0fcd2
remove useless logs
blxdyx Jul 24, 2024
ead0830
Merge remote-tracking branch 'ledgerwatch/main' into bsc_erigon35
blxdyx Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ steps:
- command: './nightly.sh'
label: 'build & run geth'
env:
BUILDKITE_GOLANG_IMPORT_PATH: "github.com/ledgerwatch/erigon"
BUILDKITE_GOLANG_IMPORT_PATH: "github.com/erigontech/erigon"
6 changes: 3 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ smallest of fixes!
If you'd like to contribute to Erigon, please fork, fix, commit and send a
pull request for the maintainers to review and merge into the main code base. If
you wish to submit more complex changes though, please check up with the core
devs first on [Discord server](https://github.com/ledgerwatch/erigon#erigon-discord-server) to
devs first on [Discord server](https://github.com/erigontech/erigon#erigon-discord-server) to
ensure those changes are in line with the general philosophy of the project
and/or get some early feedback which can make both your efforts much lighter as
well as our review and merge procedures quick and simple.
Expand All @@ -30,11 +30,11 @@ Please make sure your contributions adhere to our coding guidelines:
Before you submit a feature request, please check and make sure that it isn't
possible through some other means. The JavaScript-enabled console is a powerful
feature in the right hands. Please check our
[Wiki page](https://github.com/ledgerwatch/erigon/wiki) for more info
[Wiki page](https://github.com/erigontech/erigon/wiki) for more info
and help.

## Configuration, dependencies, and tests

Please see the [Readme](https://github.com/ledgerwatch/erigon#readme) file
Please see the [Readme](https://github.com/erigontech/erigon#readme) file
for more details on configuring your environment, managing project dependencies
and testing procedures.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ labels: 'type:docs'
assignees: ''
---

This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [Erigon's discord](https://github.com/ledgerwatch/erigon#erigon-discord-server).
This should only be used in very rare cases e.g. if you are not 100% sure if something is a bug or asking a question that leads to improving the documentation. For general questions please use [Erigon's discord](https://github.com/erigontech/erigon#erigon-discord-server).
2 changes: 1 addition & 1 deletion .github/workflows/docker-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
make release-dry-run
docker images
# docker image push --all-tags thorax/erigon
# docker image push --all-tags ghcr.io/ledgerwatch/erigon
# docker image push --all-tags ghcr.io/erigontech/erigon
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${GITHUB_REF#refs/tags/}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ jobs:
# with:
# fetch-depth: 2 # Ensures we fetch enough history to compare
#
# - name: Is ledgerwatch/erigon-snapshot updated in go.mod # if not, pipeline should exit beacuse grep exit code >0 when no match
# - name: Is erigontech/erigon-snapshot updated in go.mod # if not, pipeline should exit because grep exit code >0 when no match
# run: |
# git diff HEAD~1 HEAD -- go.mod | grep 'github.com/ledgerwatch/erigon-snapshot'
# git diff HEAD~1 HEAD -- go.mod | grep 'github.com/erigontech/erigon-snapshot'

ManifestCheck:
# needs: check-snap-modifications
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/qa-sync-from-scratch-minimal-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ on:
jobs:
minimal-node-sync-from-scratch-test:
runs-on: self-hosted
timeout-minutes: 800
timeout-minutes: 1500 # 25 hours
env:
ERIGON_DATA_DIR: ${{ github.workspace }}/erigon_data
ERIGON_QA_PATH: /home/qarunner/erigon-qa
TRACKING_TIME_SECONDS: 7200 # 2 hours
TOTAL_TIME_SECONDS: 43200 # 12 hours
TOTAL_TIME_SECONDS: 86400 # 24 hours
CHAIN: mainnet

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa-sync-from-scratch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
if: steps.test_step.outputs.test_executed == 'true'
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-${{ env.CHAIN }}
path: ${{ github.workspace }}/result-${{ env.CHAIN }}.json

- name: Action for Success
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Maximize build space
uses: AdityaGarg8/remove-unwanted-software@v1
uses: AdityaGarg8/remove-unwanted-software@v4
with:
remove-dotnet: 'true'
remove-android: 'true'
Expand All @@ -32,7 +32,7 @@ jobs:
fetch-depth: 0

- name: ghcr-login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -45,11 +45,11 @@ jobs:
echo "tag_name=${TAG}" >> $GITHUB_OUTPUT

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3

- run: echo ${{ steps.prepare.outputs.tag_name }}

- name: Run GoReleaser
- name: Release
run: |
make release
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integration-caplin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
tests:
strategy:
matrix:
# disable macos-11 until https://github.com/ledgerwatch/erigon/issues/8789
# disable macos-11 until https://github.com/erigontech/erigon/issues/8789
os: [ ubuntu-22.04 ] # list of os: https://github.com/actions/virtual-environments
runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ linters:
- unused
- performance
disable:
- gosec # enable it after 1-2 weeks. it failing CI withoutt enough info to fix: https://github.com/ledgerwatch/erigon/actions/runs/5928644129/job/16074701625
- gosec # enable it after 1-2 weeks. it failing CI withoutt enough info to fix: https://github.com/erigontech/erigon/actions/runs/5928644129/job/16074701625
- exhaustive
- musttag
- contextcheck
Expand Down
2 changes: 1 addition & 1 deletion DEV_CHAIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Steps to setup and run Erigon dev chain. This tutorial is made for macOS.
Open terminal 1 and type the following command

```bash
git clone --recurse-submodules -j8 https://github.com/ledgerwatch/erigon.git
git clone --recurse-submodules -j8 https://github.com/erigontech/erigon.git
cd erigon
make erigon
```
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://torquem.ch" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/ledgerwatch/erigon.git" \
org.label-schema.vcs-url="https://github.com/erigontech/erigon.git" \
org.label-schema.vendor="Torquem" \
org.label-schema.version=$VERSION

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://torquem.ch" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/ledgerwatch/erigon.git" \
org.label-schema.vcs-url="https://github.com/erigontech/erigon.git" \
org.label-schema.vendor="Torquem" \
org.label-schema.version=$VERSION

Expand Down
22 changes: 16 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,21 @@ CGO_CFLAGS += -DMDBX_DISABLE_VALIDATION=0 # Can disable it on CI by separated PR
#CGO_CFLAGS += -DMDBX_ENABLE_PROFGC=0 # Disabled by default, but may be useful for performance debugging
#CGO_CFLAGS += -DMDBX_ENABLE_PGOP_STAT=0 # Disabled by default, but may be useful for performance debugging
CGO_CFLAGS += -DMDBX_ENV_CHECKPID=0 # Erigon doesn't do fork() syscall
CGO_CFLAGS += -D__BLST_PORTABLE__
CGO_CFLAGS += -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes -Wno-unused-but-set-variable

# If it is arm64 or aarch64, then we need to use portable version of blst. use or with stringw "arm64" and "aarch64" to support both
ifeq ($(shell uname -m), arm64)
CGO_CFLAGS += -D__BLST_PORTABLE__
endif
ifeq ($(shell uname -m), aarch64)
CGO_CFLAGS += -D__BLST_PORTABLE__
endif


CGO_CFLAGS += -Wno-unknown-warning-option -Wno-enum-int-mismatch -Wno-strict-prototypes -Wno-unused-but-set-variable -O3

CGO_LDFLAGS := $(shell $(GO) env CGO_LDFLAGS 2> /dev/null)
CGO_LDFLAGS += -O3 -g

ifeq ($(shell uname -s), Darwin)
ifeq ($(filter-out 13.%,$(shell sw_vers --productVersion)),)
CGO_LDFLAGS += -mmacosx-version-min=13.3
Expand All @@ -44,7 +55,7 @@ GOPRIVATE = github.com/erigontech/silkworm-go

PACKAGE = github.com/node-real/bsc-erigon

GO_FLAGS += -trimpath -tags $(BUILD_TAGS) -buildvcs=false
GO_FLAGS += -trimpath -tags $(BUILD_TAGS) -buildvcs=false
GO_FLAGS += -ldflags "-X ${PACKAGE}/params.GitCommit=${GIT_COMMIT} -X ${PACKAGE}/params.GitBranch=${GIT_BRANCH} -X ${PACKAGE}/params.GitTag=${GIT_TAG}"

GOBUILD = CGO_CFLAGS="$(CGO_CFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" GOPRIVATE="$(GOPRIVATE)" $(GO) build $(GO_FLAGS)
Expand Down Expand Up @@ -281,7 +292,7 @@ release-dry-run: git-submodules
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--clean --skip-validate --skip-publish
--clean --skip=validate --skip=publish

.PHONY: release
release: git-submodules
Expand All @@ -294,8 +305,7 @@ release: git-submodules
-v `pwd`:/go/src/$(PACKAGE_NAME) \
-w /go/src/$(PACKAGE_NAME) \
ghcr.io/goreleaser/goreleaser-cross:${GOLANG_CROSS_VERSION} \
--clean --skip-validate

--clean --skip=validate

# since DOCKER_UID, DOCKER_GID are default initialized to the current user uid/gid,
# we need separate envvars to facilitate creation of the erigon user on the host OS.
Expand Down
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ An accessible and complete version of the documentation is available at **[erigo
**.
<br>

![Build status](https://github.com/ledgerwatch/erigon/actions/workflows/ci.yml/badge.svg) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=ledgerwatch_erigon&metric=coverage)](https://sonarcloud.io/summary/new_code?id=ledgerwatch_erigon)
![Build status](https://github.com/erigontech/erigon/actions/workflows/ci.yml/badge.svg) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=erigontech_erigon&metric=coverage)](https://sonarcloud.io/summary/new_code?id=erigontech_erigon)

<!--ts-->

Expand All @@ -19,7 +19,7 @@ An accessible and complete version of the documentation is available at **[erigo
+ [Testnets](#testnets)
+ [Block Production](#block-production-pow-miner-or-pos-validator)
+ [Windows](#windows)
+ [GoDoc](https://godoc.org/github.com/ledgerwatch/erigon)
+ [GoDoc](https://godoc.org/github.com/erigontech/erigon)
+ [Beacon Chain](#beacon-chain-consensus-layer)
+ [Dev Chain](#dev-chain)
+ [Caplin (Internal Consensus Layer)](#caplin)
Expand Down Expand Up @@ -86,18 +86,18 @@ Building erigon requires both a Go (version 1.21 or later) and a C compiler (GCC
For building the latest release (this will be suitable for most users just wanting to run a node):

```sh
git clone --branch release/<x.xx> --single-branch https://github.com/ledgerwatch/erigon.git
git clone --branch release/<x.xx> --single-branch https://github.com/erigontech/erigon.git
cd erigon
make erigon
./build/bin/erigon
```

You can check [the list of releases](https://github.com/ledgerwatch/erigon/releases) for release notes.
You can check [the list of releases](https://github.com/erigontech/erigon/releases) for release notes.

For building the bleeding edge development branch:

```sh
git clone --recurse-submodules https://github.com/ledgerwatch/erigon.git
git clone --recurse-submodules https://github.com/erigontech/erigon.git
cd erigon
git checkout main
make erigon
Expand Down Expand Up @@ -181,7 +181,7 @@ If you would like to give Erigon a try, but do not have spare 2TB on your drive,
of the public testnets, Sepolia. It syncs much quicker, and does not take so much disk space:

```sh
git clone --recurse-submodules -j8 https://github.com/ledgerwatch/erigon.git
git clone --recurse-submodules -j8 https://github.com/erigontech/erigon.git
cd erigon
make erigon
./build/bin/erigon --datadir=<your_datadir> --chain=sepolia
Expand Down Expand Up @@ -363,7 +363,7 @@ Key features
============

<code>🔬 See more
detailed [overview of functionality and current limitations](https://ledgerwatch.github.io/turbo_geth_release.html). It
detailed [overview of functionality and current limitations](https://erigontech.github.io/turbo_geth_release.html). It
is being updated on recurring basis.</code>

### More Efficient State Storage
Expand All @@ -375,7 +375,7 @@ is being updated on recurring basis.</code>
**Preprocessing**. For some operations, Erigon uses temporary files to preprocess data before inserting it into the main
DB. That reduces write amplification and DB inserts are orders of magnitude quicker.

<code> 🔬 See our detailed ETL explanation [here](https://github.com/ledgerwatch/erigon-lib/blob/main/etl/README.md).</code>
<code> 🔬 See our detailed ETL explanation [here](https://github.com/erigontech/erigon-lib/blob/main/etl/README.md).</code>

**Plain state**.

Expand Down Expand Up @@ -522,7 +522,7 @@ sudo -u ${ERIGON_USER} DOCKER_UID=$(id -u ${ERIGON_USER}) DOCKER_GID=$(id -g ${E

Makefile creates the initial directories for erigon, prometheus and grafana. The PID namespace is shared between erigon
and rpcdaemon which is required to open Erigon's DB from another process (RPCDaemon local-mode).
See: https://github.com/ledgerwatch/erigon/pull/2392/files
See: https://github.com/erigontech/erigon/pull/2392/files

If your docker installation requires the docker daemon to run as root (which is by default), you will need to prefix
the command above with `sudo`. However, it is sometimes recommended running docker (and therefore its containers) as a
Expand Down Expand Up @@ -689,7 +689,7 @@ https://github.com/mathMakesArt/Erigon-on-RPi-4

### How to change db pagesize

[post](https://github.com/ledgerwatch/erigon/blob/main/cmd/integration/Readme.md#copy-data-to-another-db)
[post](https://github.com/erigontech/erigon/blob/main/cmd/integration/Readme.md#copy-data-to-another-db)


Getting in touch
Expand Down Expand Up @@ -744,7 +744,7 @@ Next tools show correct memory usage of Erigon:

### Blocks Execution is slow on cloud-network-drives

Please read https://github.com/ledgerwatch/erigon/issues/1516#issuecomment-811958891
Please read https://github.com/erigontech/erigon/issues/1516#issuecomment-811958891
In short: network-disks are bad for blocks execution - because blocks execution reading data from db non-parallel
non-batched way.

Expand Down Expand Up @@ -786,18 +786,17 @@ Supported networks: all (except Mumbai).
- E3 can execute 1 historical transaction - without executing it's block - because history/indices have
transaction-granularity, instead of block-granularity.
- E3 doesn't store Logs (aka Receipts) - it always re-executing historical txn (but it's cheaper then in E2 - see point
above). Known perf issues: https://github.com/ledgerwatch/erigon/issues/10747
above). Known perf issues: https://github.com/erigontech/erigon/issues/10747
- `--sync.loop.block.limit` is enabled by default. (Default: `5_000`.
Set `--sync.loop.block.limit=10_000 --batchSize=1g` to increase sync speed on good hardware).
Set `--sync.loop.block.limit=10_000 --batchSize=2g` to increase sync speed on good hardware).
- datadir/chaindata is small now - to prevent it's grow: we recommend set `--batchSize <= 2G`. And it's fine
to `rm -rf chaindata`
- can symlink/mount latest state to fast drive and history to cheap drive
- ArchiveNode is default. FullNode same as in E2: --prune=hrtc
- Archive Node is default. Full Node: `--prune.mode=full`, Minimal Node (EIP-4444): `--prune.mode=minimal`

### Known Problems of E3:

- don't `rm -rf downloader` - it will cause re-downloading of files: https://github.com/ledgerwatch/erigon/issues/10976
- `eth_getLogs` fields `index` always 0: https://github.com/ledgerwatch/erigon/issues/10324
- don't `rm -rf downloader` - it will cause re-downloading of files: https://github.com/erigontech/erigon/issues/10976

### E3 datadir structure

Expand Down
2 changes: 1 addition & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ ERROR[03-24|13:49:53.343] Ethereum peer removal failed peer=bfa4a38e
```

The second error happens during the unwinding the `TxPool` stage. It has been reported in this
issue: https://github.com/ledgerwatch/erigon/issues/848
issue: https://github.com/erigontech/erigon/issues/848

```
ERROR[08-01|14:30:38.297] Demoting invalidated transaction hash="6ee8a8…92bf22"
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/abi.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
"fmt"
"io"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/erigontech/erigon-lib/common"

"github.com/ledgerwatch/erigon/crypto"
"github.com/erigontech/erigon/crypto"
)

// The ABI holds information about a contract's context and available
Expand Down
8 changes: 4 additions & 4 deletions accounts/abi/abi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ import (
"strings"
"testing"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/erigontech/erigon-lib/common"

"github.com/ledgerwatch/erigon/common"
"github.com/ledgerwatch/erigon/common/math"
"github.com/ledgerwatch/erigon/crypto"
"github.com/erigontech/erigon/common"
"github.com/erigontech/erigon/common/math"
"github.com/erigontech/erigon/crypto"
)

const jsondata = `
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"errors"
"math/big"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/erigontech/erigon-lib/common"

"github.com/ledgerwatch/erigon/core/types"
"github.com/ledgerwatch/erigon/crypto"
"github.com/erigontech/erigon/core/types"
"github.com/erigontech/erigon/crypto"
)

// ErrNoChainID is returned whenever the user failed to specify a chain id.
Expand Down
6 changes: 3 additions & 3 deletions accounts/abi/bind/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ import (
"errors"
"math/big"

libcommon "github.com/ledgerwatch/erigon-lib/common"
libcommon "github.com/erigontech/erigon-lib/common"

ethereum "github.com/ledgerwatch/erigon"
"github.com/ledgerwatch/erigon/core/types"
ethereum "github.com/erigontech/erigon"
"github.com/erigontech/erigon/core/types"
)

var (
Expand Down
Loading