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 alpha2 #471

Merged
merged 209 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 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
6231a93
Caplin: Remove TmpDB from `BlockCollector` (#11215)
Giulio2002 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
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
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
e6bedcc
rm prints (#11261)
AskAlexSharov 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
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
e2df678
fix goreleaser after update (#11281)
yperbasis Jul 22, 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
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
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
842b5f7
new dirWalk for test purposes (#11277)
JkLondon Jul 24, 2024
4363e98
chore: fix some comments (#11273)
yingshanghuangqiao Jul 24, 2024
6a0e494
Erigon3: Added Mgas/sec metric (#11298)
Giulio2002 Jul 24, 2024
a85b909
bor: don't produce bor files (#11307)
AskAlexSharov Jul 24, 2024
a8af32d
E3: Fixed and simplified block snapshot pruning (#11313)
Giulio2002 Jul 24, 2024
72d1ff8
Erigon 3: Parallel state flushing (#11300)
Giulio2002 Jul 25, 2024
ab28c04
Add downloader hash, flush and complete metrics (#11308)
mh0lt Jul 25, 2024
02c181b
diagnostics: syncstats lock issue (#11319)
dvovk Jul 25, 2024
1bf33b6
Caplin: Added electra config support (#11301)
Giulio2002 Jul 25, 2024
7e74b5c
Erigon 3: Added `--all` flag to `downloader` to generate downloader f…
Giulio2002 Jul 25, 2024
776a386
diagnostics: refactor snapshot indexing (#11331)
dvovk Jul 26, 2024
250836a
block files: don't compress 1k and 10k files (#11222)
AskAlexSharov Jul 26, 2024
85c2310
move docs link higher (#11333)
AskAlexSharov Jul 26, 2024
7b0223b
remove couple old `hack.go` methods (#11332)
AskAlexSharov Jul 26, 2024
04fa127
remove one param from stage exec (#11323)
AskAlexSharov Jul 26, 2024
3adb5d1
remove stage_call_trace, stage_index, stage_log_index (#11305)
AskAlexSharov Jul 26, 2024
4278f46
polygon: move valset logic inside valset package (#11340)
taratorio Jul 26, 2024
5a21f25
polygon: move label and tableCfg as attributes (#11343)
taratorio Jul 26, 2024
5958110
e3: eth_getLogs panic fix (#11337)
AskAlexSharov Jul 26, 2024
7931ce9
polygon/heimdall: add observer options (#11341)
taratorio Jul 26, 2024
55ea23d
bplus index inefficient warmup (#10889)
awskii Jul 26, 2024
53b0592
set debug log level for bt warmup (#11353)
awskii Jul 27, 2024
4376f91
Caplin: Fixed underflow (#11352)
Giulio2002 Jul 27, 2024
64119f1
Use the same data type as go-ethereum in the stateDiff override for e…
boyuan-chen Jul 27, 2024
6ad8032
rpc: remove not-useful logs line (#11360)
AskAlexSharov Jul 27, 2024
2c7a9e5
sn: amoy less files (#11359)
AskAlexSharov Jul 27, 2024
3d47b2e
consensus: use slices/maps.Clone (#11363)
estensen Jul 27, 2024
21ffa64
upgrade actions to latest (#11364)
estensen Jul 27, 2024
fc93e2f
qa-tests: add holesky to sync-from-scratch test (#11366)
mriccobene Jul 27, 2024
dd73084
bor: "header not found" add debug logs (e3) (#11357)
AskAlexSharov Jul 27, 2024
934a0ae
Fixed underflow for real this time (#11367)
Giulio2002 Jul 27, 2024
06073d9
doc: fix KV path in DupSort (#11369)
RealMaxing Jul 27, 2024
a15d74f
Enable wastedassign linter (#11365)
estensen Jul 27, 2024
be1a349
callTracer: dont capture logs txs failed with error (#11356)
AskAlexSharov Jul 28, 2024
0bb8970
Removed MatchPrefix fixed other Match functions (#11345)
JkLondon Jul 28, 2024
71e113f
mdbx writemap flag (#11238)
JkLondon Jul 29, 2024
1cd18e7
Use slices.contains (#11380)
estensen Jul 29, 2024
85ce691
Enable perfsprint linter (#11379)
estensen Jul 29, 2024
03782e3
polygon/bridge: Fix bridge crash at chain tip (#11320)
shohamc1 Jul 29, 2024
8a864a0
Use big.Sign to compare with zero (#11383)
estensen Jul 29, 2024
872c902
Simplify RemoveContents (#11310)
JkLondon Jul 29, 2024
9337209
core/types: Fix JSON (un)marshalling of request types (#11346)
somnathb1 Jul 29, 2024
7abf606
Correct attestation aggregation while producing block (#11388)
domiwei Jul 29, 2024
547cb95
remove e2 stages constants (#11358)
AskAlexSharov Jul 29, 2024
b39f0e6
remove dependency on docker - by vendoring `reexec` (#11334)
AskAlexSharov Jul 29, 2024
07406d8
enable TestTxPoolContent (#11372)
AskAlexSharov Jul 29, 2024
ac70cb5
remove several EnableHistoryV4InTest checks (#11373)
AskAlexSharov Jul 29, 2024
7566807
main linter fix (#11393)
AskAlexSharov Jul 29, 2024
979714b
monitor attester hit/miss (#11316)
domiwei Jul 29, 2024
2d5b9cb
`ReopenSegments` must not close other files (#11389)
AskAlexSharov Jul 30, 2024
9de82f9
polygon/bridge: Set correct time limit (#11382)
shohamc1 Jul 30, 2024
34a4f7f
polygon/bridge: Set last event ID (#11397)
shohamc1 Jul 30, 2024
a1a05a4
Don't break bor_heimdall stage if behind bodies (#11351)
mh0lt Jul 30, 2024
a47b840
stage_bor_heimdall: remove loopBreaker (#11396)
AskAlexSharov Jul 30, 2024
0430d01
polygon: sync stage fix blockRangeEntitiesFromBlockNum (#11348)
taratorio Jul 30, 2024
c4d1675
release smaller files: all chains except gnosis (#11401)
AskAlexSharov Jul 30, 2024
402467a
engineapi: Update interface and Rpc conversion for EIP-7685 Requests …
somnathb1 Jul 30, 2024
7bbcef0
Remove support for Mumbai (#11390)
yperbasis Jul 30, 2024
9062d56
stagedsync: remove loopBreakCheck (#11402)
taratorio Jul 30, 2024
5e4478f
README: fix the ETL path (#11392)
RealMaxing Jul 30, 2024
e545081
Use the actual datadir when using init for custom network (#11406)
skylenet Jul 30, 2024
f857eee
monitor block proposer hit/miss count (#11404)
domiwei Jul 30, 2024
3d37d78
Caplin: Introduced cached merkle tree (#11096)
Giulio2002 Jul 30, 2024
92fb732
Evergreen (#11370)
Giulio2002 Jul 31, 2024
1093c7d
astrid: fix for polygon sync stage bor events nil ptr (#11407)
taratorio Jul 31, 2024
514a841
Remove redundant zero checks in instructions (#11405)
estensen Jul 31, 2024
67824b0
Erasing tmp dirs and move dirs declaration on the lvl higher (#11269)
JkLondon Jul 31, 2024
386d960
changed http interface to local (#11415)
dvovk Jul 31, 2024
9cf1b2a
polygon/heimdall: Add `ok` to output (#11399)
shohamc1 Jul 31, 2024
14c5d26
dl: don't close `roSnapshots` objects while files download (#11416)
AskAlexSharov Jul 31, 2024
5864120
Fix panic in caplin api get validator (#11419)
domiwei Jul 31, 2024
45d33cd
diagnostics: updated cpu info (#11422)
dvovk Aug 1, 2024
66370d7
diagnostics: ram info update (#11423)
dvovk Aug 1, 2024
29b9320
Metrics for levelled domain files access (#11427)
awskii Aug 1, 2024
cd7f008
e3: remove e1 cli flag (#11403)
AskAlexSharov Aug 1, 2024
29dc5e5
Caplin: Fixed first sync of caplin archive with double downloader rou…
Giulio2002 Aug 1, 2024
ea9c611
polygon/sync: Enable execution (#11398)
shohamc1 Aug 1, 2024
4b0162a
polygon: Fix interface arguments (#11435)
shohamc1 Aug 1, 2024
d0b118f
Rename `itemCtx` to `visibleFile` (#11431)
AskAlexSharov Aug 1, 2024
693ff6a
enable `TestBlockchainEIP` (#11441)
awskii Aug 1, 2024
a1be406
print reason why file was not counted as clean (#11437)
awskii Aug 1, 2024
0dc147d
`commitment`: do not sort trie branch updates (#11438)
awskii Aug 1, 2024
e598655
`Comitment`: Updates refactor (#11439)
awskii Aug 1, 2024
8ac157c
Caplin: Fix uint64 slice MPT (#11421)
Giulio2002 Aug 1, 2024
a95b632
`Commitment`: sort hashed keys at first seen (#11440)
awskii Aug 1, 2024
c9c5225
Erigon3: Fix prohibition check (#11443)
Giulio2002 Aug 1, 2024
cddadda
Caplin: Refactored Finite state machine implementation (#11408)
Giulio2002 Aug 1, 2024
f36d59a
fix: typos (#11442)
omahs Aug 1, 2024
f340aaf
Warn if chaindata is corrupt (#11447)
Giulio2002 Aug 2, 2024
cd6f4ab
E3: Better backward compatibility for evergreen (fixes headerdownload…
Giulio2002 Aug 2, 2024
ef6c6ab
Pick up latest snapshots (#11455)
yperbasis Aug 2, 2024
be63925
`downloader --seedbox` to support OtterSync (#11449)
AskAlexSharov Aug 2, 2024
3604490
block files: use native `map` instead of `btree.Map` (#11434)
AskAlexSharov Aug 2, 2024
d3112dc
update common tests to 14.0 (#11000)
sudeepdino008 Aug 2, 2024
3ba599d
Implement HistoryRange in KvServer (#11460)
canepat Aug 2, 2024
9ccc6df
Fix json name for deposit contract address (#11466)
somnathb1 Aug 2, 2024
3f279c9
engineapi: Only update req root for pectra+ (#11467)
somnathb1 Aug 2, 2024
7a578cc
polygon/bridge: Use `atomic` (#11451)
shohamc1 Aug 2, 2024
53f769f
diagnostics: collect diskinfo for macos (#11468)
dvovk Aug 3, 2024
e87ba5b
Add receipts generator to `mock` (#11452)
AskAlexSharov Aug 3, 2024
cf93e50
Revert "block files: use native `map` instead of `btree.Map`" (#11469)
AskAlexSharov Aug 3, 2024
19dc547
fix: update mpt document logic (#11470)
flame4 Aug 3, 2024
18cc015
Erigon 3: Fixed InMemExec in slow machines (#11471)
Giulio2002 Aug 3, 2024
ffbac7f
Caplin: Added sync from scratch and resuming node without checkpoint …
Giulio2002 Aug 3, 2024
b85ab18
Caplin: Fixed pruning algorithm (#11472)
Giulio2002 Aug 3, 2024
1522434
Less CodeHash casts (#11476)
AskAlexSharov Aug 4, 2024
faa564e
metric about kv file level fix (#11474)
AskAlexSharov Aug 4, 2024
ba32ef3
added receipts assertion (#11486)
JkLondon Aug 5, 2024
380e128
turbo/snapshotsync: Fmt fix (#11493)
somnathb1 Aug 5, 2024
3fdd901
stagedsync: Fix nil panic on custom chains (#11495)
somnathb1 Aug 6, 2024
6f20be6
snapcfg: should not panic on empty network name (#11496)
somnathb1 Aug 6, 2024
44adef3
e3: kv_get metrics optimize (#11480)
AskAlexSharov Aug 6, 2024
d8e782f
polygon/bridge: Return nil, nil when map is not found (#11498)
shohamc1 Aug 6, 2024
8cfb944
engineapi: Remove redundant nil check (#11500)
somnathb1 Aug 6, 2024
6124a58
Bump version to 3.0.0-alpha2 (#11502)
VBulikov Aug 6, 2024
264014d
polygon/heimdall: accumulated proposer priorities from spans (#11339)
taratorio Aug 6, 2024
1c07a73
less prune on-chain tip - per cycle (#11505)
AskAlexSharov Aug 6, 2024
caabafc
diagnostics: updated sys info to include CPU stats (#11497)
dvovk Aug 6, 2024
7559968
polygon/sync: fix block too soon error (#11499)
taratorio Aug 6, 2024
2038c79
commitment: use Update for domain IO (#11445)
awskii Aug 6, 2024
e4a9ba6
polygon/bridge: Integrate bridge with RPC (#11484)
shohamc1 Aug 6, 2024
1f4656f
properly support event stream (#11483)
domiwei Aug 6, 2024
dacec72
Merge remote-tracking branch 'ledgerwatch/main' into upsteam_alpha2
blxdyx Aug 7, 2024
370fe9f
Upstream erigon3 alpha2
blxdyx Aug 7, 2024
dc56b18
Upstream erigon3 alpha2
blxdyx Aug 7, 2024
6f14cc6
Upstream erigon3 alpha2
blxdyx Aug 7, 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
  •  
  •  
  •  
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install dependencies on Linux
Expand All @@ -58,7 +58,7 @@ jobs:

- name: Install golangci-lint
if: runner.os == 'Linux'
uses: golangci/golangci-lint-action@v4
uses: golangci/golangci-lint-action@v6
with:
version: v1.59.1
skip-build-cache: true
Expand All @@ -73,7 +73,7 @@ jobs:

- name: SonarCloud
if: runner.os == 'Linux'
uses: SonarSource/sonarcloud-github-action@v2.1.1
uses: SonarSource/sonarcloud-github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand All @@ -92,11 +92,11 @@ jobs:
# with:
# minimum-size: 8GB
# - uses: actions/checkout@v4
# - uses: actions/setup-go@v4
# - uses: actions/setup-go@v5
# with:
# go-version: '1.21'

# - uses: actions/cache@v3
# - uses: actions/cache@v4
# with:
# path: |
# C:\ProgramData\chocolatey\lib\mingw
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ jobs:
fetch-depth: 0

- name: dockerhub-login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB }}
password: ${{ secrets.DOCKERHUB_KEY }}
- name: ghcr-login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-qemu-action@v3

- run: |
make release-dry-run
Expand All @@ -38,4 +38,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${GITHUB_REF#refs/tags/}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}
4 changes: 2 additions & 2 deletions .github/workflows/hive-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
done

- name: parse hive results
uses: phoenix-actions/test-reporting@v10
uses: phoenix-actions/test-reporting@v15
with:
name: Tests
path: results-${{ github.run_id }}/*.xml
reporter: java-junit
reporter: java-junit
6 changes: 3 additions & 3 deletions .github/workflows/qa-sync-from-scratch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ on:
jobs:
sync-from-scratch-test:
runs-on: self-hosted
timeout-minutes: 800
timeout-minutes: 1100 # 18 hours plus 20 minutes
strategy:
fail-fast: false
matrix:
chain: [ sepolia, amoy ] # Chain name as specified on the erigon command line
chain: [ sepolia, holesky, amoy ] # Chain name as specified on the erigon command line
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: 57600 # 16 hours
CHAIN: ${{ matrix.chain }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-erigon-is-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install dependencies on Linux
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-integration-caplin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install dependencies on Linux
Expand All @@ -42,11 +42,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
C:\ProgramData\chocolatey\lib\mingw
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Install dependencies on Linux
Expand All @@ -48,11 +48,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: git submodule update --init --recursive --force
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
C:\ProgramData\chocolatey\lib\mingw
Expand Down
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ linters:
- errchkjson #TODO: enable me
- unused #TODO: enable me
- testifylint #TODO: enable me
- perfsprint #TODO: enable me
- gocheckcompilerdirectives
- protogetter
enable:
- unconvert
# - predeclared #TODO: enable me
# - thelper #TODO: enable me
# - wastedassign
- wastedassign
- gofmt
- gocritic
- perfsprint
# - revive
# - forcetypeassert
# - stylecheck
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,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 @@ -277,7 +277,7 @@ install:
@ls -al "$(DIST)"

PACKAGE_NAME := github.com/node-real/bsc-erigon
GOLANG_CROSS_VERSION ?= v1.21.6
GOLANG_CROSS_VERSION ?= v1.21.5

.PHONY: release-dry-run
release-dry-run: git-submodules
Expand Down
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Erigon

Documentation: **[erigon.gitbook.io](https://erigon.gitbook.io)**

Erigon is an implementation of Ethereum (execution layer with embeddable consensus layer), on the efficiency
frontier. [Archive Node](https://ethereum.org/en/developers/docs/nodes-and-clients/archive-nodes/#what-is-an-archive-node)
by default.

An accessible and complete version of the documentation is available at **[erigon.gitbook.io](https://erigon.gitbook.io)
**.
<br>

![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)
Expand Down Expand Up @@ -63,7 +63,6 @@ System Requirements

* Polygon Mainnet Archive: 8.5TiB (December 2023).
Polygon Mainnet Full node (see [Pruned Node][pruned_node]) with `--prune.*.older 15768000`: 5.1Tb (September 2023).
Polygon Mumbai Archive: 1TB. (April 2022).

SSD or NVMe. Do not recommend HDD - on HDD Erigon will always stay N blocks behind chain tip, but not fall behind.
Bear in mind that SSD performance deteriorates when close to capacity.
Expand All @@ -82,7 +81,6 @@ Usage

### Getting Started

Building erigon requires both a Go (version 1.21 or later) and a C compiler (GCC 10+ or Clang).
For building the latest release (this will be suitable for most users just wanting to run a node):

```sh
Expand Down Expand Up @@ -111,7 +109,7 @@ download speed by flag `--torrent.download.rate=20mb`. <code>🔬 See [Downloade
Use `--datadir` to choose where to store data.

Use `--chain=gnosis` for [Gnosis Chain](https://www.gnosis.io/), `--chain=bor-mainnet` for Polygon Mainnet,
`--chain=mumbai` for Polygon Mumbai and `--chain=amoy` for Polygon Amoy.
and `--chain=amoy` for Polygon Amoy.
For Gnosis Chain you need a [Consensus Layer](#beacon-chain-consensus-layer) client alongside
Erigon (https://docs.gnosischain.com/node/manual/beacon).

Expand Down Expand Up @@ -363,7 +361,7 @@ Key features
============

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

### More Efficient State Storage
Expand All @@ -375,7 +373,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/erigontech/erigon-lib/blob/main/etl/README.md).</code>
<code> 🔬 See our detailed ETL explanation [here](https://github.com/erigontech/erigon/blob/main/erigon-lib/etl/README.md).</code>

**Plain state**.

Expand Down Expand Up @@ -776,7 +774,7 @@ Golang 1.21

Almost all RPC methods are implemented - if something doesn't work - just drop it on our head.

Supported networks: all (except Mumbai).
Supported networks: all.

### E3 changes from E2:

Expand Down
7 changes: 4 additions & 3 deletions accounts/abi/argument.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package abi

import (
"encoding/json"
"errors"
"fmt"
"reflect"
"strings"
Expand Down Expand Up @@ -82,7 +83,7 @@ func (arguments Arguments) isTuple() bool {
func (arguments Arguments) Unpack(data []byte) ([]interface{}, error) {
if len(data) == 0 {
if len(arguments) != 0 {
return nil, fmt.Errorf("abi: attempting to unmarshall an empty string while arguments are expected")
return nil, errors.New("abi: attempting to unmarshall an empty string while arguments are expected")
}
// Nothing to unmarshal, return default variables
nonIndexedArgs := arguments.NonIndexed()
Expand All @@ -99,11 +100,11 @@ func (arguments Arguments) Unpack(data []byte) ([]interface{}, error) {
func (arguments Arguments) UnpackIntoMap(v map[string]interface{}, data []byte) error {
// Make sure map is not nil
if v == nil {
return fmt.Errorf("abi: cannot unpack into a nil map")
return errors.New("abi: cannot unpack into a nil map")
}
if len(data) == 0 {
if len(arguments) != 0 {
return fmt.Errorf("abi: attempting to unmarshall an empty string while arguments are expected")
return errors.New("abi: attempting to unmarshall an empty string while arguments are expected")
}
return nil // Nothing to unmarshal, return
}
Expand Down
8 changes: 7 additions & 1 deletion accounts/abi/bind/backends/simulated.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func NewSimulatedBackendWithConfig(t *testing.T, alloc types.GenesisAlloc, confi
engine := ethash.NewFaker()
checkStateRoot := true
m := mock.MockWithGenesisEngine(t, &genesis, engine, false, checkStateRoot)

backend := &SimulatedBackend{
m: m,
prependBlock: m.Genesis,
Expand Down Expand Up @@ -264,6 +265,7 @@ func (b *SimulatedBackend) TransactionReceipt(ctx context.Context, txHash libcom
return nil, err
}
defer tx.Rollback()

// Retrieve the context of the receipt based on the transaction hash
blockNumber, err := rawdb.ReadTxLookupEntry(tx, txHash)
if err != nil {
Expand All @@ -276,8 +278,12 @@ func (b *SimulatedBackend) TransactionReceipt(ctx context.Context, txHash libcom
if err != nil {
return nil, err
}

// Read all the receipts from the block and return the one with the matching hash
receipts := rawdb.ReadReceipts(tx, block, nil)
receipts, err := b.m.ReceiptsReader.GetReceipts(ctx, b.m.ChainConfig, tx, block)
if err != nil {
panic(err)
}
for _, receipt := range receipts {
if receipt.TxHash == txHash {
return receipt, nil
Expand Down
3 changes: 0 additions & 3 deletions accounts/abi/bind/backends/simulated_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,9 +863,6 @@ func TestSimulatedBackend_TransactionReceipt(t *testing.T) {
}
sim.Commit()

if sim.m.HistoryV3 {
return
}
receipt, err := sim.TransactionReceipt(bgCtx, signedTx.Hash())
if err != nil {
t.Errorf("could not get transaction receipt: %v", err)
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/bind/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *libcommon.Address
if opts.Value != nil {
overflow := value.SetFromBig(opts.Value)
if overflow {
return nil, fmt.Errorf("opts.Value higher than 2^256-1")
return nil, errors.New("opts.Value higher than 2^256-1")
}
}
var nonce uint64
Expand All @@ -240,7 +240,7 @@ func (c *BoundContract) transact(opts *TransactOpts, contract *libcommon.Address
}
gasPrice, overflow := uint256.FromBig(gasPriceBig)
if overflow {
return nil, fmt.Errorf("gasPriceBig higher than 2^256-1")
return nil, errors.New("gasPriceBig higher than 2^256-1")
}
gasLimit := opts.GasLimit
if gasLimit == 0 {
Expand Down
2 changes: 1 addition & 1 deletion accounts/abi/reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func mapArgNamesToStructFields(argNames []string, value reflect.Value) (map[stri
structFieldName := ToCamelCase(argName)

if structFieldName == "" {
return nil, fmt.Errorf("abi: purely underscored output cannot unpack to struct")
return nil, errors.New("abi: purely underscored output cannot unpack to struct")
}

// this abi has already been paired, skip it... unless there exists another, yet unassigned
Expand Down
4 changes: 2 additions & 2 deletions accounts/abi/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var (
func NewType(t string, internalType string, components []ArgumentMarshaling) (typ Type, err error) {
// check that array brackets are equal if they exist
if strings.Count(t, "[") != strings.Count(t, "]") {
return Type{}, fmt.Errorf("invalid arg type in abi")
return Type{}, errors.New("invalid arg type in abi")
}
typ.stringKind = t

Expand Down Expand Up @@ -110,7 +110,7 @@ func NewType(t string, internalType string, components []ArgumentMarshaling) (ty
}
typ.stringKind = embeddedType.stringKind + sliced
} else {
return Type{}, fmt.Errorf("invalid formatting of array type")
return Type{}, errors.New("invalid formatting of array type")
}
return typ, err
}
Expand Down
Loading
Loading