Refactor: VM: Remove the NetworkVersionGetter

This commit is contained in:
Aayush Rajasekaran
2021-12-17 19:14:21 -05:00
parent 6f6f5d79fb
commit 670bd993f3
10 changed files with 23 additions and 36 deletions
@@ -88,7 +88,7 @@ func NewBlockBuilder(ctx context.Context, logger *zap.SugaredLogger, sm *stmgr.S
Actors: filcns.NewActorRegistry(),
Syscalls: sm.VMSys(),
CircSupplyCalc: sm.GetVMCirculatingSupply,
NtwkVersion: sm.GetNetworkVersion,
NetworkVersion: sm.GetNetworkVersion(ctx, parentTs.Height()+1),
BaseFee: abi.NewTokenAmount(0),
LookbackState: stmgr.LookbackStateGetterForTipset(sm, parentTs),
}