Add actors to circ-supply
- Consider funds to EAM as locked - Add evm, placeholder and ethaccount to circ supply
This commit is contained in:
parent
c3be4f2f15
commit
8f6c569391
@ -26,6 +26,7 @@ import (
|
||||
var SystemActorAddr = builtin.SystemActorAddr
|
||||
var BurntFundsActorAddr = builtin.BurntFundsActorAddr
|
||||
var CronActorAddr = builtin.CronActorAddr
|
||||
var EthereumAddressManager = builtin.EthereumAddressManagerActorAddr
|
||||
var SaftAddress = makeAddress("t0122")
|
||||
var ReserveAddress = makeAddress("t090")
|
||||
var RootVerifierAddress = makeAddress("t080")
|
||||
|
@ -403,7 +403,8 @@ func (sm *StateManager) GetCirculatingSupply(ctx context.Context, height abi.Cha
|
||||
a == builtin.CronActorAddr ||
|
||||
a == builtin.BurntFundsActorAddr ||
|
||||
a == builtin.SaftAddress ||
|
||||
a == builtin.ReserveAddress:
|
||||
a == builtin.ReserveAddress ||
|
||||
a == builtin.EthereumAddressManager:
|
||||
|
||||
unCirc = big.Add(unCirc, actor.Balance)
|
||||
|
||||
@ -421,7 +422,12 @@ func (sm *StateManager) GetCirculatingSupply(ctx context.Context, height abi.Cha
|
||||
circ = big.Add(circ, big.Sub(actor.Balance, lb))
|
||||
unCirc = big.Add(unCirc, lb)
|
||||
|
||||
case builtin.IsAccountActor(actor.Code) || builtin.IsPaymentChannelActor(actor.Code):
|
||||
case builtin.IsAccountActor(actor.Code) ||
|
||||
builtin.IsPaymentChannelActor(actor.Code) ||
|
||||
builtin.IsEthAccountActor(actor.Code) ||
|
||||
builtin.IsEvmActor(actor.Code) ||
|
||||
builtin.IsPlaceholderActor(actor.Code):
|
||||
|
||||
circ = big.Add(circ, actor.Balance)
|
||||
|
||||
case builtin.IsStorageMinerActor(actor.Code):
|
||||
|
Loading…
Reference in New Issue
Block a user