Fix circ supply before v2 upgrade epoch
This commit is contained in:
parent
f55b18eabe
commit
15330396bb
@ -1279,9 +1279,12 @@ func (sm *StateManager) GetCirculatingSupplyDetailed(ctx context.Context, height
|
|||||||
return api.CirculatingSupply{}, xerrors.Errorf("failed to calculate filVested: %w", err)
|
return api.CirculatingSupply{}, xerrors.Errorf("failed to calculate filVested: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
filReserveDisbursed, err := GetFilReserveDisbursed(ctx, st)
|
filReserveDisbursed := big.Zero()
|
||||||
if err != nil {
|
if height > build.UpgradeActorsV2Height {
|
||||||
return api.CirculatingSupply{}, xerrors.Errorf("failed to calculate filReserveDisbursed: %w", err)
|
filReserveDisbursed, err = GetFilReserveDisbursed(ctx, st)
|
||||||
|
if err != nil {
|
||||||
|
return api.CirculatingSupply{}, xerrors.Errorf("failed to calculate filReserveDisbursed: %w", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
filMined, err := GetFilMined(ctx, st)
|
filMined, err := GetFilMined(ctx, st)
|
||||||
|
Loading…
Reference in New Issue
Block a user