Skip to content

Commit

Permalink
update doc (erigontech#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
blxdyx committed Aug 1, 2023
1 parent c2061bf commit ee8f19c
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 50 deletions.
2 changes: 1 addition & 1 deletion cmd/erigon-el/backend/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func NewBackend(stack *node.Node, config *ethconfig.Config, logger log.Logger) (

// Apply special hacks for BSC params
if chainConfig.Parlia != nil {
params.ApplyBinanceSmartChainParams()
params.ApplyBNBSmartChainParams()
}

if err := chainKv.Update(context.Background(), func(tx kv.RwTx) error {
Expand Down
4 changes: 2 additions & 2 deletions cmd/integration/commands/stages.go
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ func newDomains(ctx context.Context, db kv.RwDB, stepSize uint64, mode libstate.

// Apply special hacks for BSC params
if chainConfig.Parlia != nil {
params.ApplyBinanceSmartChainParams()
params.ApplyBNBSmartChainParams()
}

var batchSize datasize.ByteSize
Expand Down Expand Up @@ -1334,7 +1334,7 @@ func newSync(ctx context.Context, db kv.RwDB, miningConfig *params.MiningConfig)

// Apply special hacks for BSC params
if chainConfig.Parlia != nil {
params.ApplyBinanceSmartChainParams()
params.ApplyBNBSmartChainParams()
}

var batchSize datasize.ByteSize
Expand Down
2 changes: 1 addition & 1 deletion cmd/state/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ var rootCmd = &cobra.Command{
}
// Apply special hacks for BSC params
if chainConfig.Parlia != nil {
params.ApplyBinanceSmartChainParams()
params.ApplyBNBSmartChainParams()
}

if chaindata == "" {
Expand Down
84 changes: 42 additions & 42 deletions core/systemcontracts/upgrade.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {

// Apply special hacks for BSC params
if chainConfig.Parlia != nil {
params.ApplyBinanceSmartChainParams()
params.ApplyBNBSmartChainParams()
}

if err := chainKv.Update(context.Background(), func(tx kv.RwTx) error {
Expand Down Expand Up @@ -1049,7 +1049,7 @@ func (s *Ethereum) Start() error {
s.sentriesClient.StartStreamLoops(s.sentryCtx)
time.Sleep(10 * time.Millisecond) // just to reduce logs order confusion

hook := stages2.NewHook(s.sentryCtx, s.notifications, s.stagedSync, s.chainConfig, s.sentriesClient.UpdateHead)
hook := stages2.NewHook(s.sentryCtx, s.notifications, s.stagedSync, s.chainConfig, s.sentriesClient.UpdateHead)
go stages2.StageLoop(s.sentryCtx, s.chainDB, s.stagedSync, s.sentriesClient.Hd, s.waitForStageLoopStop, s.config.Sync.LoopThrottle, nil, hook)

return nil
Expand Down
2 changes: 1 addition & 1 deletion params/bootnodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ var SepoliaStaticPeers = []string{
}

var BscStaticPeers = []string{
// From https://api.binance.org/v1/discovery/peers
// From https://docs.bnbchain.org/docs/beaconchain/develop/api-reference/dex-api/paths-testnet#apiv1peers
"enode://c014bbf48209cdf8ca6d3bf3ff5cf2fade45104283dcfc079df6c64e0f4b65e4afe28040fa1731a0732bd9cbb90786cf78f0174b5de7bd5b303088e80d8e6a83@54.74.101.143:30311",
"enode://f3cd7b3c2f3fe8083c4b7f062e66cb048e32f4bd81c3abafda08c283d804121a90d3f27a680d10fd77d9d37c79affca8b3d24995b9be44a47849868f58bd8bfb@44.200.133.198:30311",
"enode://322a42a08959aefd3423d17d8aeb802e0dbfb8bb0096aa712b6bf3036c91a80b0abc45c7a3d1320eda9a9c0337dd028967e4b84357080c258c8d0a3aaa02a821@34.245.12.138:30311",
Expand Down
2 changes: 1 addition & 1 deletion params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,6 @@ var (
DurationLimit = big.NewInt(13) // The decision boundary on the blocktime duration used to determine whether difficulty should go up or not.
)

func ApplyBinanceSmartChainParams() {
func ApplyBNBSmartChainParams() {
GasLimitBoundDivisor = 256
}

0 comments on commit ee8f19c

Please sign in to comment.