Skip to content

Commit

Permalink
cmd: Add arbitrum-one-mainnet network (#2254)
Browse files Browse the repository at this point in the history
* cmd: Add arbitrum-one-mainnet network
  • Loading branch information
leszko authored Feb 11, 2022
1 parent 4a8b8bd commit 585e060
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG_PENDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- \#2252 Use different hardcoded redeemGas when connected to an Arbitrum network (@leszko)
- \#2251 Add fail fast for Arbitrum One Mainnet when LIP-73 has not been activated yet (@leszko)
- \#2253 Redeem tickets only when recipient is active (@leszko)
- \#2254 Add `arbitrum-one-mainnet` network (@leszko)

#### Broadcaster

Expand Down
4 changes: 2 additions & 2 deletions build/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const (
Dev SupportedChains = iota
// Rinkeby is the Ethereum Rinkeby or Arbitrum Testnet test network chain
Rinkeby
// Mainnet is the Ethereum main network chain
// Mainnet is the Ethereum or Arbitrum main network chain
Mainnet
)

Expand All @@ -19,7 +19,7 @@ func ChainSupported(chainID int64) bool {
switch chainID {
case 4, 421611:
return Rinkeby <= HighestChain
case 1:
case 1, 42161:
return Mainnet <= HighestChain
default:
return Dev <= HighestChain
Expand Down
4 changes: 4 additions & 0 deletions cmd/livepeer/livepeer.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,10 @@ func main() {
minGasPrice: int64(params.GWei),
redeemGas: redeemGasL1,
},
"arbitrum-one-mainnet": {
ethController: "0xD8E8328501E9645d16Cf49539efC04f734606ee4",
redeemGas: redeemGasL2,
},
}

// If multiple orchAddr specified, ensure other necessary flags present and clean up list
Expand Down

0 comments on commit 585e060

Please sign in to comment.