Merge pull request #3570 from filecoin-project/feat/lotus-pcr-current-tipset
lotus-pcr: use current tipset during refund
This commit is contained in:
commit
c074c8d0ca
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user