lotus-pcr: use current tipset during refund
Using the tipset which is being processed might lead to incorrect gas estimations or balance checking for the wallet.
This commit is contained in:
parent
c573310c77
commit
bf3466f3cb
@ -225,7 +225,12 @@ var runCmd = &cli.Command{
|
|||||||
continue
|
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
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user