forked from protolambda/erigon
-
Notifications
You must be signed in to change notification settings - Fork 15
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 sync - v2.45.3 #82
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ech#7643) - stage_senders: don't re-calc existing senders - stage_tx_lookup: prune less blocks per iteration - because random-deletes are expensive. pruning must not slow-down sync. - prune data even if --snap.stop is set - "prune as-much-as-possible at startup" is not very good idea: at initialCycle machine can be cold and prune will cause big downtime, no reason to produce much freelist in 1 tx. People may also restart erigon - because of some bug - and it will cause unexpected downtime (usually Erigon startup very fast). So, I just remove all `initialSync`-related logic in pruning. - fix lost metrics about disk write byte/sec
interface for recording things
…es (erigontech#7646) This branch is intended to allow the devnet to be used for testing multiple consents types beyond the default clique. It is initially being used to test Bor consensus for polygon. It also has the following refactoring: ### 1. Network configuration The two node arg building functions miningNodeArgs and nonMiningNodeArgs have been replaced with a configuration struct which is used to configure: ```go network := &node.Network{ DataDir: dataDir, Chain: networkname.DevChainName, //Chain: networkname.BorDevnetChainName, Logger: logger, BasePrivateApiAddr: "localhost:9090", BaseRPCAddr: "localhost:8545", Nodes: []node.NetworkNode{ &node.Miner{}, &node.NonMiner{}, }, } ``` and start multiple nodes ```go network.Start() ``` Network start will create a network of nodes ensuring that all nodes are configured with non clashing network ports set via command line arguments on start-up. ### 2. Request Routing The `RequestRouter` has been updated to take a 'target' rather than using a static dispatcher which routes to a single node on the network. Each node in the network has its own request generator so command and services have more flexibility in request routing and `ExecuteAllMethods` currently takes the `node.Network` as an argument and can pick which node (node 0 for the moment) to send requests to.
…ake re-org cheaper (erigontech#7648) - allow store non-canonical blocks/senders - optimize re-org: don't update/delete most of data - allow mark chain as `Bad` - will be not visible by eth_getBlockByHash, but can read if have hash+num
I've added a non root logger to bor.ValidatorSet validator set. This creates a signature change on a number of calling functions to propagate the logger. This is mostly constrained to the bor package but impacts a number of tests and utilities which call the validators set.
…#7680) according to ethereum/EIPs#7020. Prerequisite: ledgerwatch/erigon-lib#1015.
…tech#7681) This PR does the following things: - Updates the hardfork number of the upcoming Indore hardfork schedule at block 36877056. - Refactoring to `CommitStates` method of bor consensus - Fixes a bug in triggering mining
Added two new flags beacon.api.port and beacon.api.addr Now we can listen for beacon api and get beacon genesis --------- Co-authored-by: Giulio <giulio.rebuffo@gmail.com>
Co-authored-by: Krishna Upadhyaya <KRISHNAU1604@GMAIL.COM>
pcw109550
requested changes
Jul 19, 2023
cmd/rpcdaemon/commands/tracing.go
Outdated
if parentBlock != nil { | ||
excessDataGas = parentBlock.ExcessDataGas() | ||
} | ||
chainConfig, _ = api.chainConfig(tx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already inited chainConfig
at
chainConfig, err := api.chainConfig(tx) |
Suggested change
chainConfig, _ = api.chainConfig(tx) |
pcw109550
approved these changes
Jul 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Upstream sync PR
erigon
ledgerwatch/erigon
v2.45.3 ->testinprod-io/op-erigon
57f5025erigon-lib
ledgerwatch/erigon-lib
42c9c28 ->testinprod-io/erigon-lib
ab32bd8erigon-interfaces
ledgerwatch/interfaces
cdc6e21 ->testinprod-io/erigon-interfaces
410b1ba