2019-11-25 04:45:13 +00:00
|
|
|
package genesis
|
|
|
|
|
2019-11-28 22:50:58 +00:00
|
|
|
import (
|
|
|
|
"github.com/filecoin-project/lotus/chain/actors"
|
|
|
|
"github.com/filecoin-project/lotus/chain/address"
|
|
|
|
"github.com/filecoin-project/lotus/chain/types"
|
|
|
|
)
|
2019-11-25 04:45:13 +00:00
|
|
|
|
|
|
|
type PreSeal struct {
|
|
|
|
CommR [32]byte
|
|
|
|
CommD [32]byte
|
|
|
|
SectorID uint64
|
2019-11-28 22:50:58 +00:00
|
|
|
Deal actors.StorageDeal
|
2019-11-25 04:45:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type GenesisMiner struct {
|
2019-11-28 22:50:58 +00:00
|
|
|
Owner address.Address
|
|
|
|
Worker address.Address
|
|
|
|
|
|
|
|
SectorSize uint64
|
|
|
|
|
|
|
|
Sectors []*PreSeal
|
|
|
|
|
|
|
|
Key types.KeyInfo // TODO: separate file
|
2019-11-25 04:45:13 +00:00
|
|
|
}
|