vm: Remove unused ActorBalance
This commit is contained in:
parent
9bd312881d
commit
e7d73cbe56
@ -119,7 +119,7 @@ type ChainStore struct {
|
|||||||
reorgCh chan<- reorg
|
reorgCh chan<- reorg
|
||||||
reorgNotifeeCh chan ReorgNotifee
|
reorgNotifeeCh chan ReorgNotifee
|
||||||
|
|
||||||
mmCache *lru.ARCCache
|
mmCache *lru.ARCCache // msg meta cache (mh.Messages -> secp, bls []cid)
|
||||||
tsCache *lru.ARCCache
|
tsCache *lru.ARCCache
|
||||||
|
|
||||||
evtTypes [1]journal.EventType
|
evtTypes [1]journal.EventType
|
||||||
|
@ -228,7 +228,7 @@ func DumpActorState(act *types.Actor, b []byte) (interface{}, error) {
|
|||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
i := NewActorRegistry() // TODO: register builtins in init block
|
i := NewActorRegistry()
|
||||||
|
|
||||||
actInfo, ok := i.actors[act.Code]
|
actInfo, ok := i.actors[act.Code]
|
||||||
if !ok {
|
if !ok {
|
||||||
|
@ -641,15 +641,6 @@ func (vm *VM) ShouldBurn(ctx context.Context, st *state.StateTree, msg *types.Me
|
|||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (vm *VM) ActorBalance(addr address.Address) (types.BigInt, aerrors.ActorError) {
|
|
||||||
act, err := vm.cstate.GetActor(addr)
|
|
||||||
if err != nil {
|
|
||||||
return types.EmptyInt, aerrors.Absorb(err, 1, "failed to find actor")
|
|
||||||
}
|
|
||||||
|
|
||||||
return act.Balance, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
type vmFlushKey struct{}
|
type vmFlushKey struct{}
|
||||||
|
|
||||||
func (vm *VM) Flush(ctx context.Context) (cid.Cid, error) {
|
func (vm *VM) Flush(ctx context.Context) (cid.Cid, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user