Fix #1278: debug_advance should have its API calls updated

- This was forgotten in commit 6097000
This commit is contained in:
Aayush Rajasekaran 2020-02-18 23:14:01 -05:00
parent 6afeb2e72b
commit 61401e5e82

View File

@ -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)
}