Merge pull request #3570 from filecoin-project/feat/lotus-pcr-current-tipset

lotus-pcr: use current tipset during refund
This commit is contained in:
Łukasz Magiera 2020-09-05 05:29:59 +02:00 committed by GitHub
commit c074c8d0ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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