statetree: add actor to actcache in SetActor
This commit is contained in:
parent
4202da62cd
commit
f357becc8a
@ -62,6 +62,8 @@ func (st *StateTree) SetActor(addr address.Address, act *types.Actor) error {
|
||||
}
|
||||
}
|
||||
|
||||
st.actorcache[addr] = act
|
||||
|
||||
return st.root.Set(context.TODO(), string(addr.Bytes()), act)
|
||||
}
|
||||
|
||||
|
@ -468,6 +468,9 @@ func (vm *VM) ApplyMessage(ctx context.Context, msg *types.Message) (*ApplyRet,
|
||||
if aerrors.IsFatal(actorErr) {
|
||||
return nil, xerrors.Errorf("fatal error: %w", actorErr)
|
||||
}
|
||||
if actorErr != nil {
|
||||
log.Warn("Send actor error: %s", actorErr)
|
||||
}
|
||||
|
||||
var errcode uint8
|
||||
var gasUsed types.BigInt
|
||||
|
Loading…
Reference in New Issue
Block a user