Tweak PreSeal struct to be infra-friendly

This commit is contained in:
Aayush Rajasekaran 2022-10-04 19:33:23 -04:00 committed by Geoff Stuart
parent d121e2070b
commit 6510e5f129
3 changed files with 5 additions and 5 deletions

View File

@ -268,7 +268,7 @@ func createDeals(m *genesis.Miner, k *key.Key, maddr address.Address, ssize abi.
ClientCollateral: big.Zero(),
}
sector.DealClientKey = k
sector.DealClientKey = &k.KeyInfo
sector.Deal = *proposal
}

View File

@ -3,6 +3,8 @@ package genesis
import (
"encoding/json"
"github.com/filecoin-project/lotus/chain/types"
"github.com/ipfs/go-cid"
"github.com/libp2p/go-libp2p/core/peer"
@ -10,8 +12,6 @@ import (
"github.com/filecoin-project/go-state-types/abi"
market8 "github.com/filecoin-project/go-state-types/builtin/v9/market"
"github.com/filecoin-project/go-state-types/network"
"github.com/filecoin-project/lotus/chain/wallet/key"
)
type ActorType string
@ -26,7 +26,7 @@ type PreSeal struct {
CommD cid.Cid
SectorID abi.SectorNumber
Deal market8.DealProposal
DealClientKey *key.Key
DealClientKey *types.KeyInfo
ProofType abi.RegisteredSealProof
}

View File

@ -72,7 +72,7 @@ func PreSeal(spt abi.RegisteredSealProof, maddr address.Address, sectors int) (*
ProviderCollateral: big.Zero(),
ClientCollateral: big.Zero(),
}
preseal.DealClientKey = k
preseal.DealClientKey = &k.KeyInfo
genm.Sectors[i] = preseal
}