public NodeLauncherFactory(IRpcNodeFactory rpcNodeFactory, IBlockChainStore blockChainStore, IMessageCoordinator messageCoordinator, ISmartContractStore smartContractStore) { _rpcNodeFactory = rpcNodeFactory; _blockChainStore = blockChainStore; _messageCoordinator = messageCoordinator; _smartContractStore = smartContractStore; }
public MessageCoordinator(IBlockChainStore blockChainStore, ISmartContractStore smartContractStore, IBlockValidator blockValidator, ITransactionValidator transactionValidator) { _blockChainStore = blockChainStore; _smartContractStore = smartContractStore; _blockValidator = blockValidator; _transactionValidator = transactionValidator; _messageParser = new MessageParser(); _peersStorage = new PeersRepository(); }
public RpcNodeFactory(IWalletRepository walletRepository, IBlockChainStore blockChainStore, ISmartContractStore smartContractStore, ITransactionHelper transactionHelper, ITransactionValidator transactionValidator, IBlockValidator blockValidator, ISolidityExecutor solidityExecutor) { _walletRepository = walletRepository; _blockChainStore = blockChainStore; _smartContractStore = smartContractStore; _transactionHelper = transactionHelper; _transactionValidator = transactionValidator; _blockValidator = blockValidator; _solidityExecutor = solidityExecutor; }
public RPCNodeStartup(IWalletRepository walletRepository, Networks network, IBlockChainStore blockChainStore, ISmartContractStore smartContractStore, ITransactionHelper transactionHelper, ITransactionValidator transactionValidator, IBlockValidator blockValidator, ISolidityExecutor solidityExecutor) { _walletRepository = walletRepository; _network = network; _blockChainStore = blockChainStore; _smartContractStore = smartContractStore; _transactionHelper = transactionHelper; _transactionValidator = transactionValidator; _blockValidator = blockValidator; _solidityExecutor = solidityExecutor; }
internal BlockChain(IAssemblyHelper assemblyHelper, Networks network, ISmartContractStore smartContractStore) { _assemblyHelper = assemblyHelper; _network = network; _smartContractStore = smartContractStore; var options = new Options { CreateIfMissing = true }; _db = new DB(GetDbFile(), options); string result = null; if (!_db.TryGet(CURRENT_BLOCK, ReadOptions.Default, out result)) { IntitializeBlockChain(); return; } IntitializeCurrentBlock(); }
public BlockChainFactory(IAssemblyHelper assemblyHelper, ISmartContractStore smartContractStore) { _assemblyHelper = assemblyHelper; _smartContractStore = smartContractStore; }
public SolidityExecutor(ISmartContractStore smartContractStore) { _smartContractStore = smartContractStore; }
internal NodeLauncher(Networks network, ServiceFlags serviceFlag, IRpcNodeFactory rpcNodeFactory, IBlockChainStore blockChainStore, IMessageCoordinator messageCoordinator, ISmartContractStore smartContractStore) { _network = network; _serviceFlag = serviceFlag; _p2pNetworkConnector = new P2PNetworkConnector(messageCoordinator); _p2pNetworkConnector.ConnectEvent += P2PConnectEvent; _p2pNetworkConnector.DisconnectEvent += P2PDisconnectEvent; _p2pNode = new P2PNode(_network, _serviceFlag, _p2pNetworkConnector, messageCoordinator); _rpcNode = rpcNodeFactory.Build(_network); blockChainStore.Switch(network); smartContractStore.Switch(network); _blockChain = blockChainStore.GetBlockChain(); }
public TransactionValidator(IBlockChainStore blockChainStore, ISmartContractStore smartContractStore, IScriptInterpreter scriptInterpreter) { _blockChainStore = blockChainStore; _smartContractStore = smartContractStore; _scriptInterpreter = scriptInterpreter; }