8MB sectors ; 5MB deal

This commit is contained in:
Anton Evangelatov 2020-11-27 19:36:02 +01:00
parent d0599ff1e3
commit b1dcf5fead
6 changed files with 12 additions and 10 deletions

View File

@ -10,7 +10,7 @@ FROM golang:${GO_VERSION}-buster as downloader
RUN go get github.com/filecoin-project/go-paramfetch/paramfetch
COPY /proof-parameters.json /
RUN paramfetch 2048 /proof-parameters.json
RUN paramfetch 8388608 /proof-parameters.json
FROM ubuntu:18.04

View File

@ -78,7 +78,7 @@ func dealsE2E(t *testkit.TestEnvironment) error {
time.Sleep(50 * time.Second)
// generate 1600 bytes of random data
data := make([]byte, 1600)
data := make([]byte, 5000000)
rand.New(rand.NewSource(time.Now().UnixNano())).Read(data)
file, err := ioutil.TempFile("/tmp", "data")

View File

@ -39,7 +39,9 @@ func init() {
policy.SetPreCommitChallengeDelay(abi.ChainEpoch(10))
policy.SetConsensusMinerMinPower(abi.NewTokenAmount(2048))
policy.SetSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)
//policy.SetSupportedProofTypes(abi.RegisteredSealProof_StackedDrg2KiBV1)
policy.SetSupportedProofTypes(abi.RegisteredSealProof_StackedDrg8MiBV1)
policy.SetMinVerifiedDealSize(abi.NewTokenAmount(256))
// Disable upgrades.

View File

@ -10,7 +10,7 @@ enabled = true
[builders."docker:go"]
enabled = true
build_base_image = "iptestground/oni-buildbase:v12-lotus"
runtime_image = "iptestground/oni-runtime:v6"
runtime_image = "iptestground/oni-runtime:v5-8mib"
[runners."local:exec"]
enabled = true

View File

@ -27,7 +27,7 @@ func StartDeal(ctx context.Context, minerActorAddr address.Address, client api.F
},
Wallet: addr,
Miner: minerActorAddr,
EpochPrice: types.NewInt(1000),
EpochPrice: types.NewInt(4000000),
MinBlocksDuration: 640000,
DealStartEpoch: 200,
FastRetrieval: fastRetrieval,

View File

@ -108,7 +108,7 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) {
}
sectors := t.IntParam("sectors")
genMiner, _, err := seed.PreSeal(minerAddr, abi.RegisteredSealProof_StackedDrg2KiBV1, 0, sectors, presealDir, []byte("TODO: randomize this"), &walletKey.KeyInfo, false)
genMiner, _, err := seed.PreSeal(minerAddr, abi.RegisteredSealProof_StackedDrg8MiBV1, 0, sectors, presealDir, []byte("TODO: randomize this"), &walletKey.KeyInfo, false)
if err != nil {
return nil, err
}
@ -125,10 +125,10 @@ func PrepareMiner(t *TestEnvironment) (*LotusMiner, error) {
return nil, err
}
if t.GroupSeq != 1 {
fmt.Println("sleeping for 11sec.")
time.Sleep(11 * time.Second)
}
//if t.GroupSeq != 1 {
//fmt.Println("sleeping for 11sec.")
//time.Sleep(11 * time.Second)
//}
// prepare the repo
minerRepoDir, err := ioutil.TempDir("", "miner-repo-dir")