From 61401e5e82d289fe5d11443c69cb1838c360427f Mon Sep 17 00:00:00 2001 From: Aayush Rajasekaran Date: Tue, 18 Feb 2020 23:14:01 -0500 Subject: [PATCH] Fix #1278: debug_advance should have its API calls updated - This was forgotten in commit 6097000 --- cmd/lotus/debug_advance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }