-
Notifications
You must be signed in to change notification settings - Fork 8
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.60.2 #106
Upstream v2.60.2 #106
Commits on Apr 1, 2024
-
chore: fix typo in comment (erigontech#9846)
Signed-off-by: stayweek <[email protected]>
stayweek committedApr 1, 2024 Configuration menu - View commit details
-
Copy full SHA for 878f01f - Browse repository at this point
Copy the full SHA 878f01fView commit details
Commits on Apr 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c7330e1 - Browse repository at this point
Copy the full SHA c7330e1View commit details -
downloader: to show more gradual progress when re-hashing/verying fil…
…es (erigontech#9805) we recently changed field which used to measure progress from `t.BytesCompleted()` to `t.Stats().BytesReadData` - and seems it doesn't include "re-hashing" progress - so progress doesn't grow in logs and looks like it's stuck. argument to change - was: `t.BytesCompleted()` is not recommended to use for "download rate calculation". We don't use this field for rate calc, we using it for progress calc
Configuration menu - View commit details
-
Copy full SHA for 06864e0 - Browse repository at this point
Copy the full SHA 06864e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 95c8e37 - Browse repository at this point
Copy the full SHA 95c8e37View commit details
Commits on Apr 4, 2024
-
exitCode 1 when got webseed errs, added report overview in the end (e…
…rigontech#9857) For better integration with GH Actions added overview in the end of reports and exit with code 1 in case when met some errors.
Configuration menu - View commit details
-
Copy full SHA for c351ddc - Browse repository at this point
Copy the full SHA c351ddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed44953 - Browse repository at this point
Copy the full SHA ed44953View commit details -
Caplin: beacon committee subscription api (erigontech#9721)
This pr implements following beacon api https://ethereum.github.io/beacon-APIs/#/Validator/prepareBeaconCommitteeSubnet Steps: 1. once receive committee subscription request, record this subscription info associated with validator index. 2. if `isAggregator` flag is on, prepare internal data structure to collect and aggregate incoming attestation. 3. set expiry and begin to subscribe `beacon_attestation_{subnet}`, so we are capable of receiving attestation data from peer. 4. whenever receive attestation data, try aggregate it if needed.
Configuration menu - View commit details
-
Copy full SHA for b359c26 - Browse repository at this point
Copy the full SHA b359c26View commit details
Commits on Apr 5, 2024
-
txpool: check blob fields only if txn is Blob Tx (erigontech#9859)
Fix erigontech#9834 Let's check and validate blob configurations only if the txn is BlobTx Signed-off-by: jsvisa <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cb755cb - Browse repository at this point
Copy the full SHA cb755cbView commit details -
Caplin: Fixed gaps in blob download (erigontech#9850)
Basically, now in order to mark blobs of a block as downloaded, re-check the blocks payload used to download it against the blob store.
Configuration menu - View commit details
-
Copy full SHA for ed5daf8 - Browse repository at this point
Copy the full SHA ed5daf8View commit details -
Caplin encounters an obstruction caused by CommitteeSubsManagement (e…
…rigontech#9866) missing goroutine
Configuration menu - View commit details
-
Copy full SHA for bb4a054 - Browse repository at this point
Copy the full SHA bb4a054View commit details
Commits on Apr 6, 2024
-
Caplin: Add sync committees aggregation (erigontech#9829)
# Sync Committee Contribution pooling First of all, a distinction: * Sync Committee Messages are single unaggregated messages from a specific validator * Sync Committee Contributions are aggregated messages from many validators. We get these 2 messages from 2 different gossip sources, and then after validating the Gossip rules, we send everything to the pool which aggregate the `sync committee` or `contribution` into another aggregate. ## Sync Committee subscription: /eth/v1/validator/sync_committee_subscriptions The subscription just starts to subscribe to the `Sync Committee`'s Gossip channel. it is actually really simple, here is the pseudo-code for how the subscription happen for each `ValidatorIndex` requested: ```vb Function PostEthV1ValidatorSyncCommitteeSubscriptions Request: ValidatorIndicies []uint64 Get the head state of the blockchain For each subRequest in ValidatorIndicies do Compute the subnets for the validator index from subRequest using the headState For each subnet in syncnets do Construct a topic name for the sync committee subnet Subscribe to the topic with the sync committee subnet the topic with the calculated expiry time in sentinel End Function ``` ### Extras * /eth/v1/validator/contribution_and_proofs - Submit to the node a contribution to be republished on the Gossip. * /eth/v1/validator/sync_committee_contribution - Retrieve a contribution (from the pool) that we have aggregated from the gossip. * /eth/v1/beacon/pool/sync_committees - Submit to the node a sync sync committee messages to be republished on the Gossip. --------- Co-authored-by: Kewei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 183dbf7 - Browse repository at this point
Copy the full SHA 183dbf7View commit details
Commits on Apr 7, 2024
-
Caplin: Fixed network regressions (erigontech#9863)
Basically pruning was overpruning useful blobs which were needed for processing of blocks at chain tip, thus leading to degraded performance. Regressions fixed: 1) Make a copy of `GossipData` so that we do not risk republishing gossip bogus/mem corrupted data as published. (`PublishGossip` takes hold of the data bytes for a long time) 2) Blobs download not showing progress 3) Increase request dial timeout to specs 4) Made `Attestations` routine recoverable 5) Fixed inconsistency in the total active balance cache which caused a panic
Configuration menu - View commit details
-
Copy full SHA for a035c5a - Browse repository at this point
Copy the full SHA a035c5aView commit details -
downloader:
--seedbox
stopped to be self-driven (erigontech#9868)we did make `downloader` more passive (erigon-driven), but it did break `--seedbox` flag also
Configuration menu - View commit details
-
Copy full SHA for 433f4de - Browse repository at this point
Copy the full SHA 433f4deView commit details -
downloader: calling wrong url to download .torrent (erigontech#9867)
- new method `DownloadAndSaveTorrentFile` did download data files instead of .torrent files because `WebSeeds.ByName()` return data urls - not .torrent urls - calling wrong url to download .torrent - save value to disk without `.torrent` suffix - size attack prevention - did return nil err and it stopped webseed scanning
Configuration menu - View commit details
-
Copy full SHA for fbe3a46 - Browse repository at this point
Copy the full SHA fbe3a46View commit details -
New overlays feature for doing ad-hoc simulations of existing contrac…
…ts with modified bytecode (erigontech#9438) In this PR I'm introducing so-called `overlays` for doing ad-hoc state simulations of contracts which replay the state with a modified bytecode for any given block range. The new feature adds two new RPC methods: `overlay_callConstructor` and `overlay_getLogs` I've also added a few bench tests and a new postman collection which checks both new methods for the WETH contract in original and modified version. ## Motivation Overlays allow you to add your custom logic to already deployed contracts and simulate on top of them. With overlays you can create new view functions, modify existing ones, change field visibility, emit new events and query the historical data of any contract with your modified source code. Similar commercial products exist in the space and I believe making this feature opensource in erigon will make it easier for everyone to tinker with it and build new cool things on top of it ✨ ## Usage 1) compile your contract to obtain the new deployment bytecode, append the constructor args at the end, if any 2) call `overlay_callConstructor` with the result from 1) to receive the runtime bytecode 3) call `overlay_getLogs` to simulate new logs, passing 2) as state overrides ([example](https://github.com/crebsy/erigon/blob/devel/cmd/rpcdaemon/postman/Overlay_Testing.json)) 4) call `eth_call` to simulate new view function calls passing 2) as state overrides ## Ad-hoc query performance & historical back-filling The current implementation for ad-hoc range queries of `overlay_getLogs` is optimized so that irrelevant blocks are skipped entirely from the simulation context. This can lead to very fast results of a few minutes or even seconds for simulating the entire historical logs of a contract which makes any infra for back-filling redundant. However, such shortcuts are only effectively working for contracts which are not touching too many blocks of the chain's history. So depending on the contract you're trying to patch, you still might need to create a custom back-filling script which simulates the new logs with e.g. 1000 or 10000 block ranges. As a reference for a "busy" contract the simulation rate for the [Uniswap V2 router ](https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d#code) was ~ 280 blocks/s on a host with 24 cores. So while small block ranges returned relatively quickly, the simulation of the entire historical logs for this contract took a few hours on a single node. I'm not collecting any perf metrics yet for this but this could be easily added in the future for tracking better implementations and insights about contract <-> block distribution. ## Configuration 1) Enable the `ots,overlay` api namespaces by adding it to the `--http.api` flag 2) The implementation of `overlay_getLogs` is parallelized so it's good practice to increase the `--db.read.concurrency` to a higher value, e.g. 256 so other erigon goroutines are not getting blocked. ## Supported networks Tested with ethereum and polygon nodes
Configuration menu - View commit details
-
Copy full SHA for 17da5dd - Browse repository at this point
Copy the full SHA 17da5ddView commit details
Commits on Apr 8, 2024
-
polygon/p2p: fix issues found during testing (erigontech#9872)
Fixes problems found during bor-mainnet sync tests: - FetchHeaders: paging-like fetching of headers from a peer - assumption was that a peer response will contain all e.g. 1024 headers since they can fit in < 2 MB however despite that some peers respond with only 16 headers so we need to send further requests until we get all e.g. 1024 headers - It looks like another assumption didn't hold - when we penalize a peer sentry doesn't generate a disconnect even. For that this PR creates a tracking penalizer that updates the peer tracker with a disconnect. - Removes another wrong incorrect - ErrEmptyBody validation because there are blocks which are empty, e.g. first 100,000k blocks - Sentry SentMessageById was disallowing GetBlockBodiesMsg, this PR fixes this
Configuration menu - View commit details
-
Copy full SHA for dd53519 - Browse repository at this point
Copy the full SHA dd53519View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c851ae - Browse repository at this point
Copy the full SHA 1c851aeView commit details -
Caplin: Refactored state antiquary (erigontech#9876)
This PR separates the data collection layer from the `Antiquary` object to the `beaconStatesCollector`, which hopefully makes the code cleaner. It is still messy, but now we have a proper separation between the logic and the data collection layer. The reason why we have internal buffers here is that MDBX locks the entire database when writing to it, so we need to minimize the time spent in the write lock. So instead of writing the historical states on write transactions and keeping the lock for hours, we accumulate them in memory and write them in a single write transaction.
Configuration menu - View commit details
-
Copy full SHA for faf7a43 - Browse repository at this point
Copy the full SHA faf7a43View commit details -
polygon/sync: fix issues found during testing (erigontech#9873)
Fixes problems found during bor-mainnet sync tests: - sync.Run was missing a for loop for initial sync convergences - temporarily disabling ForkChoiceUpdate execution since we are yet to solve and add missing state sync events and spans - no need to flush storage inside block downloader (better async performance) - logging improvements
Configuration menu - View commit details
-
Copy full SHA for c672452 - Browse repository at this point
Copy the full SHA c672452View commit details -
polygon/heimdall: heimdall improvements after astrid sync tests (erig…
…ontech#9882) - fixes an issue where heimdall polling goroutines get terminated upon a heimdall http err which is incorrect - these polling routines should be kept alive upon errors and errors should simply be logged - adds logging - reduces cyclomatic complexity by extracting logic for polling events, spans, checkpoints --------- Co-authored-by: battlmonstr <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7d05ec1 - Browse repository at this point
Copy the full SHA 7d05ec1View commit details -
dvovk/headers info (erigontech#9748)
- collecting info for "Headers" stage
Configuration menu - View commit details
-
Copy full SHA for 70406e6 - Browse repository at this point
Copy the full SHA 70406e6View commit details
Commits on Apr 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 012199f - Browse repository at this point
Copy the full SHA 012199fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48592ea - Browse repository at this point
Copy the full SHA 48592eaView commit details -
dvovk/networkspeedtest (erigontech#9885)
Implemented a network speed test to run every 180 seconds. This information is crucial for diagnostic tools. It helps us identify if a client is reaching their maximum capacity.
Configuration menu - View commit details
-
Copy full SHA for 32218d9 - Browse repository at this point
Copy the full SHA 32218d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d2cf66 - Browse repository at this point
Copy the full SHA 0d2cf66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56cf84b - Browse repository at this point
Copy the full SHA 56cf84bView commit details
Commits on Apr 10, 2024
-
Fix log index gaps in debug_traceTransaction (erigontech#9827)
Fixes a whim reported in erigontech#9783
Configuration menu - View commit details
-
Copy full SHA for 0f49aab - Browse repository at this point
Copy the full SHA 0f49aabView commit details
Commits on Apr 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ec027f4 - Browse repository at this point
Copy the full SHA ec027f4View commit details -
do not open corrupted file (erigontech#9908)
Do not open files which are bigger than 32 bytes but "has no" words in it.
Configuration menu - View commit details
-
Copy full SHA for 642a80a - Browse repository at this point
Copy the full SHA 642a80aView commit details -
Configuration menu - View commit details
-
Copy full SHA for da015df - Browse repository at this point
Copy the full SHA da015dfView commit details -
p2p/sentry: StatusDataProvider ReadCurrentHeader error (erigontech#9890)
P2P fails on restart because rawdb.ReadCurrentHeader returns a nil header. It looks like ReadHeadHeaderHash fails to find the current header hash. However the correct hash is returned by ReadHeadBlockHash. Let's use ReadHeadBlockHash, because the status needs to report a header for which we have a full block body.
Configuration menu - View commit details
-
Copy full SHA for 63c7118 - Browse repository at this point
Copy the full SHA 63c7118View commit details -
polygon/heimdall: optimise fetch checkpoints (erigontech#9897)
Brings down time to fetch all checkpoints from 4 hours to 42 seconds in combination with maticnetwork/heimdall#1154 ``` DBUG[04-09|21:12:39.754] [bor.heimdall] fetching all checkpoints DBUG[04-09|21:13:10.355] [bor.heimdall] fetching all checkpoints progress page=5 len=40000 DBUG[04-09|21:13:22.061] [bor.heimdall] fetching all checkpoints done len=60474 duration=42.307967083s ```
Configuration menu - View commit details
-
Copy full SHA for e7d5a84 - Browse repository at this point
Copy the full SHA e7d5a84View commit details -
Configuration menu - View commit details
-
Copy full SHA for c648885 - Browse repository at this point
Copy the full SHA c648885View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5891c1 - Browse repository at this point
Copy the full SHA f5891c1View commit details -
Revert "updateForkChoice: support --sync.loop.block.limit (erigontech…
…#9315)" (erigontech#9900) we have this PR in release and don't have in devel Co-authored-by: Andrew Ashikhmin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5d82cf - Browse repository at this point
Copy the full SHA a5d82cfView commit details -
downloader: manual .lock remove may lead to race and creation of data…
… files without .torrent (erigontech#9782) ``` if !prohibited(file) && !exists(file) { create(file) } ``` such pattern is always race - even if `prohibited`/`exists()`/`create()` are atomic inside. to eliminate race - need move towards analog of `CompareAndSwap` - `CreateIfNotProhibited` which in 1 mutex lock will: check_lock, existence, create.
Configuration menu - View commit details
-
Copy full SHA for c756a55 - Browse repository at this point
Copy the full SHA c756a55View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50be88d - Browse repository at this point
Copy the full SHA 50be88dView commit details -
turbo/jsonrpc: improved interface readability (erigontech#9910)
It seems like you need context when implementing `GetModifiedAccountsByHash`. However, it is not specified in the interface.
Configuration menu - View commit details
-
Copy full SHA for f9b9d59 - Browse repository at this point
Copy the full SHA f9b9d59View commit details
Commits on Apr 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 090a65a - Browse repository at this point
Copy the full SHA 090a65aView commit details -
Fix default gas values in
debug_
RPCs (erigontech#9922)When not specified, gas fee cap should default to base fee to prevent errors where gas fee cap is less than block base fee. Fixes erigontech#9870
Configuration menu - View commit details
-
Copy full SHA for 4eed27b - Browse repository at this point
Copy the full SHA 4eed27bView commit details -
caplin: post beacon pool attestations (erigontech#9896)
endpoint: `/eth/v1/beacon/pool/attestations` https://ethereum.github.io/beacon-APIs/#/Beacon/submitPoolAttestations
Configuration menu - View commit details
-
Copy full SHA for 1cbdfe3 - Browse repository at this point
Copy the full SHA 1cbdfe3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 400c9ba - Browse repository at this point
Copy the full SHA 400c9baView commit details -
Configuration menu - View commit details
-
Copy full SHA for 43b20c1 - Browse repository at this point
Copy the full SHA 43b20c1View commit details -
Caplin: wrong IsTopicBeaconAttestation (erigontech#9915)
fix `IsTopicBeaconAttestation ` and slightly revise notifier.
Configuration menu - View commit details
-
Copy full SHA for 1c4a964 - Browse repository at this point
Copy the full SHA 1c4a964View commit details -
qa tests: add snap download test workflow (erigontech#9925)
Starts Erigon from scratch, monitors the snapshot download process and waits for it to complete within 4 hours, reporting times for download and indexing phases. Fails if the download phase doesn't finish on time
Configuration menu - View commit details
-
Copy full SHA for e4b50b7 - Browse repository at this point
Copy the full SHA e4b50b7View commit details -
Updating sync stages metrics along with DB update (erigontech#9907)
- added updating prometheus sync metrics once in 180 seconds log loop erigontech#8438
Configuration menu - View commit details
-
Copy full SHA for 7e85689 - Browse repository at this point
Copy the full SHA 7e85689View commit details -
Add cloudflare app firewall specific headers (erigontech#9904)
This PR adds headers which prevent the cloudflare firewall from banning the downloaders http requests. At the moment these are not obfuscated in the codebase. This should be reviewed before this change is committed to the core repo.
Configuration menu - View commit details
-
Copy full SHA for 6bfa6f8 - Browse repository at this point
Copy the full SHA 6bfa6f8View commit details -
grafana: disable staking (erigontech#9923)
staking - it's some feature to sum 2 graphics - have no idea when it can be useful - only confusing now.
Configuration menu - View commit details
-
Copy full SHA for ef5e3d0 - Browse repository at this point
Copy the full SHA ef5e3d0View commit details -
Refactoring of messages handling (erigontech#9887)
The Gossip Manager is responsible for handling incoming messages from the network and handling those accordingly, if the handling goes well, these messages are then re-gossiped to the rest of the network. The Gossip Manager registers a `Service` object which is responsible for handling the incoming messages. Below is a small graph on how the Gossip Manager works: <img width="754" alt="gossipmanager" src="https://github.com/ledgerwatch/erigon/assets/29233688/57fddf79-b417-4792-8aac-1a08534c1207">
Configuration menu - View commit details
-
Copy full SHA for 771b834 - Browse repository at this point
Copy the full SHA 771b834View commit details -
renaming step2 (erigontech#9920)
- Rename - state.AggregatorV3Context -> state.FilesRoTx - MakeContext() -> BeginFilesRo() - aggCtx -> aggTx - InvertedIndexContext -> InvertedIndexRoTx, ic -> iit - HistoryContext -> HistoryRoTx, hc -> ht - DomainContext -> DomainRoTx, dc -> dt Remove - Aggregator class
Configuration menu - View commit details
-
Copy full SHA for 0f41159 - Browse repository at this point
Copy the full SHA 0f41159View commit details -
Configuration menu - View commit details
-
Copy full SHA for 567d222 - Browse repository at this point
Copy the full SHA 567d222View commit details
Commits on Apr 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 604de2d - Browse repository at this point
Copy the full SHA 604de2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0be04e6 - Browse repository at this point
Copy the full SHA 0be04e6View commit details
Commits on Apr 14, 2024
-
Caplin: Moving more code out of the
ForkChoiceStoire
(erigontech#9933)I also added `EthereumClock` which is an abstraction over ETH 2.0 reliance on `unix.Nano()` for better testing in the future. I just added the `struct` this object is not used anywhere. also had to regenerate some mocks.
Configuration menu - View commit details
-
Copy full SHA for 1d95570 - Browse repository at this point
Copy the full SHA 1d95570View commit details
Commits on Apr 15, 2024
-
Fix older logs pruning (erigontech#9932)
Improves upon erigontech#9913 Closes erigontech#9889
Configuration menu - View commit details
-
Copy full SHA for 1248831 - Browse repository at this point
Copy the full SHA 1248831View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8c498d - Browse repository at this point
Copy the full SHA b8c498dView commit details -
data races running TestMiningBenchmark (erigontech#8704) (erigontech#…
…9926) * fix GrpcServer.p2pServer race * fix HeaderDownload.latestMinedBlockNumber race see erigontech#8704
Configuration menu - View commit details
-
Copy full SHA for fcad3a0 - Browse repository at this point
Copy the full SHA fcad3a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bd378f2 - Browse repository at this point
Copy the full SHA bd378f2View commit details -
p2p/sentry: fix missing disconnect events after penalising a peer (er…
…igontech#9928) Problematic situation `runPeer` blocks on `rw.ReadMsg()`, however in the meantime the peer gets penalised. Expected behaviour the peer to get disconnected and for sentry to generate a Disconnect event Actual behaviour no disconnect event gets generated, peer is stuck in `rw.ReadMsg()` Fix call `pi.peer.Disconnect(reason)` as part of `peerInfo.Remove(reason)` during `Penalize` 1. `Disconnect` sends a disc reason to `p.disc` channel 2. `p.disc` channel is read in `Peer.run` - https://github.com/ledgerwatch/erigon/blob/devel/p2p/peer.go#L279 3. it causes the function to exit and in its defer call close `p.closed` channel 4. `p.closed` channel is used as a closing channel in the `protoRW.closed` in both `ReadMsg` and `WriteMsg` so once it is closed those functions exit
Configuration menu - View commit details
-
Copy full SHA for 890b8b5 - Browse repository at this point
Copy the full SHA 890b8b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 143c9f8 - Browse repository at this point
Copy the full SHA 143c9f8View commit details -
polygon/p2p: remove no longer needed trackingPenalizer (erigontech#9929)
After the fix done in erigontech#9928 trackingPenalizer is no longer needed
Configuration menu - View commit details
-
Copy full SHA for b1efa16 - Browse repository at this point
Copy the full SHA b1efa16View commit details -
polygon/heimdall: use value receiver for checkpoints sort (erigontech…
…#9947) minor tidy up of code I wrote last week
Configuration menu - View commit details
-
Copy full SHA for 1e72f64 - Browse repository at this point
Copy the full SHA 1e72f64View commit details -
Configuration menu - View commit details
-
Copy full SHA for f5692a5 - Browse repository at this point
Copy the full SHA f5692a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a9ce5a - Browse repository at this point
Copy the full SHA 6a9ce5aView commit details
Commits on Apr 16, 2024
-
beacon downloader: improve logging of hashes (erigontech#9951)
``` Gotten unexpected root got="[25 97 1 2 224 23 12 23 98 201 172 124 211 121 115 79 189 245 64 97 147 7 148 171 53 37 124 29 33 89 66 161]" expected=0xf09b99bb8c94f0c631625f020805ff21f111fac6f889fe78b9b91e71c6cf16ce ```
Configuration menu - View commit details
-
Copy full SHA for ac43aa8 - Browse repository at this point
Copy the full SHA ac43aa8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 44c7d04 - Browse repository at this point
Copy the full SHA 44c7d04View commit details -
set default values for diagnostic address and debug address (erigonte…
…ch#9961) Set default values for "debug.addrs" and "diagnostics.addr" to make support command compact: OLD -> ./build/bin/erigon support --debug.addrs localhost:6060 --diagnostics.addr localhost:8080 --diagnostics.sessions 15947373 NEW -> ./build/bin/erigon support --diagnostics.sessions 15947373
Configuration menu - View commit details
-
Copy full SHA for 7e5e5ca - Browse repository at this point
Copy the full SHA 7e5e5caView commit details
Commits on Apr 17, 2024
-
Clarify decompressor opening errors (erigontech#9948)
Introduces `ErrCompressedFileCorrupted`. Those errors should be handled properly inside aggregator and inside different utilities. At least we do not open wrong compressed files but we sometimes want to do some extra on those files (eg during run of a `downloader`)
Configuration menu - View commit details
-
Copy full SHA for 3af7e45 - Browse repository at this point
Copy the full SHA 3af7e45View commit details -
Added downloader http handling and extended logging (erigontech#9962)
* Added cf headers to webseed requests * Extended torrent tequest transport to retry 500+ status responses and count progress and fails * Added internal torrent status logging for stopped and no-progress files
Configuration menu - View commit details
-
Copy full SHA for 2140e2f - Browse repository at this point
Copy the full SHA 2140e2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 618d267 - Browse repository at this point
Copy the full SHA 618d267View commit details -
manifest-verify: skip non-seedable files (erigontech#9939)
Co-authored-by: awskii <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3483551 - Browse repository at this point
Copy the full SHA 3483551View commit details -
p2p/sentry/sentry_multi_client: flag to disable block download code (e…
…rigontech#9957) ### Change ### Adds a `disableBlockDownload` boolean flag to current implementation of sentry multi client to disable built in header and body download funcitonality. ### Long Term ### Long term we are planning to refactor sentry multi client and de-couple it from custom header and body download logic. ### Context ### Astrid uses its own body download logic which is de-coupled from sentry multi client. When both are used at the same time (using `--polygon.sync=true`) there are 2 problematic scenarios: - restarting Astrid takes a very long time due to the init logic of sentry multi client. It calls `HeaderDownload.RecoverFromDb` which is coupled to the Headers stage in the stage loop. So if Astrid has fetched 1 million headers but hasn't committed execution yet then this will result in very slow start up since all 1 million blocks have to be read from the DB. Example logs: ``` [INFO] [04-16|12:55:42.254] [downloader] recover headers from db left=65536 ... [INFO] [04-16|13:03:42.254] [downloader] recover headers from db left=65536 ``` - debug log messages warning about sentry consuming being slow since Astrid does not use `HeaderDownload` and `BodyDownload` so there is nothing consuming the headers and bodies from these data structures. This has no logical impact, however clogs resources. Example logs: ``` [DBUG] [04-16|14:03:15.311] [sentry] consuming is slow, drop 50% of old messages msgID=BLOCK_HEADERS_66 [DBUG] [04-16|14:03:15.311] [sentry] consuming is slow, drop 50% of old messages msgID=BLOCK_HEADERS_66 ```
Configuration menu - View commit details
-
Copy full SHA for bca27f3 - Browse repository at this point
Copy the full SHA bca27f3View commit details -
Fix missing prune log index (erigontech#9968)
Existing prune had some confusing logic (thanks to me). In PR, change the logic to: if receipt, or any individual log in the receipt contains an address in `noPruneContracts` the entire log must be stored and indexed. Also fixes a regression that logs were not getting indexed - this was due to ``` if l.BlockNumber < pruneBlock && cfg.noPruneContracts != nil && !cfg.noPruneContracts[l.Address] { ``` Since the individual log object didn't have the block number - something that shouldn't matter. In PR, change the logic to: Use `blockNum` from outer loop
Configuration menu - View commit details
-
Copy full SHA for e3b87dd - Browse repository at this point
Copy the full SHA e3b87ddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4a578ba - Browse repository at this point
Copy the full SHA 4a578baView commit details -
cmd/integration: log index stage sub command to reset only prune_at p…
…oint (erigontech#9971) --reset clears all the tables associated with a stage, while we just want to reset the prune_at progress to 0 for some situations
Configuration menu - View commit details
-
Copy full SHA for b17aa53 - Browse repository at this point
Copy the full SHA b17aa53View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c5b7f3 - Browse repository at this point
Copy the full SHA 1c5b7f3View commit details
Commits on Apr 18, 2024
-
opening domains/hsit/indices with corrupted files on disk (erigontech…
…#9970) Fixes panic and log prints ``` DBUG[04-17|03:03:11.204] [agg] History.openFiles err="compressed file \"v1-accounts.1344-1408.v\" dictionary is corrupted: size 9.3 GB but no words in it" f=/mnt/erigon/snapshots/history/v1-accounts.1344-1408.v panic: History(code).openFiles: compressed file "v1-code.1344-1408.v" dictionary is corrupted: size 3.9 MB but no words in it goroutine 1 [running]: github.com/ledgerwatch/erigon/cmd/integration/commands.allSnapshots.func1() github.com/ledgerwatch/erigon/cmd/integration/commands/stages.go:1743 +0x4c8 sync.(*Once).doSlow(0xc00102fbc0?, 0xc00102b870?) sync/once.go:74 +0xc2 sync.(*Once).Do(...) sync/once.go:65 github.com/ledgerwatch/erigon/cmd/integration/commands.allSnapshots({0x1ebbe30?, 0x2c90460?}, {0x1ec32a0?, 0xc0004d68c0?}, {0x1ec6508?, 0xc000519f00?}) github.com/ledgerwatch/erigon/cmd/integration/commands/stages.go:1717 +0x90 github.com/ledgerwatch/erigon/cmd/integration/commands.openDB({{0x1ec6508, 0xc0000f1800}, 0xc000df6410, 0x1cb3c98, {0xc000a25290, 0x15}, 0x0, 0x20000000000, 0x40000000, 0xffffffffffffffff, ...}, ...) github.com/ledgerwatch/erigon/cmd/integration/commands/root.go:108 +0x4a5 github.com/ledgerwatch/erigon/cmd/integration/commands.init.func11(0x2b5cbe0, {0x1a0b51f?, 0x4?, 0x1a0b3df?}) github.com/ledgerwatch/erigon/cmd/integration/commands/stages.go:366 +0xea github.com/spf13/cobra.(*Command).execute(0x2b5cbe0, {0xc000895470, 0x3, 0x3}) github.com/spf13/[email protected]/command.go:987 +0xab1 github.com/spf13/cobra.(*Command).ExecuteC(0x2b5c340) github.com/spf13/[email protected]/command.go:1115 +0x3ff github.com/spf13/cobra.(*Command).Execute(...) github.com/spf13/[email protected]/command.go:1039 github.com/spf13/cobra.(*Command).ExecuteContext(0x0?, {0x1ebbf90?, 0xc000df63c0?}) github.com/spf13/[email protected]/command.go:1032 +0x47 main.main() github.com/ledgerwatch/erigon/cmd/integration/main.go:15 +0xe6 ```
Configuration menu - View commit details
-
Copy full SHA for 8d8f88a - Browse repository at this point
Copy the full SHA 8d8f88aView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad69def - Browse repository at this point
Copy the full SHA ad69defView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3730cff - Browse repository at this point
Copy the full SHA 3730cffView commit details -
dvovk/fix speedtest (erigontech#9973)
- put initial speed test inside go routine - passed context to download, upload, latency tests to stop if parent context cancelled - increased test interval to 30 minutes
Configuration menu - View commit details
-
Copy full SHA for c994ca2 - Browse repository at this point
Copy the full SHA c994ca2View commit details -
golangci-lint v1.57.2 (erigontech#9978)
remove some deprecated linters and fields: https://golangci-lint.run/product/changelog/
Configuration menu - View commit details
-
Copy full SHA for c714044 - Browse repository at this point
Copy the full SHA c714044View commit details
Commits on Apr 19, 2024
-
downloader: RecalcStat to not expect that something downloading on sy…
…nced node (erigontech#9984) for erigontech#9940
Configuration menu - View commit details
-
Copy full SHA for 7ad5710 - Browse repository at this point
Copy the full SHA 7ad5710View commit details -
downloader: RecalcStates double-accounting fix (erigontech#9985)
`stats.MetadataReady++` was called outside if and inside
Configuration menu - View commit details
-
Copy full SHA for e364cd1 - Browse repository at this point
Copy the full SHA e364cd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 629514a - Browse repository at this point
Copy the full SHA 629514aView commit details -
downloader: step towards atomic fs (erigontech#9992)
- existence check and creation must be inside same `mutex.Lock` - use ".tmp + rename" trick Example of possible race: ``` [EROR] [04-19|03:33:12.908] Erigon startup err="rename /mnt/erigon/snapshots/v1-000900-001000-transactions.seg.torrent.tmp /mnt/erigon/snapshots/v1-000900-001000-transactions.seg.torrent: no such file or directory" ```
Configuration menu - View commit details
-
Copy full SHA for 77d3aff - Browse repository at this point
Copy the full SHA 77d3affView commit details -
Configuration menu - View commit details
-
Copy full SHA for 991c322 - Browse repository at this point
Copy the full SHA 991c322View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7d67fd - Browse repository at this point
Copy the full SHA e7d67fdView commit details
Commits on Apr 20, 2024
-
mdbx:
Batch()
(erigontech#9999)This task is mostly implemented to be used in `erigon/erigon-lib/downloader/mdbx_piece_completion.go` and maybe in `nodesDB` (where we need many parallel RwTx) I was agains adding this "trick"/"api" last years, because thought that we can implement our App to be more 1-big-rwtx-friendly. And we did it in Erigon - StagedSync. TxPool also did, but with a bit less happy face - by "map+mutex with periodic flush to db". But `anacrolix/torrent` is external library and unlikely will survive such big mind-model-change. Maybe it's time to add `db.Batch()`. #### Batch Rw transactions Each `DB.Update()` waits for disk to commit the writes. This overhead can be minimized by combining multiple updates with the `DB.Batch()` function: ```go err := db.Batch(func(tx *bolt.Tx) error { ... return nil }) ``` Concurrent Batch calls are opportunistically combined into larger transactions. Batch is only useful when there are multiple goroutines calling it. The trade-off is that `Batch` can call the given function multiple times, if parts of the transaction fail. The function must be idempotent and side effects must take effect only after a successful return from `DB.Batch()`. For example: don't display messages from inside the function, instead set variables in the enclosing scope: ```go var id uint64 err := db.Batch(func(tx *bolt.Tx) error { // Find last key in bucket, decode as bigendian uint64, increment // by one, encode back to []byte, and add new key. ... id = newValue return nil }) if err != nil { return ... } fmt.Println("Allocated ID %d", id) ``` ---- Implementation mostly taken from https://github.com/etcd-io/bbolt/?tab=readme-ov-file#batch-read-write-transactions Maybe in future can push-down it to https://github.com/erigontech/mdbx-go
Configuration menu - View commit details
-
Copy full SHA for 122f9f8 - Browse repository at this point
Copy the full SHA 122f9f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 86dd0e5 - Browse repository at this point
Copy the full SHA 86dd0e5View commit details
Commits on Apr 21, 2024
-
Caplin: indexing to use right buf size (erigontech#9998)
- PutUvarint can produce 10 bytes - re-using buffer - faster and less gc
Configuration menu - View commit details
-
Copy full SHA for 54a1609 - Browse repository at this point
Copy the full SHA 54a1609View commit details -
First round of fixes in making gossip publishing good for the validat…
…or: See comment (erigontech#9972) * Fixed and simplified unaggregated bits check. * There are 2 bits on, one for the attester and one for the End-of-bitlist, needed to account for end of bitlist bit * Wrong publishing topic for sync_committee_ messages * Added more Ignore by receiving specific errors to avoid forwarding useless data. * Replaced `validateAttestation` with full message processing * Fixed forwarding of sync committee aggregates * Fixed subnet announcements --------- Co-authored-by: kewei <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 596d54d - Browse repository at this point
Copy the full SHA 596d54dView commit details
Commits on Apr 22, 2024
-
Downloader: atomic-fs to be less smart. if app called - Create() - do…
…n't check .lock. Otherwise can't create .torrent for existing .seg files. (erigontech#10004)
Configuration menu - View commit details
-
Copy full SHA for 3f7cf91 - Browse repository at this point
Copy the full SHA 3f7cf91View commit details -
Implement the optional output field on ots_traceTransaction (erigonte…
…ch#10014) This is for E2. It implements the backward compatible output field for traces on ots_traceTransaction: otterscan/execution-apis#1 It'll be consumed by Otterscan in an upcoming release of this feature: otterscan/otterscan#1530
Configuration menu - View commit details
-
Copy full SHA for 34e8d35 - Browse repository at this point
Copy the full SHA 34e8d35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80513aa - Browse repository at this point
Copy the full SHA 80513aaView commit details -
re-gen mock files (erigontech#10007)
there was error: ``` prog.go:12:2: missing go.sum entry for module providing package github.com/golang/mock/mockgen/model; to add: go mod download github.com/golang/mock ```
Configuration menu - View commit details
-
Copy full SHA for addda2e - Browse repository at this point
Copy the full SHA addda2eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3af5c35 - Browse repository at this point
Copy the full SHA 3af5c35View commit details -
chain-config: capital IsOsaka (erigontech#9989)
To Follow suit with rest of the naming
Configuration menu - View commit details
-
Copy full SHA for be8e4e6 - Browse repository at this point
Copy the full SHA be8e4e6View commit details -
move more services out from ForkchoiceStore (erigontech#9981)
- voluntary_exit - bls_to_execution_change - proposer_slashing - expirable lru --------- Co-authored-by: Giulio <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 991230e - Browse repository at this point
Copy the full SHA 991230eView commit details -
WP - dvovk/diagnostics downloader print (erigontech#10000)
Added command which prints to console diagnostics data. In this initial version it is possible to print stages list and snapshot download progress. Erigon should be running with --metrics flag There are two available commands: - "downloader" - "stages" "current" There are two possible options for output: text and json Run command - ./build/bin/diag [command] [text | json] --------- Co-authored-by: Mark Holt <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8f0582b - Browse repository at this point
Copy the full SHA 8f0582bView commit details -
move
temporal
package to erigon-lib (erigontech#10015)Co-authored-by: awskii <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ab361e4 - Browse repository at this point
Copy the full SHA ab361e4View commit details
Commits on Apr 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2b8f669 - Browse repository at this point
Copy the full SHA 2b8f669View commit details -
Added body close on retry for downloader round trip (erigontech#10008)
Add missing body close method when webseed roundtrip is retried
Configuration menu - View commit details
-
Copy full SHA for 49e39ab - Browse repository at this point
Copy the full SHA 49e39abView commit details -
Set block baseFeePerGas value in graphql response (erigontech#9974)
Set baseFeePerGas value in graphql resolver for block
Configuration menu - View commit details
-
Copy full SHA for 6457ef3 - Browse repository at this point
Copy the full SHA 6457ef3View commit details -
vm: Rename stateTransition gas to gasRemaining (erigontech#10025)
The `StateTransition` property `gas` actually tracks the remaining gas in the current context. This PR is to improve code readability. Geth also uses similar naming.
Configuration menu - View commit details
-
Copy full SHA for de39ac4 - Browse repository at this point
Copy the full SHA de39ac4View commit details -
chore: fix function names in comment (erigontech#9987)
Signed-off-by: fuyangpengqi <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0fa85d2 - Browse repository at this point
Copy the full SHA 0fa85d2View commit details -
sonar: add test coverage (erigontech#9988)
- attempt to integrate sonar with test coverage by following - https://sonarcloud.io/project/configuration/GitHubActions?id=ledgerwatch_erigon - https://docs.sonarsource.com/sonarcloud/advanced-setup/ci-based-analysis/github-actions-for-sonarcloud/ - adds sonar properties file to specify code coverage output - also properties file can be used to filter out generated code from sonar scan - protobuf - graphql - ignore pedersen hash bindings code - ... there will be more ignores coming in later PRs (e.g. some c/c++ code we dont need to scan, some js code, some contract gen code, etc.)
Configuration menu - View commit details
-
Copy full SHA for ff05e20 - Browse repository at this point
Copy the full SHA ff05e20View commit details -
sonar: disable c/c++ scanning (erigontech#10033)
Fixes error in Sonar GitHub action: <img width="1645" alt="Screenshot 2024-04-23 at 17 46 01" src="https://github.com/ledgerwatch/erigon/assets/94537774/3833db1c-6a8a-4db2-8bb7-5de58b57e638">
Configuration menu - View commit details
-
Copy full SHA for 7d668f2 - Browse repository at this point
Copy the full SHA 7d668f2View commit details -
Caplin: Added
SyncAggregate
computation to block production (erigon……tech#10009) This PR allows the computation for the computation of the `SyncAggregate` field in block production: https://sepolia.beaconcha.in/slot/4832922 proof of the code working is that now Caplin validators can include sync aggregates in their blocks. Things modified: * We do not aggregate pre-aggregated `SyncContributionAndProof`s, instead we just listen to the network and pick the most profitable ones for each sub sync committee (4 sync subcommittee on mainnet). profitability == most bits set in `AggregationBits` field. * Separate aggregates set for contribution to be included in a block from the ones constructed from `SyncCommitteeMessage`s, combining the two causes some contributions to be marked as invalid and not aggregable. * Remove SyncContributionMock in favor of gomock
Configuration menu - View commit details
-
Copy full SHA for 6d9a5fd - Browse repository at this point
Copy the full SHA 6d9a5fdView commit details -
polygon/sync: message listener to preserve peer events ordering (erig…
…ontech#10032) Observed the following issue in a long running Astrid sync on bor-mainnet: ``` [DBUG] [04-17|14:25:43.504] [p2p.peerEventObserver] received new peer event id=Disconnect peerId=51935aa1eeabdb73b70d36c7d5953a3bfdf5c84e88241c44a7d16d508b281d397bdd8504c934bfb45af146b86eb5899ccea85e590774f9823d056a424080b763 [DBUG] [04-17|14:25:43.504] [p2p.peerEventObserver] received new peer event id=Connect peerId=51935aa1eeabdb73b70d36c7d5953a3bfdf5c84e88241c44a7d16d508b281d397bdd8504c934bfb45af146b86eb5899ccea85e590774f9823d056a424080b763 ``` Note the timestamps are the same on the millisecond level, however the disconnect was processed before the connect which is wrong (connect should always be first). This then got the `PeerTracker` in a bad state - it kept on returning peer `51935aa1eeabdb73b70d36c7d5953a3bfdf5c84e88241c44a7d16d508b281d397bdd8504c934bfb45af146b86eb5899ccea85e590774f9823d056a424080b763` as a valid peer to download from, which caused repeated `peer not found` errors when sending messages to it. Fix is to have the message listener wait for all observers to finish processing peer event 1 before proceeding to notifying them about peer event 2.
Configuration menu - View commit details
-
Copy full SHA for 190cbfa - Browse repository at this point
Copy the full SHA 190cbfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 586416c - Browse repository at this point
Copy the full SHA 586416cView commit details
Commits on Apr 24, 2024
-
sonar: fix warnings (erigontech#10034)
Fixes Sonar warnings: <img width="550" alt="Screenshot 2024-04-23 at 19 37 53" src="https://github.com/ledgerwatch/erigon/assets/94537774/b85c9607-3800-408d-8a1b-c5bf80da38b2">
Configuration menu - View commit details
-
Copy full SHA for 7066578 - Browse repository at this point
Copy the full SHA 7066578View commit details -
sonar: fix js warnings and exclude mocks (erigontech#10042)
- Excludes go mock generated files from analysis - Excludes broken js files (valid as they are used for tracers and test data) to fix below warnings <img width="1658" alt="Screenshot 2024-04-24 at 11 12 04" src="https://github.com/ledgerwatch/erigon/assets/94537774/7925d07f-37f3-43c9-b34a-9a5361e48a8a">
Configuration menu - View commit details
-
Copy full SHA for 965213d - Browse repository at this point
Copy the full SHA 965213dView commit details -
tests: Support iterations in Heimdall simulator (erigontech#10040)
Accept a slice of block numbers that represents the final block number that will be available to the client of the simulator.Any data after the iteration stage end is not accessible to the client. The iteration moves to the next stage under certain conditions: - requesting the latest span via `FetchSpan` - requesting state sync events beyond current last iteration block's timestamp
Configuration menu - View commit details
-
Copy full SHA for faebc82 - Browse repository at this point
Copy the full SHA faebc82View commit details -
Fix forward bor snaps (erigontech#10027)
This fixes this issue: erigontech#9499 which is caused by restarting erigon during the bor-heimdall stage. Previously after the initial call to bor-heimdall (header 0), forward downloading was disabled, but backward downloading recursively collects headers - holding results in memory until it can roll them forward. This should only be called for a limited number of headers, otherwise it leads to a large amount of memory >45GB for bor main net if the process is stopped at block 1.
Configuration menu - View commit details
-
Copy full SHA for d1340de - Browse repository at this point
Copy the full SHA d1340deView commit details -
Added downloader request count (erigontech#10036)
The downloader is not complete until all of its requested files have been downloaded. This changes adds a request count to the downloader stats to be checked for completeness, otherwise the downloader may appear complete before all required torrents have been added.
Configuration menu - View commit details
-
Copy full SHA for 9af7278 - Browse repository at this point
Copy the full SHA 9af7278View commit details -
StageSenders:
--sync.loop.block.limit
support (erigontech#9982)We reverted support of this flag in `updateForkChoice` because implementation was too complex and fragile: erigontech#9900 But it's good-enough if StageSenders will preserve this flag - then next stages (exec) will also follow (because they look at prev stage progress). It's good-enough - because users just want to save some partial progress after restoring node from backup (long downtime). And enforce "all stages progress together" invariant
Configuration menu - View commit details
-
Copy full SHA for 2bd713b - Browse repository at this point
Copy the full SHA 2bd713bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4753554 - Browse repository at this point
Copy the full SHA 4753554View commit details -
Optimize prune old chunks (erigontech#10019)
**Summary** Fixes prune point for log (+index) - Unnecessary to use ETL again for deleting `kv.Log` entries, can just introduce `RwCursor` in the initial loop - Put the last `pruneTo` block number in the `PruneState` - this will begin pruning from that point. Earlier the `pruneFrom` point being passed in was buggy as it used some other assumption for this value
Configuration menu - View commit details
-
Copy full SHA for d318f11 - Browse repository at this point
Copy the full SHA d318f11View commit details -
[ots] Fix block rewards calculation on post-merge blocks (erigontech#…
…10038) This is for E2. The block rewards returned by Otterscan API is incorrect since the merge. It replaces very old code with the same calculation used for trace_block. this code probably won't work with Aura consensus, but that's ok since the current one doesn't work as well. It would actually require exposing more code from block execution and I don't want to handle it for now, let's fix only the post-merge calc for now. Co-authored-by: sealer3 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dfdfed5 - Browse repository at this point
Copy the full SHA dfdfed5View commit details -
Configuration menu - View commit details
-
Copy full SHA for ed3325b - Browse repository at this point
Copy the full SHA ed3325bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 831c48d - Browse repository at this point
Copy the full SHA 831c48dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 49b7a97 - Browse repository at this point
Copy the full SHA 49b7a97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9976e3c - Browse repository at this point
Copy the full SHA 9976e3cView commit details
Commits on Apr 25, 2024
-
Build Silkworm RpcDaemon settings from Erigon ones (erigontech#10002)
This PR introduces support for customising Silkworm RpcDaemon settings in Erigon++. Common RPC settings between Erigon and Silkworm are simply translated from the existing Erigon command-line options. They include: - `--http.addr` - `--http.port` - `--http.compression` - `--http.corsdomain` - `--http.api` - `--ws` - `--ws.compression` Moreover, the following Silkworm-specific command-line options are added: - `--silkworm.verbosity` - `--silkworm.contexts` - `--silkworm.rpc.log` - `--silkworm.rpc.log.maxsize` - `--silkworm.rpc.log.maxfiles` - `--silkworm.rpc.log.response` - `--silkworm.rpc.workers` - `--silkworm.rpc.compatibility` Default values cover the common usages of Erigon++ experimental features, yet such options can be useful for testing some corner cases or collecting information. Finally, this PR adds a new `LogDirPath` function to `logging` module just to determine the log dir path used by Erigon and put there also Silkworm RPC interface logs, when enabled.
Configuration menu - View commit details
-
Copy full SHA for d2aaa68 - Browse repository at this point
Copy the full SHA d2aaa68View commit details -
Optimized attestation processing (erigontech#10020)
* Decrease memory footprint on chain tip * Fix a race * Better times on `Attestation` processing. 1 sec -> 54 ms
Configuration menu - View commit details
-
Copy full SHA for 2fe4b37 - Browse repository at this point
Copy the full SHA 2fe4b37View commit details -
Revert "Fix new_heads Events Emission on Block Forks (erigontech#9738)…
…" (erigontech#10055) This reverts commit f4aefdc. See PR erigontech#9738
Configuration menu - View commit details
-
Copy full SHA for 3323fdc - Browse repository at this point
Copy the full SHA 3323fdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for b2cf6d2 - Browse repository at this point
Copy the full SHA b2cf6d2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0620607 - Browse repository at this point
Copy the full SHA 0620607View commit details -
drop go 1.20 support (erigontech#10052)
drop go 1.20 support use ` github.com/erigontech/torrent v1.54.2-alpha` - to simplify future support and features backport
Configuration menu - View commit details
-
Copy full SHA for ee420ad - Browse repository at this point
Copy the full SHA ee420adView commit details -
Configuration menu - View commit details
-
Copy full SHA for a700f92 - Browse repository at this point
Copy the full SHA a700f92View commit details -
Revert "StageSenders:
--sync.loop.block.limit
support" (erigontech#……10060) Reverts erigontech#9982
Configuration menu - View commit details
-
Copy full SHA for cb73f91 - Browse repository at this point
Copy the full SHA cb73f91View commit details -
downloader: remove deprecated manual fsync (erigontech#10064)
After switching to more durable db mode erigontech#10010 - we don't need manual fsync anymore.
Configuration menu - View commit details
-
Copy full SHA for bc18485 - Browse repository at this point
Copy the full SHA bc18485View commit details -
Configuration menu - View commit details
-
Copy full SHA for c973a15 - Browse repository at this point
Copy the full SHA c973a15View commit details -
Caplin: fixed attestation broadcasting (erigontech#10041)
This PR fixes 2 things: * Superset handling (should ignore) * SSZ offset not set for custom ssz in attestation encoding after json unmarshalling
Configuration menu - View commit details
-
Copy full SHA for 341bfea - Browse repository at this point
Copy the full SHA 341bfeaView commit details -
feat: add
fullTx
params toNewPendingTransactions
(erigontech#9204)feat: add `fullTx` params to `NewPendingTransactions` Closes erigontech#9203
galois committedApr 25, 2024 Configuration menu - View commit details
-
Copy full SHA for b9ebb6c - Browse repository at this point
Copy the full SHA b9ebb6cView commit details -
backward compatibility of .lock (erigontech#10006)
In PR: - new .lock format introduced by erigontech#9766 is not backward compatible. In the past “empty .lock” did mean “all prohibited” and it was changed to “all allowed”. - commit Not in PR: I have idea to make .lock also forward compatible - by making it whitelist instead of blacklist: after adding new snap type it will not be downloaded by accident. Will do it in next PR. But I need one more confirmation - why do we need exceptions from .lock? Why we breaking "download once" invariant for some type of files? Can we avoid it?
Configuration menu - View commit details
-
Copy full SHA for 3829bfe - Browse repository at this point
Copy the full SHA 3829bfeView commit details -
Make logs subscription channel size configurable (erigontech#9810)
This PR makes the channel that is used to send logs to subscriptions configurable so logs are not dropped when the channel gets filled. See issue 9699. This is just an initial version since I wanted to gather some feedback and was unsure if this is the correct approach to solve this.
Configuration menu - View commit details
-
Copy full SHA for a0049fe - Browse repository at this point
Copy the full SHA a0049feView commit details -
Configuration menu - View commit details
-
Copy full SHA for d7cd1fa - Browse repository at this point
Copy the full SHA d7cd1faView commit details
Commits on Apr 26, 2024
-
[ots] Fix incorrect return type and overflow on total block fees calc (…
…erigontech#10070) For E2: fix incorrect type + overflow in certain blocks Corresponding otterscan issue: otterscan/otterscan#1658
Configuration menu - View commit details
-
Copy full SHA for 3e1331a - Browse repository at this point
Copy the full SHA 3e1331aView commit details -
RPC:
--http.dbg.single=true
and custom HTTP headerdbg: true
(eri……gontech#10039) - Added method `tx.Context()` - because Tx already bounded to context by `db.BeginRo(ctx)` - Removed ctx parameter from `BlockWithSenders` method in interfaces - Added `dbg.ToContext()` and `dbg.Enabled(ctx)` methods to set/get debugging tag to `ctx`. Added way to debug single http request: To print more detailed logs for 1 request - add `--http.dbg.single=true` flag. Then can send HTTP header `"dbg: true"`: ``` curl -X POST -H "dbg: true" -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id":1}' localhost:8545 ``` --------- Co-authored-by: battlmonstr <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5270bc - Browse repository at this point
Copy the full SHA a5270bcView commit details -
all: use the built-in slices library (erigontech#9842)
In the current go 1.21 version used in the project, slices are no longer an experimental feature and have entered the standard library Co-authored-by: alex.sharov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9001183 - Browse repository at this point
Copy the full SHA 9001183View commit details -
chore(config): json marshal chainName (erigontech#9865)
As the other fields are json marshaled into lowerUpper case, we should use the same style. --------- Signed-off-by: jsvisa <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aee77ab - Browse repository at this point
Copy the full SHA aee77abView commit details -
Fix new_heads Events Emission on Block Forks (erigontech#10072)
TL;DR: on a reorg, the common ancestor block is not being published to subscribers of newHeads #### Expected behavior if the reorg's common ancestor is 2, I expect 2 to be republished 1, 2, **2**, **3**, **4** #### Actual behavior 2 is not republished, and 3's parentHash points to a 2 header that was never received 1, 2, **3**, **4** This PR is the same thing as erigontech#9738 except with a test. Note... the test passes, but **this does not actually work in production** (for Ethereum mainnet with prysm as external CL). Why? Because in production, `h.sync.PrevUnwindPoint()` is always nil: https://github.com/ledgerwatch/erigon/blob/a5270bccf5e69a6beaaab9a0663bdad80e989505/turbo/stages/stageloop.go#L291 which means the initial "if block" is never entered, and thus we have **no control** of increment/decrement `notifyFrom` during reorgs https://github.com/ledgerwatch/erigon/blob/a5270bccf5e69a6beaaab9a0663bdad80e989505/eth/stagedsync/stage_finish.go#L137-L146 I don't know why `h.sync.PrevUnwindPoint()` is seemingly always nil, or how the test can pass if it fails in prod. I'm hoping to pass the baton to someone who might. Thank you @indanielo for original fix. If we can figure this bug out, it closes erigontech#8848 and closes erigontech#9568 and closes erigontech#10056 --------- Co-authored-by: Daniel Gimenez <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4e56433 - Browse repository at this point
Copy the full SHA 4e56433View commit details -
chore: remove repetitive words with tools (erigontech#10076)
use https://github.com/Abirdcfly/dupword to check repetitive words
Configuration menu - View commit details
-
Copy full SHA for eac6f04 - Browse repository at this point
Copy the full SHA eac6f04View commit details -
Configuration menu - View commit details
-
Copy full SHA for c83ee65 - Browse repository at this point
Copy the full SHA c83ee65View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6e7efa2 - Browse repository at this point
Copy the full SHA 6e7efa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 382f881 - Browse repository at this point
Copy the full SHA 382f881View commit details
Commits on Apr 27, 2024
-
downloader: docs on MMAP for data-files r/w and experiments with bufio (
erigontech#10074) Pros: - it allows to not pre-alloc files: erigontech#8688 - it allows to not "sig-bus" when no space left on disk (return user-friendly error). see: erigontech#8500 - but DB will be MMAP anyway and may get "sig-bus" FYI: - seems no perf difference (but i tested only on cloud drives) - erigon will anyway open it as mmap Cons: - i did implemented `fsync` for mmap ( anacrolix/torrent#755 ) - probably will need implement it for bufio: anacrolix/torrent#937 - no zero-copy: more `alloc` memory will be holded by APP (PageCache starvation). I see 2x mem usage (at `--torrent.download.slots=500` 20gb vs 40gb) - i see "10K threads exchaused" error earlier (on `--torrent.download.slots=500`). - what else?
Configuration menu - View commit details
-
Copy full SHA for 7ac8b10 - Browse repository at this point
Copy the full SHA 7ac8b10View commit details -
Configuration menu - View commit details
-
Copy full SHA for d450357 - Browse repository at this point
Copy the full SHA d450357View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab0f633 - Browse repository at this point
Copy the full SHA ab0f633View commit details -
Fetch and skip sync events (erigontech#10051)
For period where there are not many sync events (mostly testnets) sync event fecthing can be slow becuase sync events are fetched at the end of every sprint. Fetching the next and looking at its block number optimizes this because fetches can be skipped until the next known block with sync events.
Configuration menu - View commit details
-
Copy full SHA for 5d92302 - Browse repository at this point
Copy the full SHA 5d92302View commit details -
EIP-2537 (BLS12-381): use gnark instead of kilic (erigontech#10082)
Cherry pick ethereum/go-ethereum#29441 --------- Co-authored-by: Marius van der Wijden <[email protected]> Co-authored-by: Martin Holst Swende <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2241e11 - Browse repository at this point
Copy the full SHA 2241e11View commit details -
abi: fix abigen issue with make devtools (erigontech#10091)
fixes erigontech#7593 it introduced a regression: `"fmt"` and `"reflect"` imports were added for all files generated by `abigen` assuming that they will be used in all cases, however that assumption was wrong for some cases resulting in invalid code being generated (in this case after running `make devtools`): <img width="982" alt="Screenshot 2024-04-27 at 10 50 37" src="https://github.com/ledgerwatch/erigon/assets/94537774/9a1b93a5-2141-40d9-8c9e-01a1ff6c031c">
Configuration menu - View commit details
-
Copy full SHA for 00850e0 - Browse repository at this point
Copy the full SHA 00850e0View commit details -
Caplin: Inclusion of
VoluntaryExits
,AttesterSlashing
s, `Proposer……Slashing`s, `BlsExecutionToChange`s and `Attestation`s into block production (erigontech#10071) This PR add operations inclusion. ## Normal operations * BlsExecutionChange * VoluntaryExit * Slashings Each of these operations blacklist the index they work on so we do not have repeating indices for the same operations twice. we assume all signatures are pre-validated and just see if it is a good time to produce a block with them (by looking at their slot) ## Aggregated Attestations There is a lot of trash attestations on the network so we separate our algorithm in 3 steps: ### Eligibility We iterate over the entire pool of accumulated attestations and filter out all attestations who cannot be included at the current slot, and compute their expected reward. (filter out if 0). ### Ranking We rank the `Attestation`s by their expected reward (we just sort the array of candidates) by expected reward in ascending order. ### Filtering by superset We may have some supersets left-over, filter attestation which ends up being supersets of other. this process is done from highest reward down to lowest reward.
Configuration menu - View commit details
-
Copy full SHA for b14b766 - Browse repository at this point
Copy the full SHA b14b766View commit details -
mdbx: Return err early in iter.Next() (erigontech#10078)
`HasNext` will return true even with existing error and the application will expect a next entry. The `Next` function can get into an internal error (such as a `panic()`) while fetching the next cursor item and thus fail to return the error. --------- Co-authored-by: alex.sharov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d7d0960 - Browse repository at this point
Copy the full SHA d7d0960View commit details
Commits on Apr 28, 2024
-
make: mocks using mockgen (erigontech#10098)
- replaces usages of `moq` in `erigon-lib` with `mockgen` (gomock) - adds a `make mocks` and `mocks-clean` command for `erigon` - updates existing `make mocks` command and adds a `mocks-clean` common for `erigon-lib`
Configuration menu - View commit details
-
Copy full SHA for 63578a8 - Browse repository at this point
Copy the full SHA 63578a8View commit details -
mockgen: use typed mocks for compile time check (erigontech#10103)
Use `mockgen -typed=true` to generate mocks with type-safe `Return`, `Do`, `DoAndReturn` function - https://github.com/uber-go/mock?tab=readme-ov-file#flags
Configuration menu - View commit details
-
Copy full SHA for 4bc3bc6 - Browse repository at this point
Copy the full SHA 4bc3bc6View commit details
Commits on Apr 29, 2024
-
make: add gen commands (erigontech#10106)
adds: - `make gen` - `make solc` - `make abigen` - `make codecgen` - `make gencodec` - `make graphql` tidies up `make devtools`
Configuration menu - View commit details
-
Copy full SHA for 255be13 - Browse repository at this point
Copy the full SHA 255be13View commit details -
added print DBs table sizes (erigontech#10111)
Added command to print databases tables basic info. There are two options : - print all info: ./build/bin/diag dbs all - print only populated tables and dbs: ./build/bin/diag dbs pop Here is example output: ![Screenshot 2024-04-28 at 21 38 18](https://github.com/ledgerwatch/erigon/assets/29065143/f0a04931-8d87-4c45-b71a-71d75404f3fc) @taratorio if you want I can add flag which will print specific DB.
Configuration menu - View commit details
-
Copy full SHA for e697459 - Browse repository at this point
Copy the full SHA e697459View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3ad651e - Browse repository at this point
Copy the full SHA 3ad651eView commit details -
Caplin: tweaks to make staking more stable. (erigontech#10097)
Tweaks I did: 1) Decreased attestation expiry down to 30 minutes 2) Removed slot check in committeeSubAggregation 3) More reliable algorithm for the dependent root Results: * Better aggregates * Less strain on the node * No blocks/attestations missed
Configuration menu - View commit details
-
Copy full SHA for 3b72b5a - Browse repository at this point
Copy the full SHA 3b72b5aView commit details -
mdbx: pre-open read pagesize from db (erigontech#10113)
Problem: if --pageSize parameter not set - we using `default pagesize` instead of `real pagesize of db`. And it causing different `dirtySpace` size (because it's accounted in "pages")
Configuration menu - View commit details
-
Copy full SHA for a12a99c - Browse repository at this point
Copy the full SHA a12a99cView commit details -
RPC: Receipts LRU cache (erigontech#10112)
for erigontech#10099 for things like `eth_getTransactionReceipt`, `ots_searchTransactionsAfter`, etc... Also moved: - moved `api.chainConfig()` inside `api.getReceipts()` - switched `ots` to use blocks/receipts lru - switched price oracle to use blocks/receipts
Configuration menu - View commit details
-
Copy full SHA for 83c95ba - Browse repository at this point
Copy the full SHA 83c95baView commit details -
use sonar for code coverage badge (erigontech#10107)
- use sonar badge for code coverage - remove unnecessary "Coverage" GitHub action and unnecessary duplicate test run on "devel" CI for it - the existing coverage job + badge didn't seem to be accurate (wasn't taking into account `erigon-lib` sub-module) <img width="982" alt="Screenshot 2024-04-29 at 12 06 46" src="https://github.com/ledgerwatch/erigon/assets/94537774/e47367ed-340d-42b5-ad00-2f59edce100c">
Configuration menu - View commit details
-
Copy full SHA for aed056f - Browse repository at this point
Copy the full SHA aed056fView commit details -
dvovk/limit mem usage (erigontech#10069)
Implemented limit for saving peers in an Erigon node memory to be able to turn on diagnostics data collection by default.
Configuration menu - View commit details
-
Copy full SHA for 2b83da1 - Browse repository at this point
Copy the full SHA 2b83da1View commit details -
chore: fix some function names (erigontech#10117)
Signed-off-by: luchenhan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 06dfaea - Browse repository at this point
Copy the full SHA 06dfaeaView commit details -
Revert "backward compatibility of .lock" and Backward compatibility b…
…y Giulio (erigontech#10077) Reverts erigontech#10006 and add a proper migration routine
Configuration menu - View commit details
-
Copy full SHA for 298e153 - Browse repository at this point
Copy the full SHA 298e153View commit details -
dvovk/enable_dignostic (erigontech#10083)
Enabled diagnostics by default to collect data. It will allow to connect to node and get stored data. It includes three new flags: - "diagnostics.disabled" - it's set to "false" by default. Set to "true" if you want to disable diagnostics. - "diagnostics.endpoint.addr" - address of HTTP endpoint to get diagnostics data - "diagnostics.endpoint.port" - port of HTTP endpoint to get diagnostics data [DO NOT MERGE] as it depend on: - erigontech#10069 - update support command - update diagnostics UI
Configuration menu - View commit details
-
Copy full SHA for 0967c5e - Browse repository at this point
Copy the full SHA 0967c5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 287e4a2 - Browse repository at this point
Copy the full SHA 287e4a2View commit details -
Bor waypoint storage (erigontech#9793)
Implementation of db and snapshot storage for additional synced hiemdall waypoint types * Checkpoint * Milestones This is targeted at the Astrid downloader which uses waypoints to verify headers during syncing and fork choice selection. Post milestones for heimdall these types are currently downloaded by erigon but not persisted locally. This change adds persistence for these types. In addition to the pure persistence changes this PR also contains a refactor step which is part of the process of extracting polygon related types from erigon core into a seperate package which may eventually be extracted to a separate module and possibly repo. The aim is rather than the core `turbo\snapshotsync\freezeblocks` having to know about types it manages and how to exaract and index their contents this can concern it self with a set of macro shard management actions. This process is partially completed by this PR, a final step will be to remove BorSnapshots and to simplify the places in the code which has to remeber to deal with them. This requires further testing so has been left out of this PR to avoid delays in delivering the base types. # Status * Waypont types and storage are complete and integrated in to the BorHeimdall stage, The code has been tested to check that types are inserted into mdbx, extracted and merged correctly * I have verified that when produced from block 0 the new snapshot correctly follow the merging strategy of existing snapshots * The functionality is enables by a **--bor.waypoints=true** this is false by default. # Testing This has been tested as follows: * Run a Mumbai instance to the tip and check current processing for milestones and checkpoints # Post merge steps * Produce and release snapshots for mumbai and bor mainnet * Check existing node upgrades * Remove --bor.waypoints flags
Configuration menu - View commit details
-
Copy full SHA for 714c259 - Browse repository at this point
Copy the full SHA 714c259View commit details -
Replace snaptype.AllTypes with local definitions (erigontech#10132)
When adding bor waypont types I have removed snaptype.AllTypes because it causes package cross-dependencies. This fixes the places where all types have been used post the merge changes.
Configuration menu - View commit details
-
Copy full SHA for b766820 - Browse repository at this point
Copy the full SHA b766820View commit details -
Caplin: process new attesting indicies before block comes in to avoid…
… occasiona Reorg (erigontech#10085)
Configuration menu - View commit details
-
Copy full SHA for dee2191 - Browse repository at this point
Copy the full SHA dee2191View commit details
Commits on Apr 30, 2024
-
qa-tests: small improvements (erigontech#10127)
This PR - avoids installing Golang on every test run, - clean up the testbed datadir at the end of the test
Configuration menu - View commit details
-
Copy full SHA for d8bf235 - Browse repository at this point
Copy the full SHA d8bf235View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7edc0b8 - Browse repository at this point
Copy the full SHA 7edc0b8View commit details -
align deps of e35 and devel (erigontech#10136)
- upgrade docker - remove tendermint
Configuration menu - View commit details
-
Copy full SHA for 9e7e8c3 - Browse repository at this point
Copy the full SHA 9e7e8c3View commit details -
core/types: disable go:generate codecgen for receipts and logs (erigo…
…ntech#10105) running `go generate ./...` fails with: ``` codecgen error: error running 'go run codecgen-main-2.generated.go': exit status 1, console: panic: encoding alphabet includes duplicate symbols goroutine 1 [running]: encoding/base64.NewEncoding(...) /usr/local/go/src/encoding/base64/base64.go:82 github.com/ugorji/go/codec.init() /Users/milen/go/pkg/mod/github.com/ugorji/go/[email protected]/gen.go:168 +0xf1c exit status 2 ``` this is a problem when using go1.22 and it has been fixed here: - ugorji/go@8286c2d - issue: ugorji/go#407
Configuration menu - View commit details
-
Copy full SHA for 70dfadd - Browse repository at this point
Copy the full SHA 70dfaddView commit details -
Configuration menu - View commit details
-
Copy full SHA for 01e4969 - Browse repository at this point
Copy the full SHA 01e4969View commit details -
Refactored types to force runtime registrations to be type dependent (e…
…rigontech#10147) This resolves erigontech#10135 All enums are constrained by their owning type which forces package includsion and hence type registration. Added tests for each type to check the construction cycle.
Configuration menu - View commit details
-
Copy full SHA for 1558fc7 - Browse repository at this point
Copy the full SHA 1558fc7View commit details
Commits on May 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 24a789b - Browse repository at this point
Copy the full SHA 24a789bView commit details -
Set existing torrent webseeds after download (erigontech#10149)
Fix a timing hole where torrents that get created before webseeds have been downloaded don't get webseeds set.
Configuration menu - View commit details
-
Copy full SHA for 8d21150 - Browse repository at this point
Copy the full SHA 8d21150View commit details -
eth, txpool: enforce 30gwei for gas related configs for polygon (erig…
…ontech#10158) Cherry-pick PR erigontech#10119 into the release Co-authored-by: Marcello Ardizzone <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 82262fe - Browse repository at this point
Copy the full SHA 82262feView commit details
Commits on May 2, 2024
-
make: fix gen issue with mockgen not found in PATH (erigontech#10162) (…
…erigontech#10166) Fixes erigontech#10157 (comment) Problem was: ``` grep -r -l --exclude-dir=erigon-lib "^// Code generated by MockGen. DO NOT EDIT.$" . | xargs rm -r ``` was deleting the `mockgen` binary after it was built 🙃
Configuration menu - View commit details
-
Copy full SHA for 697732d - Browse repository at this point
Copy the full SHA 697732dView commit details -
abigen: fix duplicate struct definitions (erigontech#10157) (erigonte…
…ch#10164) fixes a 2nd regression introduced by - erigontech#7593 - it generates duplicate struct types in the same package (check screenshot below) - also found a better way to fix the first regression with unused imports (improvement over erigontech#10091) <img width="1438" alt="Screenshot 2024-04-30 at 17 30 42" src="https://github.com/ledgerwatch/erigon/assets/94537774/154d484b-4b67-4104-8a6e-eac2423e1c0e">
Configuration menu - View commit details
-
Copy full SHA for 9a010cd - Browse repository at this point
Copy the full SHA 9a010cdView commit details -
dvovk/pprof fix (erigontech#10155) (erigontech#10178)
Cherry pick PR erigontech#10155 into the release Co-authored-by: Dmytro <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4079f4e - Browse repository at this point
Copy the full SHA 4079f4eView commit details -
Engine API: NewPayload fails with a "context canceled" error in Curre…
…nt/GetHeader (erigontech#9786) (erigontech#9894) * improved logging * check ctx in ServeHTTP: The context might be cancelled if the client's connection was closed while waiting for ServeHTTP. * If execution API returns ExecutionStatus_Busy, limit retry attempts to 10 seconds. This timeout must be lower than a typical client timeout (30 sec), in order to give the client feedback about the server status. * If execution API returns ExecutionStatus_Busy, increase retry delay from 10 ms to 100 ms to avoid stalling ourselves with multiple busy loops. IMO this delay should be higher (e.g. 1 sec). Ideally we shouldn't do polling at all, but doing a blocking ctx call requires rearchitecting the ExecutionStatus_Busy logic. see erigontech#9786
Configuration menu - View commit details
-
Copy full SHA for bd1a458 - Browse repository at this point
Copy the full SHA bd1a458View commit details -
Configuration menu - View commit details
-
Copy full SHA for b59f04c - Browse repository at this point
Copy the full SHA b59f04cView commit details
Commits on May 3, 2024
-
Unnecessary Logs in sentry removed (erigontech#10190)
Cherry pick PR erigontech#10187 into the release Co-authored-by: Giulio rebuffo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a5257bf - Browse repository at this point
Copy the full SHA a5257bfView commit details -
nil block during execution (erigontech#10193)
release cherry pick
Configuration menu - View commit details
-
Copy full SHA for 6648899 - Browse repository at this point
Copy the full SHA 6648899View commit details
Commits on May 4, 2024
-
qa-tests: updating test workflow on release/2.60 (erigontech#10196)
This PR brings the changes of erigontech#10195 to the branch release/2.60 with the necessary modifications
Configuration menu - View commit details
-
Copy full SHA for 49e0171 - Browse repository at this point
Copy the full SHA 49e0171View commit details
Commits on May 6, 2024
-
qa-tests: fix workflows for release 2.60 (erigontech#10217)
Running a test every day doesn't make sense on an inactive branch. It also seems that the schedule trigger favours the main branch if the test workflow has the same name on the main and other branches. So this PR changes the test trigger to "push events".
Configuration menu - View commit details
-
Copy full SHA for 88680ca - Browse repository at this point
Copy the full SHA 88680caView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1e1338 - Browse repository at this point
Copy the full SHA a1e1338View commit details -
Blocks snaps - see 0 indices after reopen (erigontech#10219)
Cherry pick PR erigontech#10214 into the release Co-authored-by: Alex Sharov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 948e781 - Browse repository at this point
Copy the full SHA 948e781View commit details
Commits on May 7, 2024
-
torrent v1.54.2-alpha-7 -> v1.54.2-alpha-8 (release/2.60) (erigontech…
…#10224) This adds torrent fixes that remove bad peers due to non handling of http errs.
Configuration menu - View commit details
-
Copy full SHA for 40d1327 - Browse repository at this point
Copy the full SHA 40d1327View commit details -
fixed start diag server (erigontech#10236)
fixed start diag server if metrics address is different from pprof address --------- Co-authored-by: taratorio <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 764706d - Browse repository at this point
Copy the full SHA 764706dView commit details
Commits on May 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7d41c27 - Browse repository at this point
Copy the full SHA 7d41c27View commit details -
downloader: --seedbox doesn't init snaptypes (erigontech#10245)
Cherry pick PR erigontech#10215 into the release Co-authored-by: Alex Sharov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 32f7775 - Browse repository at this point
Copy the full SHA 32f7775View commit details
Commits on May 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 23908e4 - Browse repository at this point
Copy the full SHA 23908e4View commit details
Commits on May 10, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 620d425 - Browse repository at this point
Copy the full SHA 620d425View commit details
Commits on May 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 64f677a - Browse repository at this point
Copy the full SHA 64f677aView commit details
Commits on May 14, 2024
-
remove nils from p2p logs (erigontech#10303)
fix for ``` [p2p] Server protocol=68 peers=2 trusted=0 inbound=1 LOG15_ERROR= LOG15_ERROR= LOG15_ERROR= LOG15_ERROR= LOG15_ERROR= i/o timeout=53 EOF=65 closed by remote=215 too many peers=6 ecies: invalid message=5 ```
Configuration menu - View commit details
-
Copy full SHA for e67eaaf - Browse repository at this point
Copy the full SHA e67eaafView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7883a4e - Browse repository at this point
Copy the full SHA 7883a4eView commit details
Commits on May 17, 2024
-
fix Consensus specification tests CI (erigontech#10391) (erigontech#1…
…0396) Cherry-pick: erigontech@bc5fa6f Need this to get PR CI green for v2.60.1 patches, e.g. - erigontech#10390 Co-authored-by: Andrew Ashikhmin <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ce8b757 - Browse repository at this point
Copy the full SHA ce8b757View commit details
Commits on May 18, 2024
-
rpc/handler: do not append null to stream when json may be valid (eri…
…gontech#10390) Cherry-pick: erigontech@4d1c954 Relates to: erigontech#10376
Configuration menu - View commit details
-
Copy full SHA for c2934dc - Browse repository at this point
Copy the full SHA c2934dcView commit details
Commits on May 20, 2024
-
Fixed Bor Log appearing on Ethereum Mainnet (erigontech#10405) (erigo…
…ntech#10420) Cherry-pick: erigontech@be889f6 Co-authored-by: Giulio rebuffo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6d4a614 - Browse repository at this point
Copy the full SHA 6d4a614View commit details
Commits on May 24, 2024
-
fix gas price not right problem (erigontech#10456)
Cherry pick PR erigontech#10451 into the release branch Co-authored-by: mars <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7fced9f - Browse repository at this point
Copy the full SHA 7fced9fView commit details
Commits on May 27, 2024
-
eth_estimateGas: default feeCap to base fee (erigontech#10499)
Copy PR erigontech#10495 into the release branch
Configuration menu - View commit details
-
Copy full SHA for c0be07d - Browse repository at this point
Copy the full SHA c0be07dView commit details -
Add flag for bor waypoint types (erigontech#10501)
Cherry pick PR erigontech#10281 into the release branch Co-authored-by: Mark Holt <[email protected]> Co-authored-by: alex.sharov <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2e500bd - Browse repository at this point
Copy the full SHA 2e500bdView commit details -
try to fix 'method handler crashed' for debug_traceCall of erigontech…
…#9090 (erigontech#10502) Cherry pick PR erigontech#10401 into the release branch Co-authored-by: mars <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b0df97f - Browse repository at this point
Copy the full SHA b0df97fView commit details -
diagnostics: cherry pick speedtest disable (erigontech#10509)
Cherry pick PR erigontech#10449 into the release branch
Configuration menu - View commit details
-
Copy full SHA for 7e1adef - Browse repository at this point
Copy the full SHA 7e1adefView commit details -
Enable DNS p2p discovery on holesky (erigontech#10507)
Cherry pick PR erigontech#10460 into the release branch Co-authored-by: Willian Mitsuda <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7b5653b - Browse repository at this point
Copy the full SHA 7b5653bView commit details -
fix eth_call 'method handler crashed' error when tx has set maxFeePer…
…BlobGas (erigontech#10506) Cherry pick PR erigontech#10452 into the release branch Co-authored-by: mars <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d3af203 - Browse repository at this point
Copy the full SHA d3af203View commit details
Commits on May 28, 2024
-
e2: remove overlapped files only after merge (erigontech#10487)
Otherwise: if start after `kill -9` in the middle of merge - may remove small files of 1 type of file, but leave small files of another type of files (which merge was not finished) - and leave node in un-mergable state: erigontech#10485 --------- Co-authored-by: awskii <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 608a940 - Browse repository at this point
Copy the full SHA 608a940View commit details -
add flag checking for pruning waypoints (erigontech#10508)
Cherry pick PR erigontech#10468 into the release branch Co-authored-by: Mark Holt <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e9840ad - Browse repository at this point
Copy the full SHA e9840adView commit details -
p2p/sentry: sentry doesn't start with ErrNoHead (erigontech#10454) (e…
…rigontech#10523) cherry-pick erigontech#10494 to release/2.60
Configuration menu - View commit details
-
Copy full SHA for 9501f93 - Browse repository at this point
Copy the full SHA 9501f93View commit details -
add lock to purgeMilestoneIDsList (erigontech#10524)
Cherry pick PR erigontech#10493 into the release branch Co-authored-by: Mark Holt <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 128f015 - Browse repository at this point
Copy the full SHA 128f015View commit details -
polygon/heimdall: fix checkpoint json marshalling (erigontech#10530)
Fixes a recent regression causing unwinds due to checkpoints having zero root hash: ``` [WARN] [05-18|23:58:54.662] [bor] Root hash mismatch while whitelisting checkpoint expected=ac1c57270479250af3ce8eee90075cd8b2ba1bac55353105e063d9a4c87c743e got=0000000000000000000000000000000000000000000000000000000000000000 [WARN] [05-18|23:58:54.662] [bor] Rewinding chain due to checkpoint root hash mismatch number=57125727 ``` Note this has already been fixed on Erigon 3 branch but as part of a non-related PR - https://github.com/ledgerwatch/erigon/pull/10124/files#diff-47d4532f399f2d6a45e6f19944a45c80bac573b4d1b5cb51485d0254229d1b16
Configuration menu - View commit details
-
Copy full SHA for f13762b - Browse repository at this point
Copy the full SHA f13762bView commit details
Commits on May 29, 2024
-
Fix capacity for immediate appends (erigontech#10539)
Cherry pick PR erigontech#10528 into the release branch Co-authored-by: Shoham Chakraborty <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b672fcb - Browse repository at this point
Copy the full SHA b672fcbView commit details -
core/vm: set tracer-observable value of a delegatecall to match paren…
…t value (erigontech#10370) requested by erigontech#9549 port of ethereum/go-ethereum#26632
Configuration menu - View commit details
-
Copy full SHA for c33912c - Browse repository at this point
Copy the full SHA c33912cView commit details
Commits on May 30, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7a39ee5 - Browse repository at this point
Copy the full SHA 7a39ee5View commit details
Commits on May 31, 2024
-
blobGasPrice should be marshalled as hex (erigontech#10571)
Cherry pick PR erigontech#10551 into the release branch
Configuration menu - View commit details
-
Copy full SHA for efed89b - Browse repository at this point
Copy the full SHA efed89bView commit details -
Caplin: Fixed reforwarding of Bls Execution changes (erigontech#10577)
Cherry pick PR erigontech#10546 into the release branch Co-authored-by: Giulio rebuffo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c3fcd76 - Browse repository at this point
Copy the full SHA c3fcd76View commit details -
Caplin: Proper "Normalization" of length of ForkVersions to 8 hex cha…
…racters (erigontech#10578) Cherry pick PR erigontech#10512 into the release branch Co-authored-by: Giulio rebuffo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2e3d061 - Browse repository at this point
Copy the full SHA 2e3d061View commit details -
Caplin: Update BlobSidecars Beacon API endpoint to the latest specs (e…
…rigontech#10580) Cherry pick PR erigontech#10576 into the release branch Co-authored-by: Giulio rebuffo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for b29d137 - Browse repository at this point
Copy the full SHA b29d137View commit details
Commits on Jun 3, 2024
-
bor blocks retire: infinity loop fix (erigontech#10596)
Problem: `+1` was added to maxBlockNum instead of minBlockNum for: erigontech#10554
Configuration menu - View commit details
-
Copy full SHA for 5bbcc7a - Browse repository at this point
Copy the full SHA 5bbcc7aView commit details
Commits on Jun 4, 2024
-
txpool: EIP-3860 should only apply to create transactions (erigontech…
…#10609) This fixes Issue erigontech#10607
Configuration menu - View commit details
-
Copy full SHA for 9471c44 - Browse repository at this point
Copy the full SHA 9471c44View commit details
Commits on Jun 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for d04796e - Browse repository at this point
Copy the full SHA d04796eView commit details
Commits on Jun 10, 2024
-
Fix potential p2p shutdown hangup (erigontech#10626)
This is a fix for: erigontech#10192 This fixes is a deadlock in v4_udp.go where * Thread A waits on mutex.Lock() in resetTimeout() called after reading listUpdate channel. * Thread B waits on listUpdate <- plist.PushBack(p) called after locking mutex.Lock() This fix decouples the list operations which need locking from the channel operations which don't by storing the changes in local variables. These updates are used for resetting a timeout - which is not order dependent.
Configuration menu - View commit details
-
Copy full SHA for 2222a11 - Browse repository at this point
Copy the full SHA 2222a11View commit details
Commits on Jun 13, 2024
-
downloader: Number of DNS requests seem excessive (erigontech#5145) (e…
…rigontech#10739) cherry-pick erigontech#10693 to release
Configuration menu - View commit details
-
Copy full SHA for c637e37 - Browse repository at this point
Copy the full SHA c637e37View commit details
Commits on Jun 14, 2024
-
rpc: Fix incorrect txfeecap (erigontech#10643)
Cherry pick PR erigontech#10636 to Erigon 2
Configuration menu - View commit details
-
Copy full SHA for fabed0c - Browse repository at this point
Copy the full SHA fabed0cView commit details
Commits on Jun 17, 2024
-
downloader: don't block erigon startup if devs deploy new hashes (of …
…same files) (erigontech#10761)
Configuration menu - View commit details
-
Copy full SHA for cac1c2d - Browse repository at this point
Copy the full SHA cac1c2dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1704658 - Browse repository at this point
Copy the full SHA 1704658View commit details
Commits on Jun 18, 2024
-
qa-tests: backport to release/2.60 improvements made to e3 github act…
…ion workflows (erigontech#10778) This PR backports improvements that we added to the E3 tests: recording runner name and db version used for testing on MongoDB database.
Configuration menu - View commit details
-
Copy full SHA for 4fb2ef4 - Browse repository at this point
Copy the full SHA 4fb2ef4View commit details
Commits on Jun 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c19b034 - Browse repository at this point
Copy the full SHA c19b034View commit details
Commits on Jun 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 847d786 - Browse repository at this point
Copy the full SHA 847d786View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79d0182 - Browse repository at this point
Copy the full SHA 79d0182View commit details -
diagnostics: move E3 changes to E2 (erigontech#10806)
Merged all the work done from main branch to keep diagnostics up to date.
Configuration menu - View commit details
-
Copy full SHA for 2e590ce - Browse repository at this point
Copy the full SHA 2e590ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8c5632 - Browse repository at this point
Copy the full SHA e8c5632View commit details -
Fix NewPayload Validation during header download (erigontech#10837)
Cherry pick PR erigontech#10093 into the release branch Co-authored-by: Minhyuk Kim <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 478b5b2 - Browse repository at this point
Copy the full SHA 478b5b2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 478d144 - Browse repository at this point
Copy the full SHA 478d144View commit details
Commits on Jun 24, 2024
-
Fix gas fee calculation for debug calls (erigontech#10880)
Cherry pick PR erigontech#10825 into the release branch Co-authored-by: Minhyuk Kim <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2fcf653 - Browse repository at this point
Copy the full SHA 2fcf653View commit details
Commits on Jun 25, 2024
-
Revert "eth_estimateGas: default feeCap to base fee (erigontech#10499)…
…" (erigontech#10904) This reverts PR erigontech#10499. See erigontech#10495 (comment) and PR erigontech#10901
Configuration menu - View commit details
-
Copy full SHA for aa591fd - Browse repository at this point
Copy the full SHA aa591fdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2f41075 - Browse repository at this point
Copy the full SHA 2f41075View commit details
Commits on Jul 1, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ce300aa - Browse repository at this point
Copy the full SHA ce300aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1bc29f - Browse repository at this point
Copy the full SHA b1bc29fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b098c3 - Browse repository at this point
Copy the full SHA 4b098c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b42e46 - Browse repository at this point
Copy the full SHA 1b42e46View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecd5afa - Browse repository at this point
Copy the full SHA ecd5afaView commit details
Commits on Jul 2, 2024
-
Configuration menu - View commit details
-
Copy full SHA for c6feab8 - Browse repository at this point
Copy the full SHA c6feab8View commit details
Commits on Jul 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2e9bf15 - Browse repository at this point
Copy the full SHA 2e9bf15View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac52e07 - Browse repository at this point
Copy the full SHA ac52e07View commit details