Beispiel #1
0
        public CciAssembly Rewrite(CciAssembly assembly)
        {
            ISourceLocationProvider sourceLocationProvider = GetPdbReader(assembly.Module);
            var trans     = new ContractRewriter(host, assembly.ContractProvider, sourceLocationProvider);
            var newModule = trans.Rewrite(assembly.Module) as Module;

            return(new CciAssembly(newModule, assembly.ContractProvider));
        }
 protected virtual BlockProcessor NewBlockProcessor(AuRaNethermindApi api, ITxFilter txFilter, ContractRewriter contractRewriter) =>
 new AuRaBlockProcessor(
     _api.SpecProvider,
     _api.BlockValidator,
     _api.RewardCalculatorSource.Get(_api.TransactionProcessor),
     new BlockProcessor.BlockValidationTransactionsExecutor(_api.TransactionProcessor, _api.StateProvider),
     _api.StateProvider,
     _api.StorageProvider,
     _api.ReceiptStorage,
     _api.LogManager,
     _api.BlockTree,
     txFilter,
     GetGasLimitCalculator(),
     contractRewriter
     );
Beispiel #3
0
 protected override BlockProcessor NewBlockProcessor(AuRaNethermindApi api, ITxFilter txFilter, ContractRewriter contractRewriter)
 {
     return(new AuRaMergeBlockProcessor(
                _api.PoSSwitcher !,
                _api.SpecProvider !,
                _api.BlockValidator !,
                _api.RewardCalculatorSource !.Get(_api.TransactionProcessor !),
                new BlockProcessor.BlockValidationTransactionsExecutor(_api.TransactionProcessor !, _api.StateProvider !),
                _api.StateProvider !,
                _api.StorageProvider !,
                _api.ReceiptStorage !,
                _api.LogManager,
                _api.BlockTree !,
                txFilter,
                GetGasLimitCalculator(),
                contractRewriter
                ));
 }