github maticnetwork/bor v0.2.9
Fixed Memory Leak, Added Network Flags for Mumbai and Mainnet

latest releases: v1.4.1, v1.4.0-beta2, v1.4.0...
2 years ago

In this release, we have fixed the memory leak issue in bor, added network flags that can be used while invoking bor and few other minor changes. Major changes are listed below:

  • Memory Leak Fixed: The root cause for the memory leak was identified and fixed in #201. We had already fixed the memory bloat issue that was causing few nodes to consume the entire memory within minutes of starting bor in https://github.com/maticnetwork/bor/releases/tag/v0.2.9-beta1
  • Network Flags: You can now start bor using bor --bor-mainnet and bor --bor-mumbai flags to connect to mainnet and mumbai networks respectively. The defaults can be found here:

    bor/cmd/geth/config.go

    Lines 342 to 386 in 6c7a9e1

    func setDefaultMumbaiGethConfig(ctx *cli.Context, config *gethConfig) {
    config.Node.P2P.ListenAddr = fmt.Sprintf(":%d", 30303)
    config.Node.HTTPHost = "0.0.0.0"
    config.Node.HTTPVirtualHosts = []string{"*"}
    config.Node.HTTPCors = []string{"*"}
    config.Node.HTTPPort = 8545
    config.Node.IPCPath = utils.MakeDataDir(ctx) + "/bor.ipc"
    config.Node.HTTPModules = []string{"eth", "net", "web3", "txpool", "bor"}
    config.Eth.SyncMode = downloader.FullSync
    config.Eth.NetworkId = 80001
    config.Eth.Miner.GasCeil = 20000000
    //--miner.gastarget is depreceated, No longed used
    config.Eth.TxPool.NoLocals = true
    config.Eth.TxPool.AccountSlots = 16
    config.Eth.TxPool.GlobalSlots = 131072
    config.Eth.TxPool.AccountQueue = 64
    config.Eth.TxPool.GlobalQueue = 131072
    config.Eth.TxPool.Lifetime = 90 * time.Minute
    config.Node.P2P.MaxPeers = 200
    config.Metrics.Enabled = true
    // --pprof is enabled in 'internal/debug/flags.go'
    }
    func setDefaultBorMainnetGethConfig(ctx *cli.Context, config *gethConfig) {
    config.Node.P2P.ListenAddr = fmt.Sprintf(":%d", 30303)
    config.Node.HTTPHost = "0.0.0.0"
    config.Node.HTTPVirtualHosts = []string{"*"}
    config.Node.HTTPCors = []string{"*"}
    config.Node.HTTPPort = 8545
    config.Node.IPCPath = utils.MakeDataDir(ctx) + "/bor.ipc"
    config.Node.HTTPModules = []string{"eth", "net", "web3", "txpool", "bor"}
    config.Eth.SyncMode = downloader.FullSync
    config.Eth.NetworkId = 137
    config.Eth.Miner.GasCeil = 20000000
    //--miner.gastarget is depreceated, No longed used
    config.Eth.TxPool.NoLocals = true
    config.Eth.TxPool.AccountSlots = 16
    config.Eth.TxPool.GlobalSlots = 131072
    config.Eth.TxPool.AccountQueue = 64
    config.Eth.TxPool.GlobalQueue = 131072
    config.Eth.TxPool.Lifetime = 90 * time.Minute
    config.Node.P2P.MaxPeers = 200
    config.Metrics.Enabled = true
    // --pprof is enabled in 'internal/debug/flags.go'
    }
    and any params that need to be overridden can be passed separately.

Pre-requisites

Please upgrade the go version to v1.16 or above before updating.

Don't miss a new bor release

NewReleases is sending notifications on new releases.