Skip to content

Commit

Permalink
Merge pull request #4213 from filecoin-project/feat/test-addrs-envvar
Browse files Browse the repository at this point in the history
build: Env var to keep test address output
  • Loading branch information
magik6k authored Oct 7, 2020
2 parents 81fb552 + 39bc816 commit 10c120b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/params_testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
package build

import (
"os"

"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/chain/actors/policy"
Expand Down Expand Up @@ -36,7 +38,9 @@ func init() {
abi.RegisteredSealProof_StackedDrg64GiBV1,
)

SetAddressNetwork(address.Mainnet)
if os.Getenv("LOTUS_USE_TEST_ADDRESSES") != "1" {
SetAddressNetwork(address.Mainnet)
}

Devnet = false
}
Expand Down

0 comments on commit 10c120b

Please sign in to comment.