Skip to content

Commit

Permalink
Merge pull request #3570 from filecoin-project/feat/lotus-pcr-current…
Browse files Browse the repository at this point in the history
…-tipset

lotus-pcr: use current tipset during refund
  • Loading branch information
magik6k authored Sep 5, 2020
2 parents 2b62573 + bf3466f commit c074c8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/lotus-pcr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,12 @@ var runCmd = &cli.Command{
continue
}

if err := rf.Refund(ctx, tipset, refunds, rounds); err != nil {
refundTipset, err := api.ChainHead(ctx)
if err != nil {
return err
}

if err := rf.Refund(ctx, refundTipset, refunds, rounds); err != nil {
return err
}

Expand Down

0 comments on commit c074c8d

Please sign in to comment.