diff --git a/cmd/lotus/debug_advance.go b/cmd/lotus/debug_advance.go index d78a823f3..37590f26f 100644 --- a/cmd/lotus/debug_advance.go +++ b/cmd/lotus/debug_advance.go @@ -52,7 +52,7 @@ func init() { From: addr, To: addr, Method: actors.MAMethods.GetWorkerAddr, - }, head) + }, head.Key()) if err != nil { return xerrors.Errorf("failed to get miner worker addr: %w", err) } @@ -104,7 +104,7 @@ func init() { uts := head.MinTimestamp() + uint64(build.BlockDelay) nheight := head.Height() + 1 - blk, err := api.MinerCreateBlock(ctx, addr, head, ticket, epostp, msgs, nheight, uts) + blk, err := api.MinerCreateBlock(ctx, addr, head.Key(), ticket, epostp, msgs, nheight, uts) if err != nil { return xerrors.Errorf("creating block: %w", err) }