build: Env var to keep test address output

This commit is contained in:
Łukasz Magiera 2020-10-07 15:01:30 +02:00
parent 81fb552e1d
commit 39bc816a79

View File

@ -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"
@ -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
}