diff --git a/chain/gen/genesis/miners.go b/chain/gen/genesis/miners.go index d106186e2..8217d234d 100644 --- a/chain/gen/genesis/miners.go +++ b/chain/gen/genesis/miners.go @@ -241,6 +241,8 @@ func SetupStorageMiners(ctx context.Context, cs *store.ChainStore, sys vm.Syscal return cid.Undef, fmt.Errorf("failed to marshal proposal: %w", err) } + fmt.Println("key type ", preseal.DealClientKey.Type) + fmt.Printf("key bytes %x\n", preseal.DealClientKey.PrivateKey) sig, err := sigs.Sign(key.ActSigType(preseal.DealClientKey.Type), preseal.DealClientKey.PrivateKey, buf) if err != nil { return cid.Undef, fmt.Errorf("failed to sign proposal: %w", err) diff --git a/cmd/lotus-seed/seed/seed.go b/cmd/lotus-seed/seed/seed.go index 5924340ba..70ee77921 100644 --- a/cmd/lotus-seed/seed/seed.go +++ b/cmd/lotus-seed/seed/seed.go @@ -268,7 +268,7 @@ func createDeals(m *genesis.Miner, k *key.Key, maddr address.Address, ssize abi. ClientCollateral: big.Zero(), } - sector.DealClientKey = &k.KeyInfo + sector.DealClientKey = k.KeyInfo sector.Deal = *proposal } diff --git a/genesis/types.go b/genesis/types.go index 64e66369c..52910b2cd 100644 --- a/genesis/types.go +++ b/genesis/types.go @@ -26,7 +26,7 @@ type PreSeal struct { CommD cid.Cid SectorID abi.SectorNumber Deal market8.DealProposal - DealClientKey *types.KeyInfo + DealClientKey types.KeyInfo ProofType abi.RegisteredSealProof } diff --git a/storage/sealer/mock/util.go b/storage/sealer/mock/util.go index a291be7c9..48055b4d0 100644 --- a/storage/sealer/mock/util.go +++ b/storage/sealer/mock/util.go @@ -72,7 +72,7 @@ func PreSeal(spt abi.RegisteredSealProof, maddr address.Address, sectors int) (* ProviderCollateral: big.Zero(), ClientCollateral: big.Zero(), } - preseal.DealClientKey = &k.KeyInfo + preseal.DealClientKey = k.KeyInfo genm.Sectors[i] = preseal }