diff --git a/cmd/lotus-miner/init.go b/cmd/lotus-miner/init.go index c3e1c2770..a5e9710a9 100644 --- a/cmd/lotus-miner/init.go +++ b/cmd/lotus-miner/init.go @@ -564,7 +564,7 @@ func makeHostKey(lr repo.LockedRepo) (crypto.PrivKey, error) { return nil, err } - kbytes, err := pk.Bytes() + kbytes, err := crypto.MarshalPrivateKey(pk) if err != nil { return nil, err }