fetch testing-fwp bundle

use testing-fwp bundle when InsecurePostValidation is true

testing-fwp is testing-fake-proofs
This commit is contained in:
vyzo 2022-04-22 11:34:18 +03:00
parent 52d5d57460
commit 30ed272aa9
2 changed files with 12 additions and 3 deletions

View File

@ -25,7 +25,7 @@ fetch() {
fi
fi
for net in mainnet caterpillarnet butterflynet calibrationnet devnet testing; do
for net in mainnet caterpillarnet butterflynet calibrationnet devnet testing testing-fake-proofs; do
fetch_bundle $ver $rel $net
done
@ -67,7 +67,7 @@ touch_bundles() {
mkdir $ver
fi
for net in mainnet caterpillarnet butterflynet calibrationnet devnet testing; do
for net in mainnet caterpillarnet butterflynet calibrationnet devnet testing testing-fake-proofs; do
touch $ver/builtin-actors-$net.car
done
}

View File

@ -53,8 +53,17 @@ func LoadBuiltinActorsTesting(lc fx.Lifecycle, mctx helpers.MetricsCtx, bs dtype
base = "."
}
var template string
if build.InsecurePoStValidation {
template = "%s/build/builtin-actors/v%d/builtin-actors-testing-fake-proofs.car"
} else {
template = "%s/build/builtin-actors/v%d/builtin-actors-testing.car"
}
for _, ver := range []actors.Version{actors.Version8} {
path := fmt.Sprintf("%s/build/builtin-actors/v%d/builtin-actors-testing.car", base, ver)
path := fmt.Sprintf(template, base, ver)
log.Infof("loading testing bundle: %s", path)
file, err := os.Open(path)
if err != nil {