@@ -27,7 +27,7 @@ import (
2727 "github.com/filecoin-project/go-state-types/big"
2828 "github.com/filecoin-project/go-state-types/builtin"
2929 "github.com/filecoin-project/go-state-types/builtin/v11/util/adt"
30- miner15 "github.com/filecoin-project/go-state-types/builtin/v15 /miner"
30+ miner16 "github.com/filecoin-project/go-state-types/builtin/v16 /miner"
3131 miner8 "github.com/filecoin-project/go-state-types/builtin/v8/miner"
3232 "github.com/filecoin-project/go-state-types/crypto"
3333 "github.com/filecoin-project/go-state-types/manifest"
@@ -741,7 +741,7 @@ var minerLockedVestedCmd = &cli.Command{
741741 // The epoch at which we _expect_ that vested funds to have been unlocked by (the delay
742742 // is due to cron offsets). The protocol dictates that funds should be unlocked automatically
743743 // by cron, so anything we find that's not unlocked is a bug.
744- staleEpoch := head .Height () - abi .ChainEpoch ((uint64 (miner15 .WPoStProvingPeriod ) / miner15 .WPoStPeriodDeadlines ))
744+ staleEpoch := head .Height () - abi .ChainEpoch ((uint64 (miner16 .WPoStProvingPeriod ) / miner16 .WPoStPeriodDeadlines ))
745745
746746 var totalCount int
747747 miners := make (map [address.Address ]abi.TokenAmount )
@@ -754,11 +754,11 @@ var minerLockedVestedCmd = &cli.Command{
754754 _ , _ = fmt .Fprintf (cctx .App .ErrWriter , "." )
755755 }
756756 if act .Code == minerCode {
757- m15 := miner15 .State {}
758- if err := adtStore .Get (ctx , act .Head , & m15 ); err != nil {
759- return xerrors .Errorf ("failed to load miner state (using miner15 , try a newer version?): %w" , err )
757+ m16 := miner16 .State {}
758+ if err := adtStore .Get (ctx , act .Head , & m16 ); err != nil {
759+ return xerrors .Errorf ("failed to load miner state (using miner16 , try a newer version?): %w" , err )
760760 }
761- vf , err := m15 .LoadVestingFunds (adtStore )
761+ vf , err := m16 .LoadVestingFunds (adtStore )
762762 if err != nil {
763763 return err
764764 }
@@ -844,11 +844,11 @@ var minerListVestingCmd = &cli.Command{
844844 return xerrors .Errorf ("failed to load actor: %w" , err )
845845 }
846846
847- m15 := miner15 .State {}
848- if err := adtStore .Get (ctx , act .Head , & m15 ); err != nil {
849- return xerrors .Errorf ("failed to load miner state (using miner15 , try a newer version?): %w" , err )
847+ m16 := miner16 .State {}
848+ if err := adtStore .Get (ctx , act .Head , & m16 ); err != nil {
849+ return xerrors .Errorf ("failed to load miner state (using miner16 , try a newer version?): %w" , err )
850850 }
851- vf , err := m15 .LoadVestingFunds (adtStore )
851+ vf , err := m16 .LoadVestingFunds (adtStore )
852852 if err != nil {
853853 return err
854854 }
0 commit comments