Tweak PreSeal struct to be infra-friendly
This commit is contained in:
parent
d121e2070b
commit
6510e5f129
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user